linux/drivers/gpu/drm/tilcdc
Jyri Sarha 642e51677d drm/tilcdc: Clean up LCDC functional clock rate setting code
Clean up LCDC functional clock rate setting code.

The LCDC functional clock is set by two functions: mode_set_nofb() and
cpufreq_transition().

When tilcdc_crtc_mode_set_nofb() is called in atomic commit phase the
drm atomic helpers have taken all the necessary drm locks and turned
off the crtc, while tilcdc_commit() is keeping LCDC powered on. For
mode_set_nofb() just a simple clock setting function without any
locking or power management code is enough. The new tilcdc_crtc_set_clk()
is implemented for that purpose.

cpufreq_transition() on the other hand is called from outside DRM and
it needs to take the necessary locks and turn off the CRTC while
keeping the LCDC powered. The reimplemented tilcdc_crtc_update_clk()
is for that purpose and it uses the new tilcdc_crtc_set_clk() to
actually set the clock.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-09-07 15:54:40 +03:00
..
Kconfig drm/tilcdc: make fbdev support really optional 2016-07-18 09:11:38 +02:00
Makefile drm/tilcdc: Add dummy primary plane implementation 2016-08-08 23:05:00 +03:00
tilcdc_crtc.c drm/tilcdc: Clean up LCDC functional clock rate setting code 2016-09-07 15:54:40 +03:00
tilcdc_drv.c drm/tilcdc: Clean up LCDC functional clock rate setting code 2016-09-07 15:54:40 +03:00
tilcdc_drv.h drm/tilcdc: Clean up LCDC functional clock rate setting code 2016-09-07 15:54:40 +03:00
tilcdc_external.c drm/tilcdc: Choose console BPP that supports RGB 2016-09-01 22:32:23 +03:00
tilcdc_external.h drm/tilcdc: Choose console BPP that supports RGB 2016-09-01 22:32:23 +03:00
tilcdc_panel.c drm/tilcdc: Choose console BPP that supports RGB 2016-09-01 22:32:23 +03:00
tilcdc_panel.h
tilcdc_plane.c drm/tilcdc: Add blue-and-red-crossed devicetree property 2016-09-01 22:32:11 +03:00
tilcdc_regs.h drm/tilcdc: Write DMA base and ceiling address with single instruction 2016-09-01 22:31:59 +03:00
tilcdc_slave_compat.c drivers/of: Specify parent node in of_fdt_unflatten_tree() 2016-05-16 07:22:35 -05:00
tilcdc_slave_compat.dts drm/tilcdc: Add DRM_TILCDC_SLAVE_COMPAT for ti,tilcdc,slave binding support 2015-05-27 13:13:33 +03:00
tilcdc_slave_compat.h drm/tilcdc: Add DRM_TILCDC_SLAVE_COMPAT for ti,tilcdc,slave binding support 2015-05-27 13:13:33 +03:00
tilcdc_tfp410.c drm/tilcdc: Choose console BPP that supports RGB 2016-09-01 22:32:23 +03:00
tilcdc_tfp410.h