1. 15 12月, 2015 35 次提交
  2. 14 12月, 2015 5 次提交
    • A
      drm/msm/dsi: Enable MMSS SPFB port via syscon · 0c7df47f
      Archit Taneja 提交于
      For DSIv2 to work, we need to enable MMSS_AHB_ARB_MASTER_PORT in
      MMSS_SFPB. We enable the required bitfield by retrieving MMSS_SFPB
      regmap pointer via syscon.
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      0c7df47f
    • A
      drm/msm/dsi: Don't use iommu for command TX buffer for DSIv2 · 4ff9d4cb
      Archit Taneja 提交于
      We currently use iommu allocated DMA buffers for sending DSI commands.
      DSIv2 doesn't have a port connected to the MDP iommu. Therefore, it
      can't use iommu allocated buffers to fetch DSI commands.
      
      Use a regular contiguous DMA buffer if we are DSIv2.
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      4ff9d4cb
    • A
      drm/msm/dsi: Add dsi_cfg for APQ8064 · cea65dbd
      Archit Taneja 提交于
      Add a dsi_cfg entry for APQ8064. Since this is the first DSIv2 chip to
      be supported, add a list of bus clocks that are required by the DSIv2
      block.
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      cea65dbd
    • A
      drm/msm/dsi: Set up link clocks for DSIv2 · 4bfa9748
      Archit Taneja 提交于
      DSIv2 (DSI on older A family chips) has slightly different link clock
      requirements.
      
      First, we have an extra clock called src_clk (with a dedicated RCG).
      This is required by the DSI controller to process the pixel data
      coming from MDP. It needs to be set at the rate "pclk * bytes_per_pixel".
      
      We also need to explicitly configure esc_clk. On DSI6G chips, we don't
      need to set a rate to esc_clk because its RCG is always sourced from
      crystal clock (19.2 Mhz in all cases), which is within the escape clock
      frequency range in the mipi DSI spec. For chips with DSIv2, the crystal
      clock rate may not be within the required range (27Mhz on APQ8064).
      Therefore, we derive it from the DSI byte clock. We calculate an esc_clck
      rate that is within the mipi spec and also divisible by the byte clock
      rate.
      
      When setting rate and enabling the link clocks, we make sure that byte_clk
      is configured before esc_clk, and src_clk before pixel_clk. We create two
      different link_enable funcs for DSI6G and DSIv2 since the sequences are
      different.
      
      We also obtain two extra source clocks (dsi_src_clk and esc_src_clk) and
      set their parent to the clocks provided by DSI PLL.
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      4bfa9748
    • A
      drm/msm/dsi: Parse bus clocks from a list · 6e0eb52e
      Archit Taneja 提交于
      DSI bus clocks seem to vary between different DSI host versions, and the
      SOC to which they belong. Even the enable/disable sequence varies.
      
      Provide a list of bus clock names in dsi_cfg. The driver will use this to
      retrieve the clocks, and enable/disable them.
      
      Add bus clock lists for DSI6G, and DSI for MSM8916(this is DSI6G too, but
      there is no MMSS_CC specific clock since there is no MMSS clock controller
      on 8916).
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      6e0eb52e