From: He Man <king.of.jungle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Subject: Spansion SPI Probe? Date: Wed, 23 Dec 2009 10:12:03 +0000 [thread overview] Message-ID: <70af14ce0912230212p744d2fc4r5445887895dd532@mail.gmail.com> (raw) [-- Attachment #1.1: Type: text/plain, Size: 1046 bytes --] Hi, 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 drivers/spi 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 is 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 device of the name "m25p80" the kernel aware of. But how do i register that device and where Thanks, C [-- 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 http://p.sf.net/sfu/verizon-dev2dev [-- Attachment #3: Type: text/plain, Size: 210 bytes --] _______________________________________________ spi-devel-general mailing list spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/spi-devel-general
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: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=70af14ce0912230212p744d2fc4r5445887895dd532@mail.gmail.com \ --to=king.of.jungle-re5jqeeqqe8avxtiumwx3w@public.gmane.org \ --cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \ --subject='Re: Spansion SPI Probe?' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * 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).