summaryrefslogtreecommitdiff
path: root/board/pandora/pandora.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2010-06-17 21:59:57 +0200
committerWolfgang Denk <wd@denx.de>2010-06-17 21:59:57 +0200
commit530135dcacac278798346ad5825c03131ce51772 (patch)
treec99311a1ebab3dc97c30a0a92d88f9183da69ab0 /board/pandora/pandora.c
parent399b09331f313d57b16b583f453387231d217f15 (diff)
parent89b765c7f6ddfde07ba673dd4adbeb5da391a81b (diff)
downloadu-boot-imx-530135dcacac278798346ad5825c03131ce51772.zip
u-boot-imx-530135dcacac278798346ad5825c03131ce51772.tar.gz
u-boot-imx-530135dcacac278798346ad5825c03131ce51772.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-ti
Conflicts: CONFLICT (rename/add): Rename board/davinci/da830evm/Makefile->board/ti/tnetv107xevm/Makefile in 89b765c7f6ddfde07ba673dd4adbeb5da391a81b. board/ti/tnetv107xevm/Makefile added in HEAD But files were identical, so no problem. Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/pandora/pandora.c')
-rw-r--r--board/pandora/pandora.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/pandora/pandora.c b/board/pandora/pandora.c
index 75e4330..355e9ea 100644
--- a/board/pandora/pandora.c
+++ b/board/pandora/pandora.c
@@ -37,6 +37,10 @@
#include <asm/mach-types.h>
#include "pandora.h"
+#define TWL4030_BB_CFG_BBCHEN (1 << 4)
+#define TWL4030_BB_CFG_BBSEL_3200MV (3 << 2)
+#define TWL4030_BB_CFG_BBISEL_500UA 2
+
/*
* Routine: board_init
* Description: Early hardware init.
@@ -78,6 +82,11 @@ int misc_init_r(void)
writel(GPIO28, &gpio5_base->setdataout);
writel(GPIO4, &gpio6_base->setdataout);
+ /* Enable battery backup capacitor (3.2V, 0.5mA charge current) */
+ twl4030_i2c_write_u8(TWL4030_CHIP_PM_RECEIVER,
+ TWL4030_BB_CFG_BBCHEN | TWL4030_BB_CFG_BBSEL_3200MV |
+ TWL4030_BB_CFG_BBISEL_500UA, TWL4030_PM_RECEIVER_BB_CFG);
+
dieid_num_r();
return 0;