Commit cc5c1850 authored by Tomi Valkeinen's avatar Tomi Valkeinen

OMAP: DSS2: DSI: rename complexio related functions

Rename ComplexIO from dsi_complexio_xxx to dsi_cio_xxx for brevity.
Also, add cio prefix for couple of functions that didn't have it, but
are cio related.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 2a89dc15
...@@ -1738,13 +1738,13 @@ void dsi_dump_regs(struct seq_file *s) ...@@ -1738,13 +1738,13 @@ void dsi_dump_regs(struct seq_file *s)
#undef DUMPREG #undef DUMPREG
} }
enum dsi_complexio_power_state { enum dsi_cio_power_state {
DSI_COMPLEXIO_POWER_OFF = 0x0, DSI_COMPLEXIO_POWER_OFF = 0x0,
DSI_COMPLEXIO_POWER_ON = 0x1, DSI_COMPLEXIO_POWER_ON = 0x1,
DSI_COMPLEXIO_POWER_ULPS = 0x2, DSI_COMPLEXIO_POWER_ULPS = 0x2,
}; };
static int dsi_complexio_power(enum dsi_complexio_power_state state) static int dsi_cio_power(enum dsi_cio_power_state state)
{ {
int t = 0; int t = 0;
...@@ -1764,7 +1764,7 @@ static int dsi_complexio_power(enum dsi_complexio_power_state state) ...@@ -1764,7 +1764,7 @@ static int dsi_complexio_power(enum dsi_complexio_power_state state)
return 0; return 0;
} }
static void dsi_complexio_config(struct omap_dss_device *dssdev) static void dsi_set_lane_config(struct omap_dss_device *dssdev)
{ {
u32 r; u32 r;
...@@ -1816,7 +1816,7 @@ static inline unsigned ddr2ns(unsigned ddr) ...@@ -1816,7 +1816,7 @@ static inline unsigned ddr2ns(unsigned ddr)
return ddr * 1000 * 1000 / (ddr_clk / 1000); return ddr * 1000 * 1000 / (ddr_clk / 1000);
} }
static void dsi_complexio_timings(void) static void dsi_cio_timings(void)
{ {
u32 r; u32 r;
u32 ths_prepare, ths_prepare_ths_zero, ths_trail, ths_exit; u32 ths_prepare, ths_prepare_ths_zero, ths_trail, ths_exit;
...@@ -1886,7 +1886,7 @@ static void dsi_complexio_timings(void) ...@@ -1886,7 +1886,7 @@ static void dsi_complexio_timings(void)
dsi_write_reg(DSI_DSIPHY_CFG2, r); dsi_write_reg(DSI_DSIPHY_CFG2, r);
} }
static void dsi_enable_lane_override(struct omap_dss_device *dssdev, static void dsi_cio_enable_lane_override(struct omap_dss_device *dssdev,
enum dsi_lane lanes) enum dsi_lane lanes)
{ {
int clk_lane = dssdev->phy.dsi.clk_lane; int clk_lane = dssdev->phy.dsi.clk_lane;
...@@ -1927,7 +1927,7 @@ static void dsi_enable_lane_override(struct omap_dss_device *dssdev, ...@@ -1927,7 +1927,7 @@ static void dsi_enable_lane_override(struct omap_dss_device *dssdev,
REG_FLD_MOD(DSI_DSIPHY_CFG10, 1, 27, 27); /* ENLPTXSCPDAT */ REG_FLD_MOD(DSI_DSIPHY_CFG10, 1, 27, 27); /* ENLPTXSCPDAT */
} }
static void dsi_disable_lane_override(void) static void dsi_cio_disable_lane_override(void)
{ {
/* Disable lane override */ /* Disable lane override */
REG_FLD_MOD(DSI_DSIPHY_CFG10, 0, 27, 27); /* ENLPTXSCPDAT */ REG_FLD_MOD(DSI_DSIPHY_CFG10, 0, 27, 27); /* ENLPTXSCPDAT */
...@@ -1935,12 +1935,12 @@ static void dsi_disable_lane_override(void) ...@@ -1935,12 +1935,12 @@ static void dsi_disable_lane_override(void)
REG_FLD_MOD(DSI_DSIPHY_CFG10, 0, 22, 17); /* REGLPTXSCPDAT4TO0DXDY */ REG_FLD_MOD(DSI_DSIPHY_CFG10, 0, 22, 17); /* REGLPTXSCPDAT4TO0DXDY */
} }
static int dsi_complexio_init(struct omap_dss_device *dssdev) static int dsi_cio_init(struct omap_dss_device *dssdev)
{ {
int r = 0; int r = 0;
u32 l; u32 l;
DSSDBG("dsi_complexio_init\n"); DSSDBGF();
if (dsi.ulps_enabled) if (dsi.ulps_enabled)
DSSDBG("manual ulps exit\n"); DSSDBG("manual ulps exit\n");
...@@ -1956,7 +1956,7 @@ static int dsi_complexio_init(struct omap_dss_device *dssdev) ...@@ -1956,7 +1956,7 @@ static int dsi_complexio_init(struct omap_dss_device *dssdev)
goto err; goto err;
} }
dsi_complexio_config(dssdev); dsi_set_lane_config(dssdev);
dsi_if_enable(true); dsi_if_enable(true);
dsi_if_enable(false); dsi_if_enable(false);
...@@ -1979,11 +1979,11 @@ static int dsi_complexio_init(struct omap_dss_device *dssdev) ...@@ -1979,11 +1979,11 @@ static int dsi_complexio_init(struct omap_dss_device *dssdev)
* manually. * manually.
*/ */
dsi_enable_lane_override(dssdev, dsi_cio_enable_lane_override(dssdev,
DSI_CLK_P | DSI_DATA1_P | DSI_DATA2_P); DSI_CLK_P | DSI_DATA1_P | DSI_DATA2_P);
} }
r = dsi_complexio_power(DSI_COMPLEXIO_POWER_ON); r = dsi_cio_power(DSI_COMPLEXIO_POWER_ON);
if (r) if (r)
goto err; goto err;
...@@ -1995,7 +1995,7 @@ static int dsi_complexio_init(struct omap_dss_device *dssdev) ...@@ -1995,7 +1995,7 @@ static int dsi_complexio_init(struct omap_dss_device *dssdev)
/* Disable the override. The lanes should be set to Mark-11 /* Disable the override. The lanes should be set to Mark-11
* state by the HW */ * state by the HW */
dsi_disable_lane_override(); dsi_cio_disable_lane_override();
} }
/* FORCE_TX_STOP_MODE_IO */ /* FORCE_TX_STOP_MODE_IO */
...@@ -2007,7 +2007,7 @@ static int dsi_complexio_init(struct omap_dss_device *dssdev) ...@@ -2007,7 +2007,7 @@ static int dsi_complexio_init(struct omap_dss_device *dssdev)
goto err; goto err;
} }
dsi_complexio_timings(); dsi_cio_timings();
dsi.ulps_enabled = false; dsi.ulps_enabled = false;
...@@ -2016,9 +2016,9 @@ static int dsi_complexio_init(struct omap_dss_device *dssdev) ...@@ -2016,9 +2016,9 @@ static int dsi_complexio_init(struct omap_dss_device *dssdev)
return r; return r;
} }
static void dsi_complexio_uninit(void) static void dsi_cio_uninit(void)
{ {
dsi_complexio_power(DSI_COMPLEXIO_POWER_OFF); dsi_cio_power(DSI_COMPLEXIO_POWER_OFF);
} }
static int _dsi_wait_reset(void) static int _dsi_wait_reset(void)
...@@ -2892,7 +2892,7 @@ static int dsi_enter_ulps(void) ...@@ -2892,7 +2892,7 @@ static int dsi_enter_ulps(void)
dsi_unregister_isr_cio(dsi_completion_handler, &completion, dsi_unregister_isr_cio(dsi_completion_handler, &completion,
DSI_CIO_IRQ_ULPSACTIVENOT_ALL0); DSI_CIO_IRQ_ULPSACTIVENOT_ALL0);
dsi_complexio_power(DSI_COMPLEXIO_POWER_ULPS); dsi_cio_power(DSI_COMPLEXIO_POWER_ULPS);
dsi_if_enable(false); dsi_if_enable(false);
...@@ -3622,7 +3622,7 @@ static int dsi_display_init_dsi(struct omap_dss_device *dssdev) ...@@ -3622,7 +3622,7 @@ static int dsi_display_init_dsi(struct omap_dss_device *dssdev)
if (r) if (r)
goto err2; goto err2;
r = dsi_complexio_init(dssdev); r = dsi_cio_init(dssdev);
if (r) if (r)
goto err2; goto err2;
...@@ -3648,7 +3648,7 @@ static int dsi_display_init_dsi(struct omap_dss_device *dssdev) ...@@ -3648,7 +3648,7 @@ static int dsi_display_init_dsi(struct omap_dss_device *dssdev)
return 0; return 0;
err3: err3:
dsi_complexio_uninit(); dsi_cio_uninit();
err2: err2:
dss_select_dispc_clk_source(OMAP_DSS_CLK_SRC_FCK); dss_select_dispc_clk_source(OMAP_DSS_CLK_SRC_FCK);
dss_select_dsi_clk_source(OMAP_DSS_CLK_SRC_FCK); dss_select_dsi_clk_source(OMAP_DSS_CLK_SRC_FCK);
...@@ -3673,7 +3673,7 @@ static void dsi_display_uninit_dsi(struct omap_dss_device *dssdev, ...@@ -3673,7 +3673,7 @@ static void dsi_display_uninit_dsi(struct omap_dss_device *dssdev,
dss_select_dispc_clk_source(OMAP_DSS_CLK_SRC_FCK); dss_select_dispc_clk_source(OMAP_DSS_CLK_SRC_FCK);
dss_select_dsi_clk_source(OMAP_DSS_CLK_SRC_FCK); dss_select_dsi_clk_source(OMAP_DSS_CLK_SRC_FCK);
dsi_complexio_uninit(); dsi_cio_uninit();
dsi_pll_uninit(disconnect_lanes); dsi_pll_uninit(disconnect_lanes);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment