summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Rubini <rubini@gnudd.com>2011-02-02 12:30:48 -0700
committerMathieu J. Poirier <mathieu.poirier@linaro.org>2011-02-14 14:48:14 -0700
commitceb7690570557ceeb36ceb16457353fac04d70fa (patch)
tree86cf04ca4648a27908bd89315161e61442f6d63d
parentb214cecfb81fddba6ce74e73b16654010a48e395 (diff)
u8500.c: set GPIO26 in power manager
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-rw-r--r--board/st/u8500/u8500.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/board/st/u8500/u8500.c b/board/st/u8500/u8500.c
index 43f21eed0..6495f0eb0 100644
--- a/board/st/u8500/u8500.c
+++ b/board/st/u8500/u8500.c
@@ -532,6 +532,33 @@ int board_late_init(void)
else
setenv("board_id", "1");
+ /* For snowball (aka "minikit") we need to raise AB8500's GPIO26 */
+ ret = ab8500_read(AB8500_MISC, AB8500_GPIO_DIR4_REG);
+ if (ret < 0) {
+ printf("error at %s:%i\n", __func__, __LINE__);
+ goto out;
+ }
+ printf("dir4 = %02x\n", ret);
+ ret |= 0x2;
+ ret = ab8500_write(AB8500_MISC, AB8500_GPIO_DIR4_REG, ret);
+ if (ret < 0) {
+ printf("error at %s:%i\n", __func__, __LINE__);
+ goto out;
+ }
+
+ ret = ab8500_read(AB8500_MISC, AB8500_GPIO_OUT4_REG);
+ if (ret < 0) {
+ printf("error at %s:%i\n", __func__, __LINE__);
+ goto out;
+ }
+ printf("out4 = %02x\n", ret);
+ ret |= 0x2;
+ ret = ab8500_write(AB8500_MISC, AB8500_GPIO_OUT4_REG, ret);
+ if (ret < 0) {
+ printf("error at %s:%i\n", __func__, __LINE__);
+ goto out;
+ }
+out:
#ifdef CONFIG_MMC
hrefplus_mmc_power_init();