[PATCH] ARM: i.MX53: fix bootsource_instance detection

Sascha Hauer s.hauer at pengutronix.de
Mon Jan 27 04:38:56 EST 2014


Bootsource instance is encoded in bit 21:20 of the SBMR register,
not in bit 22:21.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/mach-imx/boot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/boot.c b/arch/arm/mach-imx/boot.c
index 4d81fd4..4416011 100644
--- a/arch/arm/mach-imx/boot.c
+++ b/arch/arm/mach-imx/boot.c
@@ -200,7 +200,7 @@ void imx53_boot_save_loc(void __iomem *src_base)
 	case BOOTSOURCE_MMC:
 	case BOOTSOURCE_SPI:
 	case BOOTSOURCE_I2C:
-		instance = (cfg1 >> 21) & 0x3;
+		instance = (cfg1 >> 20) & 0x3;
 		break;
 	default:
 		instance = 0;
-- 
1.8.5.2




More information about the barebox mailing list