[Letux-kernel] [PATCHv2] letux/gta04: do not mess with RTC_HOURS

Andreas Kemnade andreas at kemnade.info
Thu Feb 2 19:38:24 CET 2017


parameter order was wrong, a wrong register was written to.

Signed-off-by: Andreas Kemnade <andreas at kemnade.info>
---
changes in v2: improved commit message
 board/goldelico/letux-gta04/gta04.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/goldelico/letux-gta04/gta04.c b/board/goldelico/letux-gta04/gta04.c
index 5c93d26..46ccb94 100644
--- a/board/goldelico/letux-gta04/gta04.c
+++ b/board/goldelico/letux-gta04/gta04.c
@@ -359,9 +359,9 @@ static void tps65950_init(void)
 #define TWL4030_BB_CFG_BBISEL_500UA	2
 	
 	/* Enable battery backup capacitor (3.2V, 0.5mA charge current) */
-	twl4030_i2c_write_u8(TWL4030_CHIP_PM_RECEIVER,
+	twl4030_i2c_write_u8(TWL4030_CHIP_PM_RECEIVER, TWL4030_PM_RECEIVER_BB_CFG,
 						 TWL4030_BB_CFG_BBCHEN | TWL4030_BB_CFG_BBSEL_3200MV |
-						 TWL4030_BB_CFG_BBISEL_500UA, TWL4030_PM_RECEIVER_BB_CFG);
+						 TWL4030_BB_CFG_BBISEL_500UA);
 #endif
 	
 }
-- 
2.1.4



More information about the Letux-kernel mailing list