1. 07 9月, 2016 1 次提交
    • J
      drm/tilcdc: Clean up LCDC functional clock rate setting code · 642e5167
      Jyri Sarha 提交于
      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: NJyri Sarha <jsarha@ti.com>
      Reviewed-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      642e5167
  2. 02 9月, 2016 3 次提交
  3. 09 8月, 2016 18 次提交
  4. 12 7月, 2016 1 次提交
  5. 02 5月, 2016 1 次提交
  6. 25 2月, 2016 13 次提交
  7. 08 2月, 2016 1 次提交
  8. 27 5月, 2015 2 次提交
    • J
      drm/tilcdc: Add support for external tda998x encoder · 103cd8bc
      Jyri Sarha 提交于
      Add support for an external compontised DRM encoder. The external
      encoder can be connected to tilcdc trough device tree graph binding.
      The binding document for tilcdc has been updated. The current
      implementation supports only tda998x encoder.
      
      To be able to filter out the unsupported video modes the tilcdc driver
      needs to hijack the external connectors helper functions. The tilcdc
      installes new helper functions that are otherwise identical to
      orignals, but the mode_valid() call-back check the mode first localy,
      before calling the original call-back. The tilcdc dirver restores the
      original helper functions before it is unbound from the external
      device.
      
      I got the idea and some lines of code from Jean-Francois Moine's
      "drm/tilcdc: Change the interface with the tda998x driver"-patch.
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      Acked-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      103cd8bc
    • J
      drm/tilcdc: Fix module unloading · de9cb5f2
      Jyri Sarha 提交于
      Force crtc dpms off before destroying the crtc instead of just
      checking the dpms state. This fixes warning message and frozen picture
      after tilcdc module unloading.
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      Acked-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      de9cb5f2