archive mirror
 help / color / mirror / Atom feed
* Spansion SPI Probe?
@ 2009-12-23 10:12 He Man
  0 siblings, 0 replies; only message in thread
From: He Man @ 2009-12-23 10:12 UTC (permalink / raw)
  To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

[-- Attachment #1.1: Type: text/plain, Size: 1046 bytes --]


  I have a ARM11 based SoC with SPI controller in it. The board
  contains Spansion S25 SPI flash chip. I am writing the driver
  for the SPI controller from scratch but i am missing something in
  getting the Spansion chip to be detected. Please help.

  Here are the steps.

  - Controller driver - I registered a platform_device in the SoC core code.

  For the same platform_device name i have a driver registered in
  dir (similar to xilinx spi but no bitbang). The probe works fine. I have
  platform_data with bus num and cs set to 0 and mode to SPI_MODE_3. (This
  the default i use in u-boot and it works fine with Spansion)

  - Now for the discrete spansion chip, i found that m25p80 code can be used
  as it supports Spansion SPI as well. I loaded the driver but it does not
  call m25p80_probe. The name of this driver is "m25p80".

  I can understand why the driver did not start probing coz there is no
  of the name "m25p80" the kernel aware of. But how do i register that
  device and where


[-- Attachment #1.2: Type: text/html, Size: 1157 bytes --]

[-- Attachment #2: Type: text/plain, Size: 390 bytes --]

This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers 

[-- Attachment #3: Type: text/plain, Size: 210 bytes --]

spi-devel-general mailing list

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-23 10:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-23 10:12 Spansion SPI Probe? He Man

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).