summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Persson <per.xb.persson@stericsson.com>2011-09-02 14:58:15 +0200
committerRobert Marklund <robert.marklund@stericsson.com>2011-10-05 12:57:29 +0200
commit94356e7d1112f3a3f3924ff641a4d7b63969ca44 (patch)
tree6e6b31453db5743b0dbeefd83ad85232b5ef0876
parent27b013ab531f472f89b322d88ef32b161536e81c (diff)
video: mcde: Fix probe of sub display
Allowed max level for v-display regulator is changed. Error handling if failed to set voltage is changed. Sub display now probes without errors. ST-Ericsson ID: 359672 ST-Ericsson Linux next: Not tested, ER 282779 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Id4ff5df39f7b06d964e4dc9534c5f1ea38a28544 Signed-off-by: Per Persson <per.xb.persson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30053 Reviewed-by: Anders BAUER <anders.bauer@stericsson.com> Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: QABUILD
-rw-r--r--arch/arm/mach-ux500/board-mop500-mcde.c4
-rw-r--r--drivers/video/mcde/display-generic_dsi.c13
2 files changed, 11 insertions, 6 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-mcde.c b/arch/arm/mach-ux500/board-mop500-mcde.c
index b4a6147291f..d7104eb5050 100644
--- a/arch/arm/mach-ux500/board-mop500-mcde.c
+++ b/arch/arm/mach-ux500/board-mop500-mcde.c
@@ -132,7 +132,7 @@ static struct mcde_display_generic_platform_data generic_display0_pdata = {
#ifdef CONFIG_REGULATOR
.regulator_id = "v-display",
.min_supply_voltage = 2500000, /* 2.5V */
- .max_supply_voltage = 2700000 /* 2.7V */
+ .max_supply_voltage = 2800000 /* 2.8V */
#endif
};
@@ -194,7 +194,7 @@ static struct mcde_display_generic_platform_data generic_subdisplay_pdata = {
#ifdef CONFIG_REGULATOR
.regulator_id = "v-display",
.min_supply_voltage = 2500000, /* 2.5V */
- .max_supply_voltage = 2700000 /* 2.7V */
+ .max_supply_voltage = 2800000 /* 2.8V */
#endif
};
diff --git a/drivers/video/mcde/display-generic_dsi.c b/drivers/video/mcde/display-generic_dsi.c
index 6af7fb77fcd..5e3b38ccba1 100644
--- a/drivers/video/mcde/display-generic_dsi.c
+++ b/drivers/video/mcde/display-generic_dsi.c
@@ -174,13 +174,18 @@ static int __devinit generic_probe(struct mcde_display_device *dev)
pdata->regulator = NULL;
goto regulator_get_failed;
}
- ret = regulator_set_voltage(pdata->regulator,
+
+ if (regulator_set_voltage(pdata->regulator,
pdata->min_supply_voltage,
- pdata->max_supply_voltage);
- if (ret < 0) {
+ pdata->max_supply_voltage) < 0) {
+ int volt;
+
dev_warn(&dev->dev,
- "%s:Failed to set regulator '%s'\n",
+ "%s:Failed to set voltage '%s'\n",
__func__, pdata->regulator_id);
+ volt = regulator_get_voltage(pdata->regulator);
+ dev_warn(&dev->dev,
+ "Voltage:%d\n", volt);
}
/*