how to use SPI in OSELAS.BSP-Pengutronix

Luc
Hi all,

I have build a working configuration using the OSELAS.BSP-Pengutronix.
I configured the kernel to support SPI.
I did expect a spidev in my /dev directory, but there is nothing.
There are no entries in the /sys/bus/spi/devices.

How can I register devices ?
Can I register a generic device ?
How can I access the SPI (as master) from C ?
Wich pins are used for SPI (Chip select) ?

If someone has experience please share it...
First thing I want to do is to measure CLK and SDO signals using an
osciloscope.

Kind regards
Luc

Juergen Beisert
Did you read "Documentation/spi/spi-summary" in the kernel sources?
The section "How does board-specific init code declare SPI devices?" should
be of interest for you.

luc
Thanks Juergen.This will be a good start.

Luc
I understand that I have to adjust mach-mini2440.c.

I did it in the directory
..../platform-mini2440/build-target/linux-3.1/arch/arm/mach-s3c2440.

However, when I build the  kernel (using ptxdist go), this file is
overwritten by the original one. How can I prevent this ?

Thanks
Luc

Juergen Beisert
You should add your own changes as an additional patch to the buildsystem.
Then PTXdist will keep your changes forever. Refer the "How to become a
PTXdist Guru", section 4.2.4 at
http://www.pengutronix.de/software/ptxdist/appnotes_en.html

luc
Thanks Juergen for your endeless support.

Luc