linux/drivers/gpu/drm/msm/dsi
Archit Taneja 4bfa97489a drm/msm/dsi: Set up link clocks for DSIv2
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: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
2015-12-14 10:40:35 -05:00
..
phy drm/msm/dsi: Add support for 28nm PHY on 8960 2015-12-14 10:40:06 -05:00
pll drm/msm/dsi: Add DSI PLL for 28nm 8960 PHY 2015-12-14 10:40:12 -05:00
dsi_cfg.c drm/msm/dsi: Parse bus clocks from a list 2015-12-14 10:40:30 -05:00
dsi_cfg.h drm/msm/dsi: Parse bus clocks from a list 2015-12-14 10:40:30 -05:00
dsi_host.c drm/msm/dsi: Set up link clocks for DSIv2 2015-12-14 10:40:35 -05:00
dsi_manager.c drm/msm/dsi: Modify dsi manager bridge ops to work with external bridges 2015-08-15 18:27:26 -04:00
dsi.c drm/msm/dsi: Allow dsi to connect to an external bridge 2015-08-15 18:27:25 -04:00
dsi.h drm/msm/dsi: Parse bus clocks from a list 2015-12-14 10:40:30 -05:00
dsi.xml.h drm/msm: update generated headers 2015-10-22 15:39:44 -04:00
mmss_cc.xml.h drm/msm: update generated headers 2015-10-22 15:39:44 -04:00
sfpb.xml.h drm/msm: update generated headers 2015-10-22 15:39:44 -04:00