diff options
author | Robin Gong <B38343@freescale.com> | 2011-09-19 12:44:08 +0800 |
---|---|---|
committer | Robin Gong <B38343@freescale.com> | 2011-09-19 12:45:10 +0800 |
commit | c690577b6a25f416f5b79bbd0ded89bceb4b023b (patch) | |
tree | e9aa26fa01ba562a3bece6f3588bb2d615287ced /board/freescale/mx53_pcba | |
parent | e2c4083c4b9afffdc64d6916ab69bd596ed10fc0 (diff) | |
download | u-boot-imx-c690577b6a25f416f5b79bbd0ded89bceb4b023b.zip u-boot-imx-c690577b6a25f416f5b79bbd0ded89bceb4b023b.tar.gz u-boot-imx-c690577b6a25f416f5b79bbd0ded89bceb4b023b.tar.bz2 |
ENGR00155569 mc34708: change global reset time as 4s of LOCO and PCBA
reduce the time of global reset to 4s in the boards of loco and pcba
Signed-off-by: Robin Gong <B38343@freescale.com>
Diffstat (limited to 'board/freescale/mx53_pcba')
-rw-r--r-- | board/freescale/mx53_pcba/mx53_pcba.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/board/freescale/mx53_pcba/mx53_pcba.c b/board/freescale/mx53_pcba/mx53_pcba.c index e3c9621..5ea1658 100644 --- a/board/freescale/mx53_pcba/mx53_pcba.c +++ b/board/freescale/mx53_pcba/mx53_pcba.c @@ -356,6 +356,17 @@ void setup_pmic_voltages(void) buf[0] = (buf[0] & 0xf8) | 0x7; if (i2c_write(0x8, 51, 1, buf, 3)) printf("%s:i2c_write 51:error\n", __func__); + /*change global reset time as 4s*/ + if (i2c_read(0x8, 15, 1, &buf[0], 3)) { + printf("%s:i2c_read:error\n", __func__); + return -1; + } + buf[1] |= 0x1; + buf[1] &= ~0x2; + if (i2c_write(0x8, 15, 1, buf, 3)) { + printf("%s:i2c_write:error\n", __func__); + return -1; + } } else printf("Error: Dont't found mc34708 on board.\n"); |