Re: [PATCH 3/3] clk: hi3660: Set PPLL2 to 2880M

2017-05-15 Thread kbuild test robot
Hi Zhong,

[auto build test WARNING on clk/clk-next]
[also build test WARNING on v4.12-rc1 next-20170515]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Guodong-Xu/clk-hi3660-fix-wrong-parent-name-of-clk_mux_sysbus/20170515-135929
base:   https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

>> drivers/clk/hisilicon/clk-hi3660.c:23:2: warning: this decimal constant is 
>> unsigned only in ISO C90
 { HI3660_CLK_PPLL2, "clk_ppll2", NULL, 0, 288000, },
 ^

vim +23 drivers/clk/hisilicon/clk-hi3660.c

 7   * the Free Software Foundation; either version 2 of the License, or
 8   * (at your option) any later version.
 9   */
10  
11  #include 
12  #include 
13  #include 
14  #include 
15  #include "clk.h"
16  
17  static const struct hisi_fixed_rate_clock hi3660_fixed_rate_clks[] = {
18  { HI3660_CLKIN_SYS, "clkin_sys", NULL, 0, 1920, },
19  { HI3660_CLKIN_REF, "clkin_ref", NULL, 0, 32764, },
20  { HI3660_CLK_FLL_SRC, "clk_fll_src", NULL, 0, 12800, },
21  { HI3660_CLK_PPLL0, "clk_ppll0", NULL, 0, 16, },
22  { HI3660_CLK_PPLL1, "clk_ppll1", NULL, 0, 186600, },
  > 23  { HI3660_CLK_PPLL2, "clk_ppll2", NULL, 0, 288000, },
24  { HI3660_CLK_PPLL3, "clk_ppll3", NULL, 0, 129000, },
25  { HI3660_CLK_SCPLL, "clk_scpll", NULL, 0, 24576, },
26  { HI3660_PCLK, "pclk", NULL, 0, 2000, },
27  { HI3660_CLK_UART0_DBG, "clk_uart0_dbg", NULL, 0, 1920, },
28  { HI3660_CLK_UART6, "clk_uart6", NULL, 0, 1920, },
29  { HI3660_OSC32K, "osc32k", NULL, 0, 32764, },
30  { HI3660_OSC19M, "osc19m", NULL, 0, 1920, },
31  { HI3660_CLK_480M, "clk_480m", NULL, 0, 48000, },

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[PATCH 3/3] clk: hi3660: Set PPLL2 to 2880M

2017-05-14 Thread Guodong Xu
From: Zhong Kaihua 

Set PPLL2 to 2880M. With this patch, we saw better compatibility
on various 1080p HDMI monitors.

Signed-off-by: Zhong Kaihua 
Signed-off-by: Zheng Shaobo 
---
 drivers/clk/hisilicon/clk-hi3660.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/hisilicon/clk-hi3660.c 
b/drivers/clk/hisilicon/clk-hi3660.c
index ffc765a..fd5ce7f 100644
--- a/drivers/clk/hisilicon/clk-hi3660.c
+++ b/drivers/clk/hisilicon/clk-hi3660.c
@@ -20,7 +20,7 @@ static const struct hisi_fixed_rate_clock 
hi3660_fixed_rate_clks[] = {
{ HI3660_CLK_FLL_SRC, "clk_fll_src", NULL, 0, 12800, },
{ HI3660_CLK_PPLL0, "clk_ppll0", NULL, 0, 16, },
{ HI3660_CLK_PPLL1, "clk_ppll1", NULL, 0, 186600, },
-   { HI3660_CLK_PPLL2, "clk_ppll2", NULL, 0, 96000, },
+   { HI3660_CLK_PPLL2, "clk_ppll2", NULL, 0, 288000, },
{ HI3660_CLK_PPLL3, "clk_ppll3", NULL, 0, 129000, },
{ HI3660_CLK_SCPLL, "clk_scpll", NULL, 0, 24576, },
{ HI3660_PCLK, "pclk", NULL, 0, 2000, },
@@ -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, },
-- 
2.10.2