[U-Boot] [PATCH 4/4] arm: koelsch: Add support reset function

Nobuhiro Iwamatsu nobuhiro.iwamatsu.yj at renesas.com
Wed Dec 11 09:08:44 CET 2013


Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj at renesas.com>
---
 board/renesas/koelsch/koelsch.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/board/renesas/koelsch/koelsch.c b/board/renesas/koelsch/koelsch.c
index 1975672..b52043b 100644
--- a/board/renesas/koelsch/koelsch.c
+++ b/board/renesas/koelsch/koelsch.c
@@ -355,6 +355,14 @@ int board_late_init(void)
 	return 0;
 }
 
+#define I2C_POWERIC_CHIP	0x58	/* da9063 */
+#define I2C_POWERIC_ADDR	0x13
 void reset_cpu(ulong addr)
 {
+	u8 val;
+
+	i2c_set_bus_num(2); /* PowerIC connected to ch2 */
+	i2c_read(I2C_POWERIC_CHIP, I2C_POWERIC_ADDR, 1, &val, 1);
+	val |= 0x02;
+	i2c_write(I2C_POWERIC_CHIP, I2C_POWERIC_ADDR, 1, &val, 1);
 }
-- 
1.8.5



More information about the U-Boot mailing list