ARM: i.MX: Add a function to extract BMOD value
The location of BMDO field in SBMR/SBMR2 registers is consistent
across all i.MX SoCs starting from i.MX53. Add simple helper function
imx53_get_bmod and use it to avoid code duplication.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 90a964d commit d84beaa14a4a78000c025c02dc4e157a8b63ad07
@Andrey Smirnov Andrey Smirnov authored on 16 Apr 2018
Sascha Hauer committed on 17 Apr 2018
Showing 1 changed file
View
arch/arm/mach-imx/boot.c