From: Grazvydas Ignotas Date: Tue, 20 Oct 2009 14:57:35 +0000 (+0300) Subject: power on devices that kernel does not turn on yet X-Git-Tag: v2009.08-pandora~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79d4d8ffa4b3f2c93b777f5c327c1df87cdb3955;p=pandora-u-boot.git power on devices that kernel does not turn on yet --- diff --git a/board/omap3/pandora/pandora.c b/board/omap3/pandora/pandora.c index 460ed123595..92f3366f734 100644 --- a/board/omap3/pandora/pandora.c +++ b/board/omap3/pandora/pandora.c @@ -35,6 +35,7 @@ #include #include #include +#include #include "pandora.h" /* @@ -64,6 +65,7 @@ int misc_init_r(void) struct gpio *gpio4_base = (struct gpio *)OMAP34XX_GPIO4_BASE; struct gpio *gpio5_base = (struct gpio *)OMAP34XX_GPIO5_BASE; struct gpio *gpio6_base = (struct gpio *)OMAP34XX_GPIO6_BASE; + unsigned char byte; twl4030_power_init(); twl4030_led_init(); @@ -81,6 +83,19 @@ int misc_init_r(void) dieid_num_r(); + /* this stuff should move to kernel. */ + /* set vaux4 to 2.8V (TOUCH, NUBS) */ + byte = 0x0A; + i2c_write(0x4B, 0x81, 1, &byte, 1); + byte = 0x20; + i2c_write(0x4B, 0x7E, 1, &byte, 1); + + /* set vsim to 2.8V (AUDIO DAC external) */ + byte = 0x04; + i2c_write(0x4B, 0x95, 1, &byte, 1); + byte = 0x20; + i2c_write(0x4B, 0x92, 1, &byte, 1); + return 0; }