summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRobin Gong <b38343@freescale.com>2013-09-03 18:56:03 +0800
committerRobin Gong <b38343@freescale.com>2013-09-04 17:12:49 +0800
commit52554e3857685a168d4fbc3db11eb88e01212e0e (patch)
treee652ad335501c786173b0bfd350ea41ee6bbd504 /arch
parenta34e2d6bd2897ce06d69267a9e8f5e17f8bb063d (diff)
downloadu-boot-imx-52554e3857685a168d4fbc3db11eb88e01212e0e.zip
u-boot-imx-52554e3857685a168d4fbc3db11eb88e01212e0e.tar.gz
u-boot-imx-52554e3857685a168d4fbc3db11eb88e01212e0e.tar.bz2
ENGR00277895-1: ARM: mx6: add waring message to use ldo-enable dts on 1.2G chip
We need add clear warning message to remind useing ldo-enable dts for 1.2G chip . Correct 1.2G check code too. Signed-off-by: Robin Gong <b38343@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/mx6/soc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c
index 79788b9..e3f4377 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -477,9 +477,11 @@ int check_1_2G(void)
struct fuse_bank0_regs *fuse_bank0 =
(struct fuse_bank0_regs *)bank->fuse_regs;
- reg = readl(&fuse_bank0->cfg4);
- if (reg & (0x3 << 16))
+ reg = readl(&fuse_bank0->cfg3);
+ if ((reg >> 16) & 0x3 == 0x3) {
+ printf("Please use ldo-enable dts!\n");
result = 1;
+ }
return result;
}