diff options
author | Robin Gong <b38343@freescale.com> | 2013-09-03 18:56:03 +0800 |
---|---|---|
committer | Robin Gong <b38343@freescale.com> | 2013-09-04 17:23:35 +0800 |
commit | 752f3b91bc60678d8b26707444bd8a470d60f15e (patch) | |
tree | e652ad335501c786173b0bfd350ea41ee6bbd504 | |
parent | b3bd56c7d0900c3be7d9cd4248d32a17db2f0dbc (diff) | |
download | u-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>
-rw-r--r-- | arch/arm/cpu/armv7/mx6/soc.c | 6 |
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; } |