]> git.baikalelectronics.ru Git - uboot.git/commit
mx6: Use imx6_src_get_boot_mode() to check boot device
authorHarald Seiler <hws@denx.de>
Wed, 1 Dec 2021 09:11:47 +0000 (10:11 +0100)
committerStefano Babic <sbabic@denx.de>
Sat, 5 Feb 2022 12:38:39 +0000 (13:38 +0100)
commitceb35f542c201da8cb7bac2e88da5de9965283c6
tree294d645896e54e43011d97037bb0130209281566
parent03e517980b834a7dfe6d1bc0665277d1ca77b95b
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 <hws@denx.de>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/mach-imx/mx6/soc.c