Hello I was wondering how we can use the SPI port from the mini2440 ? Can someone add an example ? We have to make a driver for a temperature sensor (max6675). THX
SPI
Take a look at DomoDom his site; http://www.domodom.fr/spip/Un-driver-SPI-pour-la-mini2440.html
Hmmm How can I assign those physical spi adresses like: spcon1, sppin1, sppre1 & sptdat1. Looks like I can only read em out, but when I try writing to it, I always get 0 as return value. Please Help! I would like an example that is made in linux, Cause I'm making a Linux SPI Driver.
Pompelmoes (nederlands?) If you look at iomem with the following command "cat /proc/iomem" you can see that there is nothing about spi. That is why you can not read write the registers. Today i found a way to solve this problem. You need too edit the file linuxo-2.6.32.2/arch/arm/mach-s3c2440/mach-mini2440.c and recompile your kernel and modules. So i was able to write the registers and get a clock (1MHz) on pin 21. If you want i can mail you my file. van_ingelgembjorn@telenet.be
Hi van ingelgem bjorn, i want that file which you have changed please mail me at girish2k44@gmail.com Thanks in advance Girish