Hi,
You need to do modification in board-omap4panda.c file, I was able to
communicate on SPI, below is the example for you.
+static struct spi_board_info panda_mcspi_board_info[] = {
+
+ {
+ .modalias = "myspi",
+ .max_speed_hz = 1500000,
+ .bus_num = 1,
+ .chip_select = 0,
+ .mode = SPI_MODE_1,
+ .platform_data = NULL,
+ },
+};
+static void __init omap4_panda_config_mcspi1_mux(void)
+{
+ // NOTE: Clock pins need to be in input mode
+ printk(KERN_INFO "omap4_panda_config_mcspi1_mux - Enter\n");
+ omap_mux_init_signal("mcspi1_clk.mcspi1_clk", OMAP_PIN_INPUT);
+ omap_mux_init_signal("mcspi1_cs0.mcspi1_cs0", OMAP_PIN_OUTPUT);
+ omap_mux_init_signal("mcspi1_simo.mcspi1_simo", OMAP_PIN_OUTPUT);
+ omap_mux_init_signal("mcspi1_somi.mcspi1_somi", OMAP_PIN_INPUT_PULLUP);
+ printk(KERN_INFO "omap4_panda_config_mcspi1_mux - Exit\n");
+}
+
omap4_ehci_init();
usb_musb_init(&musb_board_data);
+ /* SPI1 start */
+ printk(KERN_INFO "Registering SPI1 multeplexing\n");
+ omap4_panda_config_mcspi1_mux();
+ spi_register_board_info(panda_mcspi_board_info,ARRAY_SIZE(panda_mcspi_board_info));
+ printk(KERN_INFO " End Registering SPI1 multeplexing\n");
+ /* SPI1 end */
Br,
Bhupendra Pawar
> --
> You received this message because you are subscribed to the Google Groups
> "pandaboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
pandaboard+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.