diff options
author | Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> | 2013-10-10 09:13:41 +0900 |
---|---|---|
committer | Nobuhiro Iwamatsu <iwamatsu@nigauri.org> | 2013-12-18 16:35:45 +0900 |
commit | b9986be0840d7945f760204bfb1a4b565ba235ff (patch) | |
tree | 57a2c8910f36488247860107879a309b35e2a959 /board/renesas/lager | |
parent | b9107adf0bda7725184de7ab8bac56f3aa9cb553 (diff) | |
download | u-boot-imx-b9986be0840d7945f760204bfb1a4b565ba235ff.zip u-boot-imx-b9986be0840d7945f760204bfb1a4b565ba235ff.tar.gz u-boot-imx-b9986be0840d7945f760204bfb1a4b565ba235ff.tar.bz2 |
arm: lager: Add support reset function
The lager board uses I2C for reset.
ned-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Diffstat (limited to 'board/renesas/lager')
-rw-r--r-- | board/renesas/lager/lager.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/renesas/lager/lager.c b/board/renesas/lager/lager.c index ba923d5..cdd5b32 100644 --- a/board/renesas/lager/lager.c +++ b/board/renesas/lager/lager.c @@ -19,6 +19,7 @@ #include <asm/gpio.h> #include <asm/arch/rmobile.h> #include <miiphy.h> +#include <i2c.h> #include "qos.h" DECLARE_GLOBAL_DATA_PTR; @@ -354,4 +355,11 @@ int board_late_init(void) void reset_cpu(ulong addr) { + u8 val; + + i2c_set_bus_num(3); /* PowerIC connected to ch3 */ + i2c_init(400000, 0); + i2c_read(CONFIG_SYS_I2C_POWERIC_ADDR, 0x13, 1, &val, 1); + val |= 0x02; + i2c_write(CONFIG_SYS_I2C_POWERIC_ADDR, 0x13, 1, &val, 1); } |