On Sat, Nov 12, 2011 at 8:36 AM, Jason Liu <jason....@linaro.org> wrote: > +int board_mmc_getcd(u8 *cd, struct mmc *mmc) > +{ > + struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; > + > + if (cfg->esdhc_base == USDHC3_BASE_ADDR) > + *cd = gpio_get_value(107); /*GPIO6_11*/
GPIO6_11 number is 5*32 + 11 = 171 , not 107. Also, in order to use gpio_get_value you need to configure the pin as GPIO first. ... > +#define CONFIG_SYS_SDRAM_BASE (PHYS_SDRAM) > +#define CONFIG_SYS_INIT_RAM_ADDR (IRAM_BASE_ADDR) > +#define CONFIG_SYS_INIT_RAM_SIZE (IRAM_SIZE) Unneeded parentheses. Regards, Fabio Estevam _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot