Hi,
I did the following things:
1. I compiled 2012.04 uboot without any change, then I got uImage and
MLO
2. I downloaded kernel 3.2.13 and modified the board_omap4panda.c
I included two more libs
#include <linux/spi/spi.h>
#include <plat/mcspi.h>
then in order to get the device in the file system, I added these code
static struct omap2_mcspi_device_config spidev_mcspi_config = {
.turbo_mode = 0,
.single_channel = 1, /* 0: slave, 1: master */
};
static struct spi_board_info panda_spi_board_info[] __initdata = {
{
.modalias = "spidev",
.bus_num = 1,
.chip_select = 0,
.max_speed_hz = 1000,
.mode = SPI_MODE_0,
.controller_data = &spidev_mcspi_config,
},
};
static int __init omap4_panda_spi_init(void){
spi_register_board_info(panda_spi_board_info,
ARRAY_SIZE(panda_spi_board_info));
omap_mux_init_signal("mcspi1_clk.mcspi1_clk", OMAP_PIN_INPUT
| OMAP_MUX_MODE0);
omap_mux_init_signal("mcspi1_somi.mcspi1_somi", OMAP_PIN_INPUT |
OMAP_MUX_MODE0);
omap_mux_init_signal("mcspi1_simo.mcspi1_simo", OMAP_PIN_OUTPUT
| OMAP_MUX_MODE0);
omap_mux_init_signal("mcspi1_cs0.mcspi1_cs0",
OMAP_PIN_OUTPUT| OMAP_MUX_MODE0);
return 0;
}
finally, I call the inital function in the
static void __init omap4_panda_init(void){
omap4_panda_spi_init();
}
I am using angstrom minimal file system.
Thanks
On Apr 11, 9:18 am, Bharathi Subramanian <
bharathi.l...@gmail.com>
wrote: