Part Number: AM3352
Hey everyone, this may just be a "that's just the way it is" type of question but I'm porting u-boot over to a custom AM3352 board and have an eMMC that I'm using as the main boot device and I'd like to get it running at 8-bit to hopefully decrease the programming and boot times... this is going in a high volume product so every second counts.
I'm using Robert Nelson's 2019.04 u-boot from eewiki but I'm hoping that it's similar enough to the SDK's 2019.01 that someone here may know the answer.
I've been working at this for a couple days with no luck, the eMMC keeps showing up in u-boot as a 4-bit device:
I know that the platdata stucts at the bottom of the board.c are supposed to set this up, and I've verified my settings are the same as what's in the am3352_evm board.c file:
#if !CONFIG_IS_ENABLED(OF_CONTROL)
static const struct omap_hsmmc_plat am335x_mmc0_platdata = {
.base_addr = (struct hsmmc *)OMAP_HSMMC1_BASE,
.cfg.host_caps = MMC_MODE_HS_52MHz | MMC_MODE_HS | MMC_MODE_4BIT,
.cfg.f_min = 400000,
.cfg.f_max = 52000000,
.cfg.voltages = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195,
.cfg.b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT,
};
U_BOOT_DEVICE(am335x_mmc0) = {
.name = "omap_hsmmc",
.platdata = &am335x_mmc0_platdata,
};
static const struct omap_hsmmc_plat am335x_mmc1_platdata = {
.base_addr = (struct hsmmc *)OMAP_HSMMC2_BASE,
.cfg.host_caps = MMC_MODE_HS_52MHz | MMC_MODE_HS | MMC_MODE_8BIT,
.cfg.f_min = 400000,
.cfg.f_max = 52000000,
.cfg.voltages = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195,
.cfg.b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT,
};
U_BOOT_DEVICE(am335x_mmc1) = {
.name = "omap_hsmmc",
.platdata = &am335x_mmc1_platdata,
};
#endif
It clearly says "MMC_MODE_8bit" but that isn't sticking for some reason.
I do get the standard "No match for driver ‘omap_hsmmc" error for both MMC instances.
The interesting part: If I comment out all the code above, the omap_hsmmc driver message disappears, and both MMC interfaces work exactly the same as if the code was still in the board.c
Anyone have any ideas?
Thanks