summaryrefslogtreecommitdiff
path: root/drivers/clk/meson/clk-mpll.h
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2019-05-13 15:31:12 +0300
committerJerome Brunet <jbrunet@baylibre.com>2019-05-20 13:19:29 +0300
commit19855c8276fec011afd8617a634eb62a29e6b871 (patch)
treea984e06da640bedbfff89794ec3a91adc9778347 /drivers/clk/meson/clk-mpll.h
parentdc4e62d373f881cbf51513296a6db7806516a01a (diff)
downloadlinux-19855c8276fec011afd8617a634eb62a29e6b871.tar.xz
clk: meson: mpll: add init callback and regs
Until now (gx and axg), the mpll setting on boot (whatever the bootloader) was good enough to generate a clean fractional division. It is not the case on the g12a. While moving away from the vendor u-boot, it was noticed the fractional part of the divider was no longer applied. Like on the pll, some magic settings need to applied on the mpll register. This change adds the ability to do that on the mpll driver. Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Diffstat (limited to 'drivers/clk/meson/clk-mpll.h')
-rw-r--r--drivers/clk/meson/clk-mpll.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/meson/clk-mpll.h b/drivers/clk/meson/clk-mpll.h
index 0f948430fed4..a991d568c43a 100644
--- a/drivers/clk/meson/clk-mpll.h
+++ b/drivers/clk/meson/clk-mpll.h
@@ -18,6 +18,8 @@ struct meson_clk_mpll_data {
struct parm n2;
struct parm ssen;
struct parm misc;
+ const struct reg_sequence *init_regs;
+ unsigned int init_count;
spinlock_t *lock;
u8 flags;
};