Hi all,
I am planning to use 3 GPIOs pins as CLK, MOSI and SSN as SPI pin to write data from omapl138 to external device.
I saw there is spi_gpio.c under /linux/drivers/spi and it seems a good fit to my situation. I do following the note on source by adding six lines at begin of this source code.
#define DRIVER_NAME "myboard_spi2"
//#define SPI_MISO_GPIO 18
#define SPI_MOSI_GPIO 17
#define SPI_SCK_GPIO 16
#define SPI_N_CHIPSEL 44
at this point I don't know what is next step because after reboot there is no such myboard_spi2 under /dev
Following steps I just guess and try out. Since it is a master of SPI driver, therefore, I re-configure and remove the normal "spi_davinci" driver and rename DRIVER_NAME ="spi_davinci". Hope it will really replace the master driver, but there is no /dev/spidev after reboot.
So, I come here to ask for help. Thank you
Joe