]>
git.ipfire.org Git - people/ms/u-boot.git/blob - board/engicam/icorem6_rqs/icorem6_rqs.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+
9 #include <asm/arch/sys_proto.h>
11 DECLARE_GLOBAL_DATA_PTR
;
13 #ifdef CONFIG_ENV_IS_IN_MMC
14 int board_mmc_get_env_dev(int devno
)
20 #ifdef CONFIG_SPL_BUILD
23 #ifdef CONFIG_ENV_IS_IN_MMC
24 void board_boot_order(u32
*spl_boot_list
)
26 u32 bmode
= imx6_src_get_boot_mode();
27 u8 boot_dev
= BOOT_DEVICE_MMC1
;
29 switch ((bmode
& IMX6_BMODE_MASK
) >> IMX6_BMODE_SHIFT
) {
32 /* SD/eSD - BOOT_DEVICE_MMC1 */
37 boot_dev
= BOOT_DEVICE_MMC2
;
40 /* Default - BOOT_DEVICE_MMC1 */
41 printf("Wrong board boot order\n");
45 spl_boot_list
[0] = boot_dev
;
48 #endif /* CONFIG_SPL_BUILD */