drm/omap: clean up the LCD clk mux code
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 17 May 2016 12:46:19 +0000 (15:46 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 19 May 2016 17:19:05 +0000 (20:19 +0300)
commitc63b1ec0904a074ae311103109b3e9946e38f2fa
tree1c18b76d9122e1ed855a79f11c5bf7c35678e43f
parent06ede3dd96e16b41618b656b54467b9eb924870f
drm/omap: clean up the LCD clk mux code

The code to set the clock muxes for DISPC's LCD clock inputs is very
confusing. Especially on DRA7, there's an additional clock muxing that
needs to be done, which at the moment is done in dpi.c using
dss_ctrl_pll_set_control_mux().

Clean this all up by:
- Using dss_clk_source instead of dss_pll_id, as dss_pll_id doesn't
  specify the clock source quite correctly.
- Splitting the dss_select_lcd_clk_source() up into DSS version specific
  helper functions.
- Using dss_ctrl_pll_set_control_mux() from the helper functions, so
  that dpi.c doesn't have to call it.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/dss/dpi.c
drivers/gpu/drm/omapdrm/dss/dss.c
drivers/gpu/drm/omapdrm/dss/dss.h