From feb0a76c531f6e07fe8ea7efe4ab02be8e0a0a44 Mon Sep 17 00:00:00 2001 From: Robin Gong Date: Mon, 9 Sep 2013 10:33:15 +0800 Subject: ENGR00278692 ARM: mx6: use hang() instead of do_reset when wrong dtb file used Use hang() instead of do_reset, so that we can easily see what error happen. Signed-off-by: Robin Gong --- arch/arm/cpu/armv7/mx6/soc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index 61f586c..b3e2554 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -487,7 +487,7 @@ int check_1_2G(void) reg = readl(&fuse_bank0->cfg3); if ((reg >> 16) & 0x3 == 0x3) { if (ldo_bypass) { - printf("ERR:Wrong dtb file used! i.MX6Q@1.2Ghz only" + printf("Wrong dtb file used! i.MX6Q@1.2Ghz only " "works with ldo-enable mode!\n"); /* * Currently, only imx6q-sabresd board might be here, @@ -497,7 +497,7 @@ int check_1_2G(void) * supports both ldo-bypass and ldo-enable mode. */ printf("Please use imx6q-sabresd-ldo.dtb!\n"); - do_reset(NULL, 0, 0, NULL); + hang(); } result = 1; } -- cgit v1.1