summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/mx53_loco/mx53_loco.c11
-rw-r--r--board/freescale/mx53_pcba/mx53_pcba.c11
2 files changed, 22 insertions, 0 deletions
diff --git a/board/freescale/mx53_loco/mx53_loco.c b/board/freescale/mx53_loco/mx53_loco.c
index 963c11e..fda52dc 100644
--- a/board/freescale/mx53_loco/mx53_loco.c
+++ b/board/freescale/mx53_loco/mx53_loco.c
@@ -844,6 +844,17 @@ int board_late_init(void)
printf("%s:i2c_write:error\n", __func__);
return -1;
}
+ /*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;
+ }
/* set up rev #1 for loco/ripley board */
setup_board_rev(get_board_rev_from_fuse());
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");