disp: msm: dsi: add support for dsi dynamic clock switch
This change adds support for dynamic switching of dsi clocks to avoid RF interference issues. Also with dynamic dsi clock switch feature coming into picture, now populate the supported refresh rate as list instead of providing a range. Modify the logic to enumerate all the modes in dsi driver, taking dynamic bit clocks, resolutions and refresh rates into account. Change-Id: I5b6e62bc935cf2234bdd96fcb3c7537b4e735fff Signed-off-by: Sandeep Panda <spanda@codeaurora.org> Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org> Signed-off-by: Yujun Zhang <yujunzhang@codeaurora.org>
This commit is contained in:
@@ -44,4 +44,14 @@
|
||||
#define DSI_R64(dsi_hw, off) readq_relaxed((dsi_hw)->base + (off))
|
||||
#define DSI_W64(dsi_hw, off, val) writeq_relaxed((val), (dsi_hw)->base + (off))
|
||||
|
||||
#define PLL_CALC_DATA(addr0, addr1, data0, data1) \
|
||||
(((data1) << 24) | ((((addr1)/4) & 0xFF) << 16) | \
|
||||
((data0) << 8) | (((addr0)/4) & 0xFF))
|
||||
|
||||
#define DSI_DYN_REF_REG_W(base, offset, addr0, addr1, data0, data1) \
|
||||
writel_relaxed(PLL_CALC_DATA(addr0, addr1, data0, data1), \
|
||||
(base) + (offset))
|
||||
|
||||
#define DSI_GEN_R32(base, offset) readl_relaxed(base + (offset))
|
||||
#define DSI_GEN_W32(base, offset, val) writel_relaxed((val), base + (offset))
|
||||
#endif /* _DSI_HW_H_ */
|
||||
|
Reference in New Issue
Block a user