linux_dsm_epyc7002/drivers/gpu/drm/tilcdc
David Lechner a88ad3ded1 drm/tilcdc: Fix setting clock divider for omap-l138
This fixes setting the clock divider on the TI OMAP-L138 LCDK board.

The clock drivers for OMAP-L138 are being covernted to the common clock
framework. When this happens, clk_set_rate() will no longer return an
error. However, on this SoC, the clock rate cannot actually be changed
because the clock has to maintain a fixed ratio to the ARM clock. So
after attempting to set the clock rate, we need to check to see if the
new rate is actually close enough. If not, then follow the previous
error path to adjust the divider in LCDC IP block to compensate for not
being able to change the parent clock rate.

Tested working on a TI OMAP-L138 LCDK board.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
2018-05-09 19:55:18 +03:00
..
Kconfig drm/tilcdc: Add support for drm panels 2018-02-28 11:48:16 +02:00
Makefile fixes/cleanups for rc1, non-desktop flags for VR 2017-11-23 21:04:56 -10:00
tilcdc_crtc.c drm/tilcdc: Fix setting clock divider for omap-l138 2018-05-09 19:55:18 +03:00
tilcdc_drv.c drm/tilcdc: Delete an error message for a failed memory allocation in seven functions 2018-02-28 11:25:35 +02:00
tilcdc_drv.h drm/tilcdc: Use drm_fb_cma_fbdev_init/fini() 2017-12-08 14:47:42 +01:00
tilcdc_external.c drm/tilcdc: Add support for drm panels 2018-02-28 11:48:16 +02:00
tilcdc_external.h drm/tilcdc: Add drm bridge support for attaching drm bridge drivers 2016-11-30 14:17:52 +02:00
tilcdc_panel.c drm/tilcdc: tilcdc_panel: Rename device from "panel" to "tilcdc-panel" 2018-02-28 11:48:25 +02:00
tilcdc_panel.h drm/tilcdc: add support for LCD panels (v5) 2013-02-19 17:57:45 -05:00
tilcdc_plane.c drm: Nuke drm_atomic_helper_plane_set_property 2017-08-08 14:45:16 +02:00
tilcdc_regs.h drm/tilcdc: ensure nonatomic iowrite64 is not used 2017-12-18 13:24:29 +02:00
tilcdc_tfp410.c drm/tilcdc: Delete an error message for a failed memory allocation in seven functions 2018-02-28 11:25:35 +02:00
tilcdc_tfp410.h drm/tilcdc: add TI LCD Controller DRM driver (v4) 2013-02-19 17:57:44 -05:00