summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gong <b38343@freescale.com>2013-09-09 10:33:15 +0800
committerRobin Gong <b38343@freescale.com>2013-09-09 14:36:08 +0800
commitfeb0a76c531f6e07fe8ea7efe4ab02be8e0a0a44 (patch)
tree539f8c7fc7aa75a8d5a730dd845448f23dbc26fe
parent35b01bf4aecc8ad4e657a980d642483987b8fda2 (diff)
downloadu-boot-imx-feb0a76c531f6e07fe8ea7efe4ab02be8e0a0a44.zip
u-boot-imx-feb0a76c531f6e07fe8ea7efe4ab02be8e0a0a44.tar.gz
u-boot-imx-feb0a76c531f6e07fe8ea7efe4ab02be8e0a0a44.tar.bz2
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 <b38343@freescale.com>
-rw-r--r--arch/arm/cpu/armv7/mx6/soc.c4
1 files 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;
}