summaryrefslogtreecommitdiff
path: root/board/omap3/logic/logic.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/omap3/logic/logic.c')
-rw-r--r--board/omap3/logic/logic.c61
1 files changed, 31 insertions, 30 deletions
diff --git a/board/omap3/logic/logic.c b/board/omap3/logic/logic.c
index 601f1f9c9fc..4756daee139 100644
--- a/board/omap3/logic/logic.c
+++ b/board/omap3/logic/logic.c
@@ -156,6 +156,37 @@ static void setup_net_chip(void);
static void setup_isp1760_chip(void);
static void fix_flash_sync(void);
+/* Turn on VAUX1 voltage to 3.0 volts to drive level shifters and
+ * power 3.0v parts (tsc2004 and Product ID chip) */
+#define I2C_TRITON2 0x4b /* Address of Triton power group */
+
+void init_vaux1_voltage(void)
+{
+#ifdef CONFIG_DRIVER_OMAP34XX_I2C
+ unsigned char data;
+ unsigned short msg;
+
+ i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
+
+ // Select the output voltage
+ data = 0x04;
+ i2c_write(I2C_TRITON2, 0x72, 1, &data, 1);
+ // Select the Processor resource group
+ data = 0x20;
+ i2c_write(I2C_TRITON2, 0x72, 1, &data, 1);
+ // Enable I2C access to the Power bus
+ data = 0x02;
+ i2c_write(I2C_TRITON2, 0x4a, 1, &data, 1);
+ // Send message MSB
+ msg = (1<<13) | (1<<4) | (0xd<<0); // group(process_grp1):resource(vaux1):res_active;
+ data = msg >> 8;
+ i2c_write(I2C_TRITON2, 0x4b, 1, &data, 1);
+ // Send message LSB
+ data = msg & 0xff;
+ i2c_write(I2C_TRITON2, 0x4c, 1, &data, 1);
+#endif
+}
+
/*
* Routine: misc_init_r
* Description: Configure board specific parts
@@ -208,36 +239,6 @@ int misc_init_r(void)
return 0;
}
-// Turn on VAUX1 voltage to 3.0 volts to drive level shifters and
-// power 3.0v parts (tsc2004 and Product ID chip)
-#define I2C_TRITON2 0x4b /* Address of Triton power group */
-
-void init_vaux1_voltage(void)
-{
-#ifdef CONFIG_DRIVER_OMAP34XX_I2C
- unsigned char data;
- unsigned short msg;
-
- i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
-
- // Select the output voltage
- data = 0x04;
- i2c_write(I2C_TRITON2, 0x72, 1, &data, 1);
- // Select the Processor resource group
- data = 0x20;
- i2c_write(I2C_TRITON2, 0x72, 1, &data, 1);
- // Enable I2C access to the Power bus
- data = 0x02;
- i2c_write(I2C_TRITON2, 0x4a, 1, &data, 1);
- // Send message MSB
- msg = (1<<13) | (1<<4) | (0xd<<0); // group(process_grp1):resource(vaux1):res_active;
- data = msg >> 8;
- i2c_write(I2C_TRITON2, 0x4b, 1, &data, 1);
- // Send message LSB
- data = msg & 0xff;
- i2c_write(I2C_TRITON2, 0x4c, 1, &data, 1);
-#endif
-}
/******************************************************************************
* Routine: late_board_init