2 * Copyright (C) 2016 Amarula Solutions B.V.
3 * Copyright (C) 2016 Engicam S.r.l.
4 * Author: Jagan Teki <jagan@amarulasolutions.com>
6 * SPDX-License-Identifier: GPL-2.0+
11 #include <asm/arch/sys_proto.h>
15 DECLARE_GLOBAL_DATA_PTR;
17 #ifdef CONFIG_ENV_IS_IN_MMC
18 void mmc_late_init(void)
22 u32 dev_no = mmc_get_env_dev();
24 setenv_ulong("mmcdev", dev_no);
27 sprintf(mmcblk, "/dev/mmcblk%dp2 rootwait rw", dev_no);
28 setenv("mmcroot", mmcblk);
30 sprintf(cmd, "mmc dev %d", dev_no);
37 /* Address of boot parameters */
38 gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
40 #ifdef CONFIG_NAND_MXS
44 #ifdef CONFIG_VIDEO_IPUV3
53 gd->ram_size = imx_ddr_size();