archive mirror
 help / color / mirror / Atom feed
* Linux SPI newbie ST M25P16
@ 2009-12-16 18:24 Sergio Donati
  0 siblings, 0 replies; only message in thread
From: Sergio Donati @ 2009-12-16 18:24 UTC (permalink / raw)
  To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Good morning,

I run into a big trouble:
I am very new to linux embedded , and i have to interface an ST M25p16 to a MPC8313E cpu.
I am working on a demoboard MPC8313E-RDB REVA2, with the ltib-mpc8313erdb-20081222 coming from Freescale.
~ # uname -a
Linux mpc8313erdb 2.6.23 #12 Tue Dec 15 14:21:22 CET 2009 ppc unknown

  i have connected the M25P16 to the SPI controller but now i am very very confused.
I know quite well how the SPI signals works, but:

I don't know how to access the memory and how to use the functions and/or the driver resources.

I have activated into the kernel configuration the following items: 

----Memory Technology Device (MTD) support
     <*>   MTD concatenating support
     [*]   MTD partitioning support
     [*]     Command line partition table parsing
     <*>   Direct char device access to MTD devices
     <*>   Caching block device access to MTD devices

---- SPI support
     [*] SPI support
     <*> Freescale MPC83xx SPI controller
     <*> SPI EEPROMs from most vendors

- The /dev directory doesn't show any device referring to the memory.
- The SPI signals except of one dummy byte during the startup phase are stucked into the idle state.

I take a look to the file "m25p80.c" but i have not clear how to use it.
Have i to declare something into the .dts file? in wich way?
Someone knows if there is some example about it?
Same story with "spidev.c".
Which log can help you to help me?  

100000 Thanks to everyone that will help me.

                                   Sergio Donati


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 

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

only message in thread, other threads:[~2009-12-16 18:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-16 18:24 Linux SPI newbie ST M25P16 Sergio Donati

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