> struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; One note on this cast here: It seems weird to cast fsl_esdhc_priv to fsl_esdhc_cfg here. This is done in many i.MX boards though. Just want to make sure if this is the correct and intended way to access the sdhc_base address. Thanks