diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2009-03-25 23:43:58 +0100 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-03-29 16:04:51 +0200 |
commit | 04531f3c11c693dc54924f82c41979d960309c9d (patch) | |
tree | fe4024454bc4d75c7a3a769426569dfc93e500c9 /board/netstar/netstar.c | |
parent | 71f7bd305d9768bcb7ddbe4b5823cbf3b3597b11 (diff) | |
download | u-boot-imx-04531f3c11c693dc54924f82c41979d960309c9d.zip u-boot-imx-04531f3c11c693dc54924f82c41979d960309c9d.tar.gz u-boot-imx-04531f3c11c693dc54924f82c41979d960309c9d.tar.bz2 |
NetStar: add RTC support
Add RTC support.
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Diffstat (limited to 'board/netstar/netstar.c')
-rw-r--r-- | board/netstar/netstar.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <common.h> +#include <i2c.h> #include <flash.h> 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; } |