SPI User Interface on MPC8313eRDB board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI User Interface on MPC8313eRDB board

1,443 Views
hoyoung
Contributor I

Hello.

 

In advanced, I appreciated you reading this message.

 

I have mpc8313 SOC custom board and I developing linux device driver for spi controller.

 

As you know I referenced MPC8313erdb BSP Kernel 2.6.20 that dosen't support user-level 

 

device driver for spi controller on mpc8313 SOCs.

 

I need some advice for developing SPI devcie driver using mpc83xx_spi  platform_driver

 

finally for use user-level driver.

 

So. I found some patch for BSP kernel source spidev.c. And I patch that code to BSP kernel 2.6.20

 

Kconfig file, include header directory,Makefiel, and so on...

 

But I failed to use spid controller in user-level(open, read, write) .  I tested that device driver "spidev"

 

using test code that is writtened in /linux/Documents/spi/spi_dev that fiile's name is spidev_test.c

 

Please give a little advice for my problem.

 

It will be helps for developing user-level device driver using mpc83xx_spi platform driver that any you

 

comment.

 

Regards newbei 

 

 

0 Kudos
1 Reply

377 Views
big_snauzer
Contributor I

Hi to everyone,

 

I have a similar problem, even from my side is not clear how to pass platform_data to spi controller.

 

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

 

~ # uname -a
Linux mpc8313erdb 2.6.23 #12 Tue Dec 15 14:21:22 CET 2009 ppc unknown
 

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 am using the m25p80.c file

 

Anyone have some idea?

 

 

                                            Regards

                                          big_snauzer

0 Kudos