This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Add SPI board support for Zoom OMAP-L138 Experimenter Kit

I need to add the following structure to arch/arm/mach-omap2/board-xxx.c:

static struct spi_board_info omapl138_spi_board_info[] __initdata = {
{
.modalias = "spidev",
.bus_num = 2,
.chip_select = 0,
.max_speed_hz = 1500000,
}
};

I use dvsdk_omapl138-evm_04_03_00_06 with linux-2.6.37-psp03.21.00.04.sdk

There are next board-files in linux-2.6.37-psp03.21.00.04.sdk/arch/arm/mach-omap2

board-2430sdp.c board-flash.c board-omap3evm.c board-rx51-sdram.c
board-3430sdp.c board-flash.h board-omap3logic.c board-rx51-video.c
board-3630sdp.c board-generic.c board-omap3pandora.c board-zoom2.c
board-4430sdp.c board-h4.c board-omap3stalker.c board-zoom3.c
board-am3517evm.c board-igep0020.c board-omap3touchbook.c board-zoom-debugboard.c
board-apollon.c board-igep0030.c board-omap4panda.c board-zoom-peripherals.c
board-cm-t3517.c board-ldp.c board-overo.c
board-cm-t35.c board-n8x0.c board-rx51.c
board-devkit8000.c board-omap3beagle.c board-rx51-peripherals.c

There are ".chip_select" strings in next files: 

board-3430sdp.c
board-4430sdp.c
board-cm-t35.c
board-cm-t35.c
board-devkit8000.c
board-ldp.c
board-n8x0.c
board-omap3evm.c
board-omap3pandora.c
board-omap3pandora.c
board-omap3stalker.c
board-omap3touchbook.c
board-overo.c
board-rx51-peripherals.c
board-rx51-peripherals.c
board-rx51-peripherals.c

So I stuck which one of them should I to modify?

Thank you for any help ! 

  • Myosotis,

    It should be inside the directory arch/arm/mach-davinci instead of mach-omap2. What I think the file should be is board-da850-evm.c, though not sure about this. The simplest way to figure out is to build the kernel for L138 and do an ls -l "*.o" in the mach-davinci directory. Check for the object file with the name board-xxx.o. The corresponding C file will be the right board file.