Q:
DM3730 / AM3703 SOM-LV
Software OS
Linux
Part Number
1017451
Description
I have designed an electronic board to interface with a SOM LV board.
Originally, on the development kit, a SD interface is present. For the need of my project, I had to use a µSD connector. I paid attention to have the correct pinout (which is different from a SD interface) but when using the Teraterm software, it seems that the insertion of a µSD Card isn't detected (although other peripherals like USB are detected when they are plugged)
Is there something to setup in the SOM LV board?
A: If you are not using the card detect signal or the write protect signal, then you will need to make several modifications in the board file. The following diff shows the changes:
--- arch/arm/mach-omap2/board-omap3logic.c.orig 2014-01-22 14:56:32.616383999 -0600
+++ arch/arm/mach-omap2/board-omap3logic.c 2014-01-23 13:45:26.614619292 -0600
@@ -1116,20 +1116,21 @@
};
#endif
static struct omap2_hsmmc_info __initdata board_mmc_info[] = {
{
.name = "external",
.mmc = 1,
.caps = MMC_CAP_4_BIT_DATA,
.gpio_cd = -EINVAL,
.gpio_wp = -EINVAL,
+ .cover_only = 1,
},
{
.name = "wl1271",
.mmc = 3,
.caps = MMC_CAP_4_BIT_DATA | MMC_CAP_POWER_OFF_CARD,
.gpio_cd = -EINVAL,
.gpio_wp = -EINVAL,
.nonremovable = true,
},
{} /* Terminator */
@@ -1328,25 +1329,25 @@
}
static void __init board_mmc_init(void)
{
int ret;
omap3torpedo_fix_pbias_voltage();
if (machine_is_omap3530_lv_som() || machine_is_dm3730_som_lv()) {
/* OMAP35x/DM37x LV SOM board */
- board_mmc_info[0].gpio_cd = OMAP3530_LV_SOM_MMC_GPIO_CD;
- board_mmc_info[0].gpio_wp = OMAP3530_LV_SOM_MMC_GPIO_WP;
+ //board_mmc_info[0].gpio_cd = OMAP3530_LV_SOM_MMC_GPIO_CD;
+ //board_mmc_info[0].gpio_wp = OMAP3530_LV_SOM_MMC_GPIO_WP;
/* gpio_cd for MMC wired to CAM_STROBE; cam_strobe and
* another pin share GPIO_126. Mux CAM_STROBE as GPIO. */
- omap_mux_init_signal("cam_strobe.gpio_126", OMAP_MUX_MODE4 | OMAP_PIN_INPUT_PULLUP);
+ //omap_mux_init_signal("cam_strobe.gpio_126", OMAP_MUX_MODE4 | OMAP_PIN_INPUT_PULLUP);
} else if (machine_is_omap3_torpedo() || machine_is_dm3730_torpedo()) {
/* OMAP35x/DM37x Torpedo board */
board_mmc_info[0].gpio_cd = OMAP3_TORPEDO_MMC_GPIO_CD;
} else {
/* unsupported board */
printk(KERN_ERR "%s(): unknown machine type\n", __func__);
return;
}
/* Check the SRAM for valid product_id data(put there by u-boot). */
After making this change you will need to edit the /etc/fstab file for your SD card and mount and umount from the command line.