aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Abraham <thomas.abraham@linaro.org>2011-12-05 14:22:28 +0530
committerTushar Behera <tushar.behera@linaro.org>2011-12-19 16:42:22 +0530
commit0487a75582a8ed410955e67fe6f2d4d95baf754b (patch)
tree8162e4c12d2e522c6d2f0f946b5c287cea483ba4
parent4625b8f46391923b4f5a8a9e1fbef0fa81d90698 (diff)
arm: exynos: allow platform-lcd driver to control lcd regulator source on origensamsung-lt-v3.2-rc6
The buck7 regulator of max8997 pmic which provides the power source to lcd panel and the lvds transmitter is allowed to be controlled by the platform-lcd driver. It is not required to apply the voltage source by default. Also, the voltage range for buck7 regulator is modified as the per the values in the datasheet. Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
-rw-r--r--arch/arm/mach-exynos/mach-origen.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c
index 908de4485ea..5f033714fd8 100644
--- a/arch/arm/mach-exynos/mach-origen.c
+++ b/arch/arm/mach-exynos/mach-origen.c
@@ -130,7 +130,7 @@ static struct regulator_consumer_supply __initdata buck3_consumer[] = {
REGULATOR_SUPPLY("vdd_g3d", "mali_drm"), /* G3D */
};
static struct regulator_consumer_supply __initdata buck7_consumer[] = {
- REGULATOR_SUPPLY("vcc", "platform-lcd"), /* LCD */
+ REGULATOR_SUPPLY("vcc_lcd", "platform-lcd.0"), /* LCD */
};
static struct regulator_init_data __initdata max8997_ldo1_data = {
@@ -385,11 +385,11 @@ static struct regulator_init_data __initdata max8997_buck5_data = {
static struct regulator_init_data __initdata max8997_buck7_data = {
.constraints = {
.name = "VDD_LCD_3.3V",
- .min_uV = 3300000,
- .max_uV = 3300000,
+ .min_uV = 750000,
+ .max_uV = 3900000,
.boot_on = 1,
- .apply_uV = 1,
- .valid_ops_mask = REGULATOR_CHANGE_STATUS,
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS |
+ REGULATOR_CHANGE_VOLTAGE,
.state_mem = {
.disabled = 1
},
@@ -690,6 +690,8 @@ static void lcd_hv070wsa_set_power(struct plat_lcd_data *pd, unsigned int power)
static struct plat_lcd_data origen_lcd_hv070wsa_data = {
.set_power = lcd_hv070wsa_set_power,
+ .min_uV = 3300000,
+ .max_uV = 3300000,
};
static struct platform_device origen_lcd_hv070wsa = {