Hi,
I am doing a project which needs one spi out and it will be connected to a slave chip,. My board is pandaboard, and I compiled uboot and 3.2 linux kernel, now it is working. But the problem now is when I went to the file of Boad_omap4panda.c under the folder arch/arm/mach-omap2, and did the following changes, there is no /dev/spi things like that meaning that I am not able to access it. Could someone help me ?? thanks
#include <plat/mcspi.h>#include <linux/spi/spi.h>
static struct spi_board_info panda_spi_board_info[] __initdata = { { .modalias = "testtttt", .bus_num = 1, .chip_select = 0, .max_speed_hz = 24000000, .mode = SPI_MODE_1, .irq = -1, }, };
spi_register_board_info(panda_spi_board_info, ARRAY_SIZE(panda_spi_board_info)); //this function is called in the omap4_panda_init
To get a /dev/spi device, you'll also need to enable the generic SPI driver in the kernel configuration, look for "CONFIG_SPI_SPIDEV".