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:23:35 +0800
commit752f3b91bc60678d8b26707444bd8a470d60f15e (patch)
treee652ad335501c786173b0bfd350ea41ee6bbd504 /arch
parentb3bd56c7d0900c3be7d9cd4248d32a17db2f0dbc (diff)
downloadu-boot-imx-752f3b91bc60678d8b26707444bd8a470d60f15e.zip
u-boot-imx-752f3b91bc60678d8b26707444bd8a470d60f15e.tar.gz
u-boot-imx-752f3b91bc60678d8b26707444bd8a470d60f15e.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;
}