[U-Boot] [PATCH] imx6: Add support for Phytec pfla02 (NAND)
Fabio Estevam
festevam at gmail.com
Mon Jul 24 12:37:59 UTC 2017
Hi Stefano,
On Mon, Jul 24, 2017 at 7:13 AM, Stefano Babic <sbabic at denx.de> wrote:
> +int board_mmc_getcd(struct mmc *mmc)
> +{
> + struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv;
> + int ret = 0;
> +
> + switch (cfg->esdhc_base) {
> + case USDHC2_BASE_ADDR:
> + ret = !gpio_get_value(USDHC2_CD_GPIO);
Is this GPIO read really needed?
> + ret = 1;
as it is overwritten here.
> +#define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024)
This definition seems to be unused.
More information about the U-Boot
mailing list