diff options
author | Peng Fan <peng.fan@nxp.com> | 2019-08-27 06:25:07 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-10-08 16:36:36 +0200 |
commit | 6c646b3de466b222b9a43d240cec1a8b582b1baf (patch) | |
tree | a691ecb93e64c5cc7649feefa5a3ab4389e44c53 /arch | |
parent | 65a6c50095c4d9ab5c11d8c2d901457a98012044 (diff) | |
download | u-boot-6c646b3de466b222b9a43d240cec1a8b582b1baf.tar.gz u-boot-6c646b3de466b222b9a43d240cec1a8b582b1baf.tar.xz u-boot-6c646b3de466b222b9a43d240cec1a8b582b1baf.zip |
imx: spl: add spl_board_boot_device for i.MX8MM
Differnet board has different controller used, it is
hard to use one layout for them all.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/spl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index f33b9f0962..30fa6aeb25 100644 --- a/arch/arm/mach-imx/spl.c +++ b/arch/arm/mach-imx/spl.c @@ -18,6 +18,11 @@ DECLARE_GLOBAL_DATA_PTR; +__weak int spl_board_boot_device(enum boot_device boot_dev_spl) +{ + return 0; +} + #if defined(CONFIG_MX6) /* determine boot device from SRC_SBMR1 (BOOT_CFG[4:1]) or SRC_GPR9 register */ u32 spl_boot_device(void) @@ -132,6 +137,9 @@ u32 spl_boot_device(void) enum boot_device boot_device_spl = get_boot_device(); + if (IS_ENABLED(CONFIG_IMX8MM)) + return spl_board_boot_device(boot_device_spl); + switch (boot_device_spl) { #if defined(CONFIG_MX7) case SD1_BOOT: |