]> git.dujemihanovic.xyz Git - u-boot.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)
commit12f9b4d08628c75a02f68a45eb8193efbe8ebb2f
tree294d645896e54e43011d97037bb0130209281566
parentca27227c5940371c792cfd36826315b3e17e46a1
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