clk: hi3660: Set PPLL2 to 2880M
authorZhong Kaihua <zhongkaihua@huawei.com>
Fri, 26 May 2017 07:38:21 +0000 (15:38 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 20 Jun 2017 02:02:41 +0000 (19:02 -0700)
Set PPLL2 to 2880M. With this patch, we saw better compatibility
on various 1080p HDMI monitors.

Signed-off-by: Zhong Kaihua <zhongkaihua@huawei.com>
Signed-off-by: Zheng Shaobo <zhengshaobo1@huawei.com>
Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org>
[sboyd@codeaurora.org: Add UL to long number to silence C90
warning]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/hisilicon/clk-hi3660.c

index 728df16f9ecf0293600b7df3a97fc0d0aa4d9117..a18258eb89cb1b1767a5335b7bf8938e66fafab2 100644 (file)
@@ -20,7 +20,7 @@ static const struct hisi_fixed_rate_clock hi3660_fixed_rate_clks[] = {
        { HI3660_CLK_FLL_SRC, "clk_fll_src", NULL, 0, 128000000, },
        { HI3660_CLK_PPLL0, "clk_ppll0", NULL, 0, 1600000000, },
        { HI3660_CLK_PPLL1, "clk_ppll1", NULL, 0, 1866000000, },
-       { HI3660_CLK_PPLL2, "clk_ppll2", NULL, 0, 960000000, },
+       { HI3660_CLK_PPLL2, "clk_ppll2", NULL, 0, 2880000000UL, },
        { HI3660_CLK_PPLL3, "clk_ppll3", NULL, 0, 1290000000, },
        { HI3660_CLK_SCPLL, "clk_scpll", NULL, 0, 245760000, },
        { HI3660_PCLK, "pclk", NULL, 0, 20000000, },
@@ -42,7 +42,7 @@ static const struct hisi_fixed_factor_clock hi3660_crg_fixed_factor_clks[] = {
        { HI3660_CLK_GATE_I2C6, "clk_gate_i2c6", "clk_i2c6_iomcu", 1, 4, 0, },
        { HI3660_CLK_DIV_SYSBUS, "clk_div_sysbus", "clk_mux_sysbus", 1, 7, 0, },
        { HI3660_CLK_DIV_320M, "clk_div_320m", "clk_320m_pll_gt", 1, 5, 0, },
-       { HI3660_CLK_DIV_A53, "clk_div_a53hpm", "clk_a53hpm_andgt", 1, 2, 0, },
+       { HI3660_CLK_DIV_A53, "clk_div_a53hpm", "clk_a53hpm_andgt", 1, 6, 0, },
        { HI3660_CLK_GATE_SPI0, "clk_gate_spi0", "clk_ppll0", 1, 8, 0, },
        { HI3660_CLK_GATE_SPI2, "clk_gate_spi2", "clk_ppll0", 1, 8, 0, },
        { HI3660_PCIEPHY_REF, "clk_pciephy_ref", "clk_div_pciephy", 1, 1, 0, },