clk: Ingenic: Adjust cgu code to make it compatible with X1830.
author周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
Thu, 28 May 2020 03:15:44 +0000 (11:15 +0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 28 May 2020 23:13:15 +0000 (16:13 -0700)
commit9d9cc58aff468c1589df09ac12e4e79b1eaba6db
tree80a1b469fa7564e180458cb9c6d732f9753441ae
parent15e3ae36f71eb6564b5caa5cd02e0d0353db5b85
clk: Ingenic: Adjust cgu code to make it compatible with X1830.

The PLL of X1830 Soc from Ingenic has been greatly changed,
the bypass control is placed in another register, so now two
registers may needed to control the PLL. To this end, a new
"bypass_reg" was introduced. In addition, when calculating
rate, the PLL of X1830 introduced an extra 2x multiplier,
so a new "rate_multiplier" was introduced. And adjust the
code in jz47xx-cgu.c and x1000-cgu.c, make it to be
compatible with the new cgu code.

Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lkml.kernel.org/r/20200528031549.13846-3-zhouyanjie@wanyeetech.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ingenic/cgu.c
drivers/clk/ingenic/cgu.h
drivers/clk/ingenic/jz4725b-cgu.c
drivers/clk/ingenic/jz4740-cgu.c
drivers/clk/ingenic/jz4770-cgu.c
drivers/clk/ingenic/jz4780-cgu.c
drivers/clk/ingenic/x1000-cgu.c