mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
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>
This commit is contained in:
parent
65a6c50095
commit
6c646b3de4
1 changed files with 8 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue