archive mirror
 help / color / mirror / Atom feed
From: He Man <>
Subject: Spansion SPI Probe?
Date: Wed, 23 Dec 2009 10:12:03 +0000	[thread overview]
Message-ID: <> (raw)

[-- 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

                 reply	other threads:[~2009-12-23 10:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \
    --subject='Re: Spansion SPI Probe?' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).