]>
git.ipfire.org Git - people/ms/u-boot.git/blob - board/engicam/common/board.c
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 static void mmc_late_init(void)
22 u32 dev_no
= mmc_get_env_dev();
24 env_set_ulong("mmcdev", dev_no
);
27 sprintf(mmcblk
, "/dev/mmcblk%dp2 rootwait rw", dev_no
);
28 env_set("mmcroot", mmcblk
);
30 sprintf(cmd
, "mmc dev %d", dev_no
);
35 int board_late_init(void)
37 switch ((imx6_src_get_boot_mode() & IMX6_BMODE_MASK
) >>
43 #ifdef CONFIG_ENV_IS_IN_MMC
46 env_set("modeboot", "mmcboot");
49 env_set("modeboot", "nandboot");
52 env_set("modeboot", "");
57 env_set("console", "ttymxc0");
59 env_set("console", "ttymxc3");
68 /* Address of boot parameters */
69 gd
->bd
->bi_boot_params
= PHYS_SDRAM
+ 0x100;
71 #ifdef CONFIG_NAND_MXS
75 #ifdef CONFIG_VIDEO_IPUV3
84 gd
->ram_size
= imx_ddr_size();