Reduce memory footprint of PLL rate tables, a fix for the newly
added rk3568 clk driver and an exported clock for the newly added video decoder. -----BEGIN PGP SIGNATURE----- iQFEBAABCAAuFiEE7v+35S2Q1vLNA3Lx86Z5yZzRHYEFAmDO+TsQHGhlaWtvQHNu dGVjaC5kZQAKCRDzpnnJnNEdgR5KCACYRf5vlVJya2DnihPn/szjRqrw/u57im6B XnAR2uBtFWjvnceuGjJXK2IGbpMiLvqzjgOHCzdHBHRHza3W2P0uE8RZKER5j2Dy ZEriTZJltCAwi8nqE64SbPcuqAtwM9WUVP+kcp0HO2i8uy/YYmBNaK4pi/CMSHa4 hKVLT6SnLOWf4i0Q6Pu4aSKiv/8yqqPLoLglDmyDIEzFHmYCjR9KKWWWhM9+tROy toFTiX1p+l2q21dG3GPS2dJdgQYBnY6/m2dev6qKkpuhaJ93t37qbDlpfXsoRWne D1k9ss18JMOBmlj9pyhB8upDhweKPMn187A4bG1X61GoY+XKJIwJ =DWQl -----END PGP SIGNATURE----- Merge tag 'v5.14-rockchip-clk1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into clk-rockchip Pull Rockchip clk driver updates from Heiko Stuebner: - Reduce memory footprint of PLL rate tables - A fix for the newly added rk3568 clk driver - exported clock for the newly added video decoder * tag 'v5.14-rockchip-clk1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: clk: rockchip: export ACLK_VCODEC for RK3036 clk: rockchip: fix rk3568 cpll clk gate bits clk: rockchip: Optimize PLL table memory usage
This commit is contained in:
commit
14de023dc0
@ -259,7 +259,7 @@ static struct rockchip_clk_branch rk3036_clk_branches[] __initdata = {
|
||||
RK2928_CLKGATE_CON(1), 13, GFLAGS,
|
||||
&rk3036_uart2_fracmux),
|
||||
|
||||
COMPOSITE(0, "aclk_vcodec", mux_pll_src_3plls_p, 0,
|
||||
COMPOSITE(ACLK_VCODEC, "aclk_vcodec", mux_pll_src_3plls_p, 0,
|
||||
RK2928_CLKSEL_CON(32), 14, 2, MFLAGS, 8, 5, DFLAGS,
|
||||
RK2928_CLKGATE_CON(3), 11, GFLAGS),
|
||||
FACTOR_GATE(HCLK_VCODEC, "hclk_vcodec", "aclk_vcodec", 0, 1, 4,
|
||||
|
@ -454,17 +454,17 @@ static struct rockchip_clk_branch rk3568_clk_branches[] __initdata = {
|
||||
COMPOSITE_NOMUX(CPLL_125M, "cpll_125m", "cpll", CLK_IGNORE_UNUSED,
|
||||
RK3568_CLKSEL_CON(80), 0, 5, DFLAGS,
|
||||
RK3568_CLKGATE_CON(35), 10, GFLAGS),
|
||||
COMPOSITE_NOMUX(CPLL_62P5M, "cpll_62p5", "cpll", CLK_IGNORE_UNUSED,
|
||||
RK3568_CLKSEL_CON(80), 8, 5, DFLAGS,
|
||||
RK3568_CLKGATE_CON(35), 11, GFLAGS),
|
||||
COMPOSITE_NOMUX(CPLL_50M, "cpll_50m", "cpll", CLK_IGNORE_UNUSED,
|
||||
RK3568_CLKSEL_CON(81), 0, 5, DFLAGS,
|
||||
RK3568_CLKGATE_CON(35), 12, GFLAGS),
|
||||
COMPOSITE_NOMUX(CPLL_25M, "cpll_25m", "cpll", CLK_IGNORE_UNUSED,
|
||||
RK3568_CLKSEL_CON(81), 8, 6, DFLAGS,
|
||||
RK3568_CLKGATE_CON(35), 13, GFLAGS),
|
||||
COMPOSITE_NOMUX(CPLL_100M, "cpll_100m", "cpll", CLK_IGNORE_UNUSED,
|
||||
RK3568_CLKSEL_CON(82), 0, 5, DFLAGS,
|
||||
RK3568_CLKGATE_CON(35), 11, GFLAGS),
|
||||
COMPOSITE_NOMUX(CPLL_62P5M, "cpll_62p5", "cpll", CLK_IGNORE_UNUSED,
|
||||
RK3568_CLKSEL_CON(80), 8, 5, DFLAGS,
|
||||
RK3568_CLKGATE_CON(35), 12, GFLAGS),
|
||||
COMPOSITE_NOMUX(CPLL_50M, "cpll_50m", "cpll", CLK_IGNORE_UNUSED,
|
||||
RK3568_CLKSEL_CON(81), 0, 5, DFLAGS,
|
||||
RK3568_CLKGATE_CON(35), 13, GFLAGS),
|
||||
COMPOSITE_NOMUX(CPLL_25M, "cpll_25m", "cpll", CLK_IGNORE_UNUSED,
|
||||
RK3568_CLKSEL_CON(81), 8, 6, DFLAGS,
|
||||
RK3568_CLKGATE_CON(35), 14, GFLAGS),
|
||||
COMPOSITE_NOMUX(0, "clk_osc0_div_750k", "xin24m", CLK_IGNORE_UNUSED,
|
||||
RK3568_CLKSEL_CON(82), 8, 6, DFLAGS,
|
||||
|
@ -271,17 +271,24 @@ struct rockchip_clk_provider {
|
||||
|
||||
struct rockchip_pll_rate_table {
|
||||
unsigned long rate;
|
||||
unsigned int nr;
|
||||
unsigned int nf;
|
||||
unsigned int no;
|
||||
unsigned int nb;
|
||||
/* for RK3036/RK3399 */
|
||||
unsigned int fbdiv;
|
||||
unsigned int postdiv1;
|
||||
unsigned int refdiv;
|
||||
unsigned int postdiv2;
|
||||
unsigned int dsmpd;
|
||||
unsigned int frac;
|
||||
union {
|
||||
struct {
|
||||
/* for RK3066 */
|
||||
unsigned int nr;
|
||||
unsigned int nf;
|
||||
unsigned int no;
|
||||
unsigned int nb;
|
||||
};
|
||||
struct {
|
||||
/* for RK3036/RK3399 */
|
||||
unsigned int fbdiv;
|
||||
unsigned int postdiv1;
|
||||
unsigned int refdiv;
|
||||
unsigned int postdiv2;
|
||||
unsigned int dsmpd;
|
||||
unsigned int frac;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user