aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/devices-db8500.c
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@linaro.org>2011-05-05 15:04:02 +0200
committerHenrik Aberg <henrik.aberg@stericsson.com>2011-05-18 09:39:50 +0200
commitf212a731032286432473b307364327c2b381269b (patch)
tree7cc8a71eb158b51a3ae5f8ceb642a3a4e1df351f /arch/arm/mach-ux500/devices-db8500.c
parent81f66571e3a7a29817568c229d9d7ae5dfa89330 (diff)
video: mcde: Request dsi/dpi clocks only if needed
DSI clocks (HDMICLK, TVCLK) and regulator VANA should only be requested if a channel uses DSI as formatter. DPI Clock (LCDCLK) is only requested if DPI is used as formatter. ST-Ericsson Linux next: - ST-Ericsson ID: AP 329602 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I2e9a63ef58d3f11f7e2c47dbd86bf1fbbec3b71e Signed-off-by: Jimmy Rubin <jimmy.rubin@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18030 Reviewed-by: QATOOLS Reviewed-by: Per PERSSON <per.xb.persson@stericsson.com> Conflicts: arch/arm/mach-ux500/devices-db5500.c arch/arm/mach-ux500/devices-db8500.c arch/arm/mach-ux500/include/mach/prcmu-fw-api.h arch/arm/mach-ux500/prcmu-db5500.c
Diffstat (limited to 'arch/arm/mach-ux500/devices-db8500.c')
-rw-r--r--arch/arm/mach-ux500/devices-db8500.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/arm/mach-ux500/devices-db8500.c b/arch/arm/mach-ux500/devices-db8500.c
index 316c90a87a5..5684e4c3fd1 100644
--- a/arch/arm/mach-ux500/devices-db8500.c
+++ b/arch/arm/mach-ux500/devices-db8500.c
@@ -341,16 +341,21 @@ static struct resource mcde_resources[] = {
},
};
-static int mcde_platform_enable(void)
+static int mcde_platform_enable_dsipll(void)
{
return prcmu_enable_dsipll();
}
-static int mcde_platform_disable(void)
+static int mcde_platform_disable_dsipll(void)
{
return prcmu_disable_dsipll();
}
+static int mcde_platform_set_display_clocks(void)
+{
+ return prcmu_set_display_clocks();
+}
+
static struct mcde_platform_data mcde_pdata = {
.num_dsilinks = 3,
/*
@@ -373,8 +378,9 @@ static struct mcde_platform_data mcde_pdata = {
.clock_dsi_lp_id = "tv",
.clock_dpi_id = "lcd",
.clock_mcde_id = "mcde",
- .platform_enable = mcde_platform_enable,
- .platform_disable = mcde_platform_disable,
+ .platform_set_clocks = mcde_platform_set_display_clocks,
+ .platform_enable_dsipll = mcde_platform_enable_dsipll,
+ .platform_disable_dsipll = mcde_platform_disable_dsipll,
};
struct platform_device u8500_mcde_device = {