Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 2 | /** |
Masahiro Yamada | 183b802 | 2017-02-27 14:29:20 -0800 | [diff] [blame] | 3 | * OMAP and TWL PMIC specific initializations. |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 4 | * |
| 5 | * Copyright (C) 2010 Texas Instruments Incorporated. |
| 6 | * Thara Gopinath |
| 7 | * Copyright (C) 2009 Texas Instruments Incorporated. |
| 8 | * Nishanth Menon |
| 9 | * Copyright (C) 2009 Nokia Corporation |
| 10 | * Paul Walmsley |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 11 | */ |
| 12 | |
| 13 | #include <linux/err.h> |
| 14 | #include <linux/io.h> |
| 15 | #include <linux/kernel.h> |
Wolfram Sang | a205425 | 2017-08-14 18:34:24 +0200 | [diff] [blame] | 16 | #include <linux/mfd/twl.h> |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 17 | |
Tony Lindgren | e4c060d | 2012-10-05 13:25:59 -0700 | [diff] [blame] | 18 | #include "soc.h" |
Paul Walmsley | e1d6f47 | 2011-02-25 15:54:33 -0700 | [diff] [blame] | 19 | #include "voltage.h" |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 20 | |
Nishanth Menon | dda0aea | 2011-01-03 12:58:30 -0600 | [diff] [blame] | 21 | #include "pm.h" |
| 22 | |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 23 | #define OMAP3_SRI2C_SLAVE_ADDR 0x12 |
| 24 | #define OMAP3_VDD_MPU_SR_CONTROL_REG 0x00 |
| 25 | #define OMAP3_VDD_CORE_SR_CONTROL_REG 0x01 |
| 26 | #define OMAP3_VP_CONFIG_ERROROFFSET 0x00 |
| 27 | #define OMAP3_VP_VSTEPMIN_VSTEPMIN 0x1 |
| 28 | #define OMAP3_VP_VSTEPMAX_VSTEPMAX 0x04 |
| 29 | #define OMAP3_VP_VLIMITTO_TIMEOUT_US 200 |
| 30 | |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 31 | #define OMAP4_SRI2C_SLAVE_ADDR 0x12 |
| 32 | #define OMAP4_VDD_MPU_SR_VOLT_REG 0x55 |
Nishanth Menon | ee7fbba | 2011-05-18 00:17:34 -0500 | [diff] [blame] | 33 | #define OMAP4_VDD_MPU_SR_CMD_REG 0x56 |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 34 | #define OMAP4_VDD_IVA_SR_VOLT_REG 0x5B |
Nishanth Menon | ee7fbba | 2011-05-18 00:17:34 -0500 | [diff] [blame] | 35 | #define OMAP4_VDD_IVA_SR_CMD_REG 0x5C |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 36 | #define OMAP4_VDD_CORE_SR_VOLT_REG 0x61 |
Nishanth Menon | ee7fbba | 2011-05-18 00:17:34 -0500 | [diff] [blame] | 37 | #define OMAP4_VDD_CORE_SR_CMD_REG 0x62 |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 38 | |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 39 | static bool is_offset_valid; |
| 40 | static u8 smps_offset; |
| 41 | |
| 42 | #define REG_SMPS_OFFSET 0xE0 |
| 43 | |
Nishanth Menon | c84ff1c | 2011-01-03 12:58:29 -0600 | [diff] [blame] | 44 | static unsigned long twl4030_vsel_to_uv(const u8 vsel) |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 45 | { |
| 46 | return (((vsel * 125) + 6000)) * 100; |
| 47 | } |
| 48 | |
Nishanth Menon | c84ff1c | 2011-01-03 12:58:29 -0600 | [diff] [blame] | 49 | static u8 twl4030_uv_to_vsel(unsigned long uv) |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 50 | { |
| 51 | return DIV_ROUND_UP(uv - 600000, 12500); |
| 52 | } |
| 53 | |
Nishanth Menon | c84ff1c | 2011-01-03 12:58:29 -0600 | [diff] [blame] | 54 | static unsigned long twl6030_vsel_to_uv(const u8 vsel) |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 55 | { |
| 56 | /* |
| 57 | * In TWL6030 depending on the value of SMPS_OFFSET |
| 58 | * efuse register the voltage range supported in |
| 59 | * standard mode can be either between 0.6V - 1.3V or |
| 60 | * 0.7V - 1.4V. In TWL6030 ES1.0 SMPS_OFFSET efuse |
| 61 | * is programmed to all 0's where as starting from |
| 62 | * TWL6030 ES1.1 the efuse is programmed to 1 |
| 63 | */ |
| 64 | if (!is_offset_valid) { |
| 65 | twl_i2c_read_u8(TWL6030_MODULE_ID0, &smps_offset, |
| 66 | REG_SMPS_OFFSET); |
| 67 | is_offset_valid = true; |
| 68 | } |
| 69 | |
Nishanth Menon | 2aed5b9 | 2011-05-18 00:17:32 -0500 | [diff] [blame] | 70 | if (!vsel) |
| 71 | return 0; |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 72 | /* |
| 73 | * There is no specific formula for voltage to vsel |
| 74 | * conversion above 1.3V. There are special hardcoded |
| 75 | * values for voltages above 1.3V. Currently we are |
| 76 | * hardcoding only for 1.35 V which is used for 1GH OPP for |
| 77 | * OMAP4430. |
| 78 | */ |
| 79 | if (vsel == 0x3A) |
| 80 | return 1350000; |
| 81 | |
| 82 | if (smps_offset & 0x8) |
Patrick Titiano | 58e241f | 2011-05-18 00:17:30 -0500 | [diff] [blame] | 83 | return ((((vsel - 1) * 1266) + 70900)) * 10; |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 84 | else |
Patrick Titiano | 58e241f | 2011-05-18 00:17:30 -0500 | [diff] [blame] | 85 | return ((((vsel - 1) * 1266) + 60770)) * 10; |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 86 | } |
| 87 | |
Nishanth Menon | c84ff1c | 2011-01-03 12:58:29 -0600 | [diff] [blame] | 88 | static u8 twl6030_uv_to_vsel(unsigned long uv) |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 89 | { |
| 90 | /* |
| 91 | * In TWL6030 depending on the value of SMPS_OFFSET |
| 92 | * efuse register the voltage range supported in |
| 93 | * standard mode can be either between 0.6V - 1.3V or |
| 94 | * 0.7V - 1.4V. In TWL6030 ES1.0 SMPS_OFFSET efuse |
| 95 | * is programmed to all 0's where as starting from |
| 96 | * TWL6030 ES1.1 the efuse is programmed to 1 |
| 97 | */ |
| 98 | if (!is_offset_valid) { |
| 99 | twl_i2c_read_u8(TWL6030_MODULE_ID0, &smps_offset, |
| 100 | REG_SMPS_OFFSET); |
| 101 | is_offset_valid = true; |
| 102 | } |
| 103 | |
Nishanth Menon | 2aed5b9 | 2011-05-18 00:17:32 -0500 | [diff] [blame] | 104 | if (!uv) |
| 105 | return 0x00; |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 106 | /* |
| 107 | * There is no specific formula for voltage to vsel |
| 108 | * conversion above 1.3V. There are special hardcoded |
| 109 | * values for voltages above 1.3V. Currently we are |
| 110 | * hardcoding only for 1.35 V which is used for 1GH OPP for |
| 111 | * OMAP4430. |
| 112 | */ |
Nishanth Menon | 3664942 | 2011-05-18 00:17:31 -0500 | [diff] [blame] | 113 | if (uv > twl6030_vsel_to_uv(0x39)) { |
| 114 | if (uv == 1350000) |
| 115 | return 0x3A; |
| 116 | pr_err("%s:OUT OF RANGE! non mapped vsel for %ld Vs max %ld\n", |
| 117 | __func__, uv, twl6030_vsel_to_uv(0x39)); |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 118 | return 0x3A; |
Nishanth Menon | 3664942 | 2011-05-18 00:17:31 -0500 | [diff] [blame] | 119 | } |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 120 | |
| 121 | if (smps_offset & 0x8) |
Patrick Titiano | 58e241f | 2011-05-18 00:17:30 -0500 | [diff] [blame] | 122 | return DIV_ROUND_UP(uv - 709000, 12660) + 1; |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 123 | else |
Patrick Titiano | 58e241f | 2011-05-18 00:17:30 -0500 | [diff] [blame] | 124 | return DIV_ROUND_UP(uv - 607700, 12660) + 1; |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 125 | } |
| 126 | |
Kevin Hilman | ce8ebe0 | 2011-03-30 11:01:10 -0700 | [diff] [blame] | 127 | static struct omap_voltdm_pmic omap3_mpu_pmic = { |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 128 | .slew_rate = 4000, |
| 129 | .step_size = 12500, |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 130 | .vp_erroroffset = OMAP3_VP_CONFIG_ERROROFFSET, |
| 131 | .vp_vstepmin = OMAP3_VP_VSTEPMIN_VSTEPMIN, |
| 132 | .vp_vstepmax = OMAP3_VP_VSTEPMAX_VSTEPMAX, |
Tero Kristo | 5a84dc5 | 2012-09-25 19:33:42 +0300 | [diff] [blame] | 133 | .vddmin = 600000, |
| 134 | .vddmax = 1450000, |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 135 | .vp_timeout_us = OMAP3_VP_VLIMITTO_TIMEOUT_US, |
| 136 | .i2c_slave_addr = OMAP3_SRI2C_SLAVE_ADDR, |
Kevin Hilman | e74e440 | 2011-03-22 14:12:37 -0700 | [diff] [blame] | 137 | .volt_reg_addr = OMAP3_VDD_MPU_SR_CONTROL_REG, |
Kevin Hilman | f539548 | 2011-03-30 16:36:30 -0700 | [diff] [blame] | 138 | .i2c_high_speed = true, |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 139 | .vsel_to_uv = twl4030_vsel_to_uv, |
| 140 | .uv_to_vsel = twl4030_uv_to_vsel, |
| 141 | }; |
| 142 | |
Kevin Hilman | ce8ebe0 | 2011-03-30 11:01:10 -0700 | [diff] [blame] | 143 | static struct omap_voltdm_pmic omap3_core_pmic = { |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 144 | .slew_rate = 4000, |
| 145 | .step_size = 12500, |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 146 | .vp_erroroffset = OMAP3_VP_CONFIG_ERROROFFSET, |
| 147 | .vp_vstepmin = OMAP3_VP_VSTEPMIN_VSTEPMIN, |
| 148 | .vp_vstepmax = OMAP3_VP_VSTEPMAX_VSTEPMAX, |
Tero Kristo | 5a84dc5 | 2012-09-25 19:33:42 +0300 | [diff] [blame] | 149 | .vddmin = 600000, |
| 150 | .vddmax = 1450000, |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 151 | .vp_timeout_us = OMAP3_VP_VLIMITTO_TIMEOUT_US, |
| 152 | .i2c_slave_addr = OMAP3_SRI2C_SLAVE_ADDR, |
Kevin Hilman | e74e440 | 2011-03-22 14:12:37 -0700 | [diff] [blame] | 153 | .volt_reg_addr = OMAP3_VDD_CORE_SR_CONTROL_REG, |
Kevin Hilman | f539548 | 2011-03-30 16:36:30 -0700 | [diff] [blame] | 154 | .i2c_high_speed = true, |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 155 | .vsel_to_uv = twl4030_vsel_to_uv, |
| 156 | .uv_to_vsel = twl4030_uv_to_vsel, |
| 157 | }; |
| 158 | |
Kevin Hilman | ce8ebe0 | 2011-03-30 11:01:10 -0700 | [diff] [blame] | 159 | static struct omap_voltdm_pmic omap4_mpu_pmic = { |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 160 | .slew_rate = 4000, |
Patrick Titiano | 58e241f | 2011-05-18 00:17:30 -0500 | [diff] [blame] | 161 | .step_size = 12660, |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 162 | .vp_erroroffset = OMAP4_VP_CONFIG_ERROROFFSET, |
| 163 | .vp_vstepmin = OMAP4_VP_VSTEPMIN_VSTEPMIN, |
| 164 | .vp_vstepmax = OMAP4_VP_VSTEPMAX_VSTEPMAX, |
Tero Kristo | 5a84dc5 | 2012-09-25 19:33:42 +0300 | [diff] [blame] | 165 | .vddmin = 0, |
| 166 | .vddmax = 2100000, |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 167 | .vp_timeout_us = OMAP4_VP_VLIMITTO_TIMEOUT_US, |
| 168 | .i2c_slave_addr = OMAP4_SRI2C_SLAVE_ADDR, |
Kevin Hilman | e74e440 | 2011-03-22 14:12:37 -0700 | [diff] [blame] | 169 | .volt_reg_addr = OMAP4_VDD_MPU_SR_VOLT_REG, |
Nishanth Menon | ee7fbba | 2011-05-18 00:17:34 -0500 | [diff] [blame] | 170 | .cmd_reg_addr = OMAP4_VDD_MPU_SR_CMD_REG, |
Kevin Hilman | f539548 | 2011-03-30 16:36:30 -0700 | [diff] [blame] | 171 | .i2c_high_speed = true, |
Tero Kristo | 00bd228 | 2012-09-25 19:33:48 +0300 | [diff] [blame] | 172 | .i2c_pad_load = 3, |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 173 | .vsel_to_uv = twl6030_vsel_to_uv, |
| 174 | .uv_to_vsel = twl6030_uv_to_vsel, |
| 175 | }; |
| 176 | |
Kevin Hilman | ce8ebe0 | 2011-03-30 11:01:10 -0700 | [diff] [blame] | 177 | static struct omap_voltdm_pmic omap4_iva_pmic = { |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 178 | .slew_rate = 4000, |
Patrick Titiano | 58e241f | 2011-05-18 00:17:30 -0500 | [diff] [blame] | 179 | .step_size = 12660, |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 180 | .vp_erroroffset = OMAP4_VP_CONFIG_ERROROFFSET, |
| 181 | .vp_vstepmin = OMAP4_VP_VSTEPMIN_VSTEPMIN, |
| 182 | .vp_vstepmax = OMAP4_VP_VSTEPMAX_VSTEPMAX, |
Tero Kristo | 5a84dc5 | 2012-09-25 19:33:42 +0300 | [diff] [blame] | 183 | .vddmin = 0, |
| 184 | .vddmax = 2100000, |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 185 | .vp_timeout_us = OMAP4_VP_VLIMITTO_TIMEOUT_US, |
| 186 | .i2c_slave_addr = OMAP4_SRI2C_SLAVE_ADDR, |
Kevin Hilman | e74e440 | 2011-03-22 14:12:37 -0700 | [diff] [blame] | 187 | .volt_reg_addr = OMAP4_VDD_IVA_SR_VOLT_REG, |
Nishanth Menon | ee7fbba | 2011-05-18 00:17:34 -0500 | [diff] [blame] | 188 | .cmd_reg_addr = OMAP4_VDD_IVA_SR_CMD_REG, |
Kevin Hilman | f539548 | 2011-03-30 16:36:30 -0700 | [diff] [blame] | 189 | .i2c_high_speed = true, |
Tero Kristo | 00bd228 | 2012-09-25 19:33:48 +0300 | [diff] [blame] | 190 | .i2c_pad_load = 3, |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 191 | .vsel_to_uv = twl6030_vsel_to_uv, |
| 192 | .uv_to_vsel = twl6030_uv_to_vsel, |
| 193 | }; |
| 194 | |
Kevin Hilman | ce8ebe0 | 2011-03-30 11:01:10 -0700 | [diff] [blame] | 195 | static struct omap_voltdm_pmic omap4_core_pmic = { |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 196 | .slew_rate = 4000, |
Patrick Titiano | 58e241f | 2011-05-18 00:17:30 -0500 | [diff] [blame] | 197 | .step_size = 12660, |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 198 | .vp_erroroffset = OMAP4_VP_CONFIG_ERROROFFSET, |
| 199 | .vp_vstepmin = OMAP4_VP_VSTEPMIN_VSTEPMIN, |
| 200 | .vp_vstepmax = OMAP4_VP_VSTEPMAX_VSTEPMAX, |
Tero Kristo | 5a84dc5 | 2012-09-25 19:33:42 +0300 | [diff] [blame] | 201 | .vddmin = 0, |
| 202 | .vddmax = 2100000, |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 203 | .vp_timeout_us = OMAP4_VP_VLIMITTO_TIMEOUT_US, |
| 204 | .i2c_slave_addr = OMAP4_SRI2C_SLAVE_ADDR, |
Kevin Hilman | e74e440 | 2011-03-22 14:12:37 -0700 | [diff] [blame] | 205 | .volt_reg_addr = OMAP4_VDD_CORE_SR_VOLT_REG, |
Nishanth Menon | ee7fbba | 2011-05-18 00:17:34 -0500 | [diff] [blame] | 206 | .cmd_reg_addr = OMAP4_VDD_CORE_SR_CMD_REG, |
Tero Kristo | 83b5b55 | 2012-09-25 19:33:49 +0300 | [diff] [blame] | 207 | .i2c_high_speed = true, |
Tero Kristo | 00bd228 | 2012-09-25 19:33:48 +0300 | [diff] [blame] | 208 | .i2c_pad_load = 3, |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 209 | .vsel_to_uv = twl6030_vsel_to_uv, |
| 210 | .uv_to_vsel = twl6030_uv_to_vsel, |
| 211 | }; |
| 212 | |
| 213 | int __init omap4_twl_init(void) |
| 214 | { |
| 215 | struct voltagedomain *voltdm; |
| 216 | |
Tony Lindgren | ccd3694 | 2019-10-16 07:37:05 -0700 | [diff] [blame] | 217 | if (!cpu_is_omap44xx() || |
| 218 | of_find_compatible_node(NULL, NULL, "motorola,cpcap")) |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 219 | return -ENODEV; |
| 220 | |
Kevin Hilman | 81a6048 | 2011-03-16 14:25:45 -0700 | [diff] [blame] | 221 | voltdm = voltdm_lookup("mpu"); |
Kevin Hilman | ce8ebe0 | 2011-03-30 11:01:10 -0700 | [diff] [blame] | 222 | omap_voltage_register_pmic(voltdm, &omap4_mpu_pmic); |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 223 | |
Kevin Hilman | 81a6048 | 2011-03-16 14:25:45 -0700 | [diff] [blame] | 224 | voltdm = voltdm_lookup("iva"); |
Kevin Hilman | ce8ebe0 | 2011-03-30 11:01:10 -0700 | [diff] [blame] | 225 | omap_voltage_register_pmic(voltdm, &omap4_iva_pmic); |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 226 | |
Kevin Hilman | 81a6048 | 2011-03-16 14:25:45 -0700 | [diff] [blame] | 227 | voltdm = voltdm_lookup("core"); |
Kevin Hilman | ce8ebe0 | 2011-03-30 11:01:10 -0700 | [diff] [blame] | 228 | omap_voltage_register_pmic(voltdm, &omap4_core_pmic); |
Thara Gopinath | 7bc3ed9 | 2010-12-10 23:15:16 +0530 | [diff] [blame] | 229 | |
| 230 | return 0; |
| 231 | } |
| 232 | |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 233 | int __init omap3_twl_init(void) |
| 234 | { |
| 235 | struct voltagedomain *voltdm; |
| 236 | |
| 237 | if (!cpu_is_omap34xx()) |
| 238 | return -ENODEV; |
| 239 | |
Kevin Hilman | 280a727 | 2011-03-23 11:18:08 -0700 | [diff] [blame] | 240 | voltdm = voltdm_lookup("mpu_iva"); |
Kevin Hilman | ce8ebe0 | 2011-03-30 11:01:10 -0700 | [diff] [blame] | 241 | omap_voltage_register_pmic(voltdm, &omap3_mpu_pmic); |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 242 | |
Kevin Hilman | 81a6048 | 2011-03-16 14:25:45 -0700 | [diff] [blame] | 243 | voltdm = voltdm_lookup("core"); |
Kevin Hilman | ce8ebe0 | 2011-03-30 11:01:10 -0700 | [diff] [blame] | 244 | omap_voltage_register_pmic(voltdm, &omap3_core_pmic); |
Thara Gopinath | fbc319f | 2010-12-10 22:51:05 +0530 | [diff] [blame] | 245 | |
| 246 | return 0; |
| 247 | } |