summaryrefslogtreecommitdiff
path: root/include/video/mcde.h
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@stericsson.com>2011-10-11 16:21:20 +0200
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:03:50 +0200
commita3874fac24c5e99f754ee813f106261329d45430 (patch)
tree0de0c8180c968c370a89ed7f7f7fb89f9d3cae92 /include/video/mcde.h
parent86ac6571fca2ec09235e2101fd5b765f4314184a (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 Conflicts: arch/arm/mach-ux500/devices-db5500.c arch/arm/mach-ux500/devices-db8500.c
Diffstat (limited to 'include/video/mcde.h')
-rw-r--r--include/video/mcde.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/video/mcde.h b/include/video/mcde.h
index 1777e272329..31c6443fcd2 100644
--- a/include/video/mcde.h
+++ b/include/video/mcde.h
@@ -170,6 +170,9 @@ struct mcde_port {
u8 num_data_lanes;
u8 ui;
bool clk_cont;
+ struct clk *clk_dsi;
+ struct clk *clk_dsi_lp;
+ struct regulator *reg_vana;
/* DSI data lanes are swapped if true */
bool data_lanes_swap;
@@ -179,6 +182,7 @@ struct mcde_port {
bool tv_mode;
u16 clock_div; /* use 0 or 1 for no clock divider */
u32 polarity; /* see DPI_ACT_LOW_* definitions */
+ struct clk *clk_dpi;
} dpi;
} phy;
};
@@ -424,8 +428,9 @@ struct mcde_platform_data {
const char *clock_dpi_id;
const char *clock_mcde_id;
- int (*platform_enable)(void);
- int (*platform_disable)(void);
+ int (*platform_set_clocks)(void);
+ int (*platform_enable_dsipll)(void);
+ int (*platform_disable_dsipll)(void);
};
int mcde_init(void);