]> git.sur5r.net Git - u-boot/commitdiff
arm: koelsch: Add support reset function
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Thu, 10 Oct 2013 01:48:20 +0000 (10:48 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Wed, 18 Dec 2013 07:35:46 +0000 (16:35 +0900)
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
board/renesas/koelsch/koelsch.c
include/configs/koelsch.h

index 73cad66f1ed8aad16b53b22d06edc2d16350dcf0..89f5c91c636bf7174b7533ebc79698def41e8003 100644 (file)
@@ -357,4 +357,10 @@ int board_late_init(void)
 
 void reset_cpu(ulong addr)
 {
+       u8 val;
+
+       i2c_set_bus_num(2); /* PowerIC connected to ch2 */
+       i2c_read(CONFIG_SYS_I2C_POWERIC_ADDR, 0x13, 1, &val, 1);
+       val |= 0x02;
+       i2c_write(CONFIG_SYS_I2C_POWERIC_ADDR, 0x13, 1, &val, 1);
 }
index f410a8f79f5d6cf30bbefb5aeea5b52272183252..f8cca5b28106054d8f6d66c6ee52e41e424cff61 100644 (file)
 #define CONFIG_SH_I2C_DATA_LOW 5
 #define CONFIG_SH_I2C_CLOCK    10000000
 
+#define CONFIG_SYS_I2C_POWERIC_ADDR 0x58 /* da9063 */
+
 #endif /* __KOELSCH_H */