From d658ec5cf8b86f10a53fc1f94b6fb549b84a1baa Mon Sep 17 00:00:00 2001 From: "H. Nikolaus Schaller" Date: Wed, 27 Jan 2016 15:12:44 +0100 Subject: [PATCH] Pyra: disable b2429x watchdog timer or the board will shut down ~30 seconds after U-Boot did start Signed-off-by: H. Nikolaus Schaller --- board/pandora/pyra+lc15/pyra+lc15.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/pandora/pyra+lc15/pyra+lc15.c b/board/pandora/pyra+lc15/pyra+lc15.c index 831f62785a2..910cde8b84c 100644 --- a/board/pandora/pyra+lc15/pyra+lc15.c +++ b/board/pandora/pyra+lc15/pyra+lc15.c @@ -84,8 +84,7 @@ void set_muxconf_regs_essential(void) /* U-Boot only code */ #if !defined(CONFIG_SPL_BUILD) -// FIXME: we should write to i2c2 and not to i2c1! -// FIXME: add a driver? +// FIXME: add a bq2427x driver? /* I2C chip addresses, bq24297 */ #define BQ24297_BUS 1 /* I2C2 */ @@ -176,6 +175,8 @@ int board_init(void) { int ilim; board_init_overwritten(); /* do everything inherited from LC15 board */ + if (bq24297_i2c_write_u8(0x05, 0x8a)) + printf("bq24297: could not turn off 40 sec watchdog\n"); /* set bq24297 current limit to 2 A if we operate from no battery and 100 mA if we have */ ilim = bq2429x_battery_present() ? 100 : 2000; bq2429x_set_iinlim(ilim); -- 2.39.5