diff options
author | Tom Rini <trini@konsulko.com> | 2018-01-08 12:51:47 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-01-08 12:51:47 -0500 |
commit | 2f4c9de3d00b09f74eaf9598ea4edbbc4f99b62d (patch) | |
tree | 253415eae65bc1685bb8722dbd38b0697e7aa7b8 /board/engicam/icorem6_rqs/icorem6_rqs.c | |
parent | 5e2338079d4497fe87db60b791203e760493780c (diff) | |
parent | ca9d211e2c7801bc3e194d325ece0d3b583b32d2 (diff) | |
download | u-boot-2f4c9de3d00b09f74eaf9598ea4edbbc4f99b62d.zip u-boot-2f4c9de3d00b09f74eaf9598ea4edbbc4f99b62d.tar.gz u-boot-2f4c9de3d00b09f74eaf9598ea4edbbc4f99b62d.tar.bz2 |
Merge git://git.denx.de/u-boot-imx
Diffstat (limited to 'board/engicam/icorem6_rqs/icorem6_rqs.c')
-rw-r--r-- | board/engicam/icorem6_rqs/icorem6_rqs.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/board/engicam/icorem6_rqs/icorem6_rqs.c b/board/engicam/icorem6_rqs/icorem6_rqs.c deleted file mode 100644 index a55a754..0000000 --- a/board/engicam/icorem6_rqs/icorem6_rqs.c +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2016 Amarula Solutions B.V. - * Copyright (C) 2016 Engicam S.r.l. - * Author: Jagan Teki <jagan@amarulasolutions.com> - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#include <asm/arch/sys_proto.h> - -DECLARE_GLOBAL_DATA_PTR; - -#ifdef CONFIG_ENV_IS_IN_MMC -int board_mmc_get_env_dev(int devno) -{ - return devno - 1; -} -#endif - -#ifdef CONFIG_SPL_BUILD -#include <spl.h> - -#ifdef CONFIG_ENV_IS_IN_MMC -void board_boot_order(u32 *spl_boot_list) -{ - u32 bmode = imx6_src_get_boot_mode(); - u8 boot_dev = BOOT_DEVICE_MMC1; - - switch ((bmode & IMX6_BMODE_MASK) >> IMX6_BMODE_SHIFT) { - case IMX6_BMODE_SD: - case IMX6_BMODE_ESD: - /* SD/eSD - BOOT_DEVICE_MMC1 */ - break; - case IMX6_BMODE_MMC: - case IMX6_BMODE_EMMC: - /* MMC/eMMC */ - boot_dev = BOOT_DEVICE_MMC2; - break; - default: - /* Default - BOOT_DEVICE_MMC1 */ - printf("Wrong board boot order\n"); - break; - } - - spl_boot_list[0] = boot_dev; -} -#endif -#endif /* CONFIG_SPL_BUILD */ |