From 04531f3c11c693dc54924f82c41979d960309c9d Mon Sep 17 00:00:00 2001 From: Ladislav Michl Date: Wed, 25 Mar 2009 23:43:58 +0100 Subject: NetStar: add RTC support Add RTC support. Signed-off-by: Ladislav Michl --- board/netstar/netstar.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'board/netstar/netstar.c') diff --git a/board/netstar/netstar.c b/board/netstar/netstar.c index a76b338..19a70ef 100644 --- a/board/netstar/netstar.c +++ b/board/netstar/netstar.c @@ -21,6 +21,7 @@ */ #include +#include #include DECLARE_GLOBAL_DATA_PTR; @@ -53,6 +54,10 @@ int dram_init(void) int misc_init_r(void) { +#if defined(CONFIG_RTC_DS1307) + /* enable trickle charge */ + i2c_reg_write(CONFIG_SYS_I2C_RTC_ADDR, 0x10, 0xaa); +#endif return 0; } -- cgit v1.1