Dear Experts,
I got questions about DM8148-EVM/ezsdk_5_05_01_04 linux kernel omap2_hsmmc_init function.
In board-ti8148evm.c struct omap2_hsmmc_info mmc:
static struct omap2_hsmmc_info mmc[] = {
{
.mmc = 1,
.caps = MMC_CAP_4_BIT_DATA,
.gpio_cd = -EINVAL, /* Dedicated pins for CD and WP */
.gpio_wp = -EINVAL,
.ocr_mask = MMC_VDD_33_34,
},
{} /* Terminator */
};
1) I am confused about ".mmc=1".
mmc=1 should be MMC0 controller, but only MMC1 can be boot device and exists at evm base board.
2) I am confused about ".gpio_cd = -EINVAL"
Why don't this program use card detect pin ? for example, .gpio_cd = GPIO_TO_PIN(1, 6),
3) If I want to add a emmc 8G iNand device at MMC2, is below code right ?
(1 sd card for boot: MMC1, 1 emmc iNand: MMC2, didn't use MMC0)
static struct omap2_hsmmc_info mmc[] = {
{
.mmc = 1,
.caps = MMC_CAP_4_BIT_DATA,
.gpio_cd = -EINVAL, /* Dedicated pins for CD and WP */
.gpio_wp = -EINVAL,
.ocr_mask = MMC_VDD_33_34,
},
{
.mmc = 3,
.caps = MMC_CAP_4_BIT_DATA,
.gpio_cd = -EINVAL, /* Dedicated pins for CD and WP */
.gpio_wp = -EINVAL,
.ocr_mask = MMC_VDD_33_34,
},
{} /* Terminator */
};
Please help resolve my question ~
thx ~
HB