1. 03 9月, 2018 27 次提交
  2. 28 6月, 2018 2 次提交
    • T
      drm/omap: fix email address · 6505d75c
      Tomi Valkeinen 提交于
      Change tomi.valkeinen@nokia.com to tomi.valkeinen@ti.com.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      6505d75c
    • V
      drm/omap: Implement workaround for DRA7 errata ID:i932 · c618a3a9
      Venkateswara Rao Mandela 提交于
      Description of DRA7 Errata i932:
      
      In rare circumstances DPLL_VIDEO1 and DPLL_VIDEO2 PLL's may not lock on
      the first attempt during DSS initialization. When this occurs, a
      subsequent attempt to relock the PLL will result in PLL successfully
      locking.
      
      This patch does the following as per the errata recommendation:
      
      - retries locking the PLL upto 20 times.
      
      - The time to wait for a PLL lock set to 1000 REFCLK cycles. We use
      usleep_range to wait for 1000 REFCLK cycles in the us range. This tight
      constraint is imposed as a lock later than 1000 REFCLK cycles may have
      high jitter.
      
      - Criteria for PLL lock is extended from check on just the PLL_LOCK bit
      to check on 6 PLL_STATUS bits.
      
      Silicon Versions Impacted:
      DRA71, DRA72, DRA74, DRA76 - All silicon revisions
      AM57x - All silicon revisions
      
      OMAP4/5 are not impacted by this errata
      Signed-off-by: NVenkateswara Rao Mandela <venkat.mandela@ti.com>
      [tomi.valkeinen@ti.com: ported to v4.14]
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      c618a3a9
  3. 25 5月, 2018 1 次提交
  4. 07 5月, 2018 4 次提交
  5. 05 4月, 2018 1 次提交
  6. 14 3月, 2018 2 次提交
    • T
      drm/omap: fix compile error when DPI is disabled · 037f0315
      Tomi Valkeinen 提交于
      When CONFIG_OMAP2_DSS_DPI is disabled, compilation fails due to:
      
      drivers/gpu/drm/omapdrm/dss/dss.h:388:25: error: conflicting types for ‘port’
           struct device_node *port,
                               ^~~~
      
      Fix this by renaming the first parameter correctly.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      037f0315
    • T
      drm/omap: fix compile error when debugfs is disabled · 83df2d4e
      Tomi Valkeinen 提交于
      When compiling with CONFIG_OMAP2_DSS_DEBUGFS disabled, build fails due
      to:
      
      drivers/gpu/drm/omapdrm/dss/dss.c:1474:10: error: ‘dss_debug_dump_clocks’ undeclared (first use in this function); did you mean ‘dispc_dump_clocks’?
                dss_debug_dump_clocks, dss);
                ^~~~~~~~~~~~~~~~~~~~~
                dispc_dump_clocks
      
      Fix this by moving the required functions outside #if
      defined(CONFIG_OMAP2_DSS_DEBUGFS).
      
      In the long term, we perhaps want to try to get all the debugfs support
      left out if debugfs is not enabled.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      83df2d4e
  7. 01 3月, 2018 3 次提交
    • T
      drm/omap: cleanup color space conversion · 4cba7071
      Tomi Valkeinen 提交于
      The setup code for color space conversion is a bit messy. This patch
      cleans it up.
      
      For some reason the TRM uses values in YCrCb order, which is also used
      in the current driver, whereas everywhere else it's YCbCr (which also
      matches YUV order). This patch changes the tables to use the common
      order to avoid confusion.
      
      The tables are split into separate lines, and comments added for
      clarity.
      
      WB color conversion registers are similar but different than non-WB, but
      the same function was used to write both. It worked fine because the
      coef table was adjusted accordingly, but that was rather confusing. This
      patch adds a separate function to write the WB values so that the coef
      table can be written in an understandable way.
      
      Recalculation also showed that 'bcb' value in yuv-to-rgb conversion had
      been rounded wrongly, and it should be 516 instead of 517.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      4cba7071
    • J
      drm/omap: Allow HDMI audio setup even if we do not have video configured · c1899cb3
      Jyri Sarha 提交于
      Allow HDMI audio setup even if we do not have video configured. Audio
      will get configured at the same time with video if the video is
      configured soon enough. If it is not the audio DMA will timeout in
      couple of seconds and audio playback will be aborted.
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      c1899cb3
    • T
      drm/omap: add writeback funcs to dispc_ops · 7c009851
      Tomi Valkeinen 提交于
      Add writeback specific dispc functions to dispc_ops so that omapdrm can
      use them.  Also move 'enum dss_writeback_channel' to the public
      omapdss.h for omapdrm.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      7c009851