d88107cc11dec07f55531cec73d2c350000dea42
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-3.0 / pm-wip / voltdm / 0149-OMAP4-PM-TWL6030-add-cmd-register.patch
1 From 91af987d6b7658c1c01c9d7e55aecc0bd28461d7 Mon Sep 17 00:00:00 2001
2 From: Nishanth Menon <nm@ti.com>
3 Date: Wed, 18 May 2011 00:17:34 -0500
4 Subject: [PATCH 149/149] OMAP4: PM: TWL6030: add cmd register
6 Without the command register, ON/ONLP/RET/OFF voltages are
7 useless. and TWL will be unable to use these
9 Signed-off-by: Nishanth Menon <nm@ti.com>
10 ---
11 arch/arm/mach-omap2/omap_twl.c | 6 ++++++
12 1 files changed, 6 insertions(+), 0 deletions(-)
14 diff --git a/arch/arm/mach-omap2/omap_twl.c b/arch/arm/mach-omap2/omap_twl.c
15 index 4bc99fb..f515a1a 100644
16 --- a/arch/arm/mach-omap2/omap_twl.c
17 +++ b/arch/arm/mach-omap2/omap_twl.c
18 @@ -42,8 +42,11 @@
20 #define OMAP4_SRI2C_SLAVE_ADDR 0x12
21 #define OMAP4_VDD_MPU_SR_VOLT_REG 0x55
22 +#define OMAP4_VDD_MPU_SR_CMD_REG 0x56
23 #define OMAP4_VDD_IVA_SR_VOLT_REG 0x5B
24 +#define OMAP4_VDD_IVA_SR_CMD_REG 0x5C
25 #define OMAP4_VDD_CORE_SR_VOLT_REG 0x61
26 +#define OMAP4_VDD_CORE_SR_CMD_REG 0x62
28 #define OMAP4_VP_CONFIG_ERROROFFSET 0x00
29 #define OMAP4_VP_VSTEPMIN_VSTEPMIN 0x01
30 @@ -210,6 +213,7 @@ static struct omap_voltdm_pmic omap4_mpu_pmic = {
31 .vp_timeout_us = OMAP4_VP_VLIMITTO_TIMEOUT_US,
32 .i2c_slave_addr = OMAP4_SRI2C_SLAVE_ADDR,
33 .volt_reg_addr = OMAP4_VDD_MPU_SR_VOLT_REG,
34 + .cmd_reg_addr = OMAP4_VDD_MPU_SR_CMD_REG,
35 .i2c_high_speed = true,
36 .vsel_to_uv = twl6030_vsel_to_uv,
37 .uv_to_vsel = twl6030_uv_to_vsel,
38 @@ -231,6 +235,7 @@ static struct omap_voltdm_pmic omap4_iva_pmic = {
39 .vp_timeout_us = OMAP4_VP_VLIMITTO_TIMEOUT_US,
40 .i2c_slave_addr = OMAP4_SRI2C_SLAVE_ADDR,
41 .volt_reg_addr = OMAP4_VDD_IVA_SR_VOLT_REG,
42 + .cmd_reg_addr = OMAP4_VDD_IVA_SR_CMD_REG,
43 .i2c_high_speed = true,
44 .vsel_to_uv = twl6030_vsel_to_uv,
45 .uv_to_vsel = twl6030_uv_to_vsel,
46 @@ -252,6 +257,7 @@ static struct omap_voltdm_pmic omap4_core_pmic = {
47 .vp_timeout_us = OMAP4_VP_VLIMITTO_TIMEOUT_US,
48 .i2c_slave_addr = OMAP4_SRI2C_SLAVE_ADDR,
49 .volt_reg_addr = OMAP4_VDD_CORE_SR_VOLT_REG,
50 + .cmd_reg_addr = OMAP4_VDD_CORE_SR_CMD_REG,
51 .vsel_to_uv = twl6030_vsel_to_uv,
52 .uv_to_vsel = twl6030_uv_to_vsel,
53 };
54 --
55 1.6.6.1