Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/drivers/clk/meson/meson8b.c b/drivers/clk/meson/meson8b.c
- index 95678a2b017c..d7cc14f31ce9 100644
- --- a/drivers/clk/meson/meson8b.c
- +++ b/drivers/clk/meson/meson8b.c
- @@ -1968,6 +1968,13 @@ static const struct pll_params_table meson8m2_gp_pll_params_table[] = {
- { /* sentinel */ },
- };
- +static const struct reg_sequence meson8m2_gp_pll_init_regs[] = {
- + { .reg = HHI_GP_PLL_CNTL2, .def = 0x59c88000 },
- + { .reg = HHI_GP_PLL_CNTL3, .def = 0xca463823 },
- + { .reg = HHI_GP_PLL_CNTL4, .def = 0x0286a027 },
- + { .reg = HHI_GP_PLL_CNTL5, .def = 0x00003000 },
- +};
- +
- static struct clk_regmap meson8m2_gp_pll_dco = {
- .data = &(struct meson_clk_pll_data){
- .en = {
- @@ -1996,6 +2003,8 @@ static struct clk_regmap meson8m2_gp_pll_dco = {
- .width = 1,
- },
- .table = meson8m2_gp_pll_params_table,
- + .init_regs = meson8m2_gp_pll_init_regs,
- + .init_count = ARRAY_SIZE(meson8m2_gp_pll_init_regs),
- },
- .hw.init = &(struct clk_init_data){
- .name = "gp_pll_dco",
- diff --git a/drivers/clk/meson/meson8b.h b/drivers/clk/meson/meson8b.h
- index 46c5dadc74e6..2569f3431fbe 100644
- --- a/drivers/clk/meson/meson8b.h
- +++ b/drivers/clk/meson/meson8b.h
- @@ -20,6 +20,10 @@
- * [0] http://dn.odroid.com/S805/Datasheet/S805_Datasheet%20V0.8%2020150126.pdf
- */
- #define HHI_GP_PLL_CNTL 0x40 /* 0x10 offset in data sheet */
- +#define HHI_GP_PLL_CNTL2 0x44 /* 0x11 offset in data sheet */
- +#define HHI_GP_PLL_CNTL3 0x48 /* 0x12 offset in data sheet */
- +#define HHI_GP_PLL_CNTL4 0x4C /* 0x13 offset in data sheet */
- +#define HHI_GP_PLL_CNTL5 0x50 /* 0x14 offset in data sheet */
- #define HHI_VIID_CLK_DIV 0x128 /* 0x4a offset in data sheet */
- #define HHI_VIID_CLK_CNTL 0x12c /* 0x4b offset in data sheet */
- #define HHI_GCLK_MPEG0 0x140 /* 0x50 offset in data sheet */
Add Comment
Please, Sign In to add comment