Skip to content
Snippets Groups Projects
Commit 12f9b4d0 authored by Harald Seiler's avatar Harald Seiler Committed by Stefano Babic
Browse files

mx6: Use imx6_src_get_boot_mode() to check boot device


Use imx6_src_get_boot_mode() instead of manually reading SBMR1.  The
existing function has proper handling for software overrides of the
bootdevice which can happen, for example, when booting from an alternate
source using `bmode`.

Signed-off-by: Harald Seiler's avatarHarald Seiler <hws@denx.de>
Reviewed-by: default avatarFabio Estevam <festevam@gmail.com>
parent ca27227c
No related branches found
No related tags found
No related merge requests found
......@@ -498,8 +498,7 @@ __weak int board_mmc_get_env_dev(int devno)
static int mmc_get_boot_dev(void)
{
struct src *src_regs = (struct src *)SRC_BASE_ADDR;
u32 soc_sbmr = readl(&src_regs->sbmr1);
u32 soc_sbmr = imx6_src_get_boot_mode();
u32 bootsel;
int devno;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment