drm/msm/mdp4: Clean up some MDP4 clocks
authorArchit Taneja <architt@codeaurora.org>
Fri, 10 Jun 2016 06:25:43 +0000 (11:55 +0530)
committerRob Clark <robdclark@gmail.com>
Sat, 16 Jul 2016 14:08:45 +0000 (10:08 -0400)
commitdb9e44fb057311ca3f41ba63eb5f3b5c5ab7632d
tree71d97a77267705fee42518ae9cf5e7b1654a1262
parent0e0d9dfeea38b20f54d5e056ea8b4d7e1adb2745
drm/msm/mdp4: Clean up some MDP4 clocks

Fix some issues with MDP4 clocks:

- mdp4_dtv_encoder tries to get "src_clk", which is a RCG(TV_SRC) in
  MSM8960 and APQ8064. This isn't something the driver should access or
  configure. Instead of this, configure the "mdp_clk" (MDP_TV_CLK), a
  branch clock in MMCC that has the TV_SRC as its parent. Setting
  rate/enabling the "mdp_clk" will eventually configure "src_clk", which
  is what we want.
- Rename "mdp_clk" to "tv_clk" because that's slightly less confusing.
- Rename "mdp_axi_clk" to "bus_clk" because that's what we do elsewhere
  too.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp4/mdp4_dtv_encoder.c
drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c