summaryrefslogtreecommitdiffstats
path: root/drivers/clk/meson/gxbb.c
diff options
context:
space:
mode:
authorAlexandre Mergnat <amergnat@baylibre.com>2019-07-25 18:42:36 +0200
committerJerome Brunet <jbrunet@baylibre.com>2019-07-29 12:42:49 +0200
commit3a36044e7f3909c7ddb7ddfc727ab8104a563439 (patch)
treed2d271b937b6c05150b5d20d480d4dd356ba6f07 /drivers/clk/meson/gxbb.c
parent4b5b85c0e6505c50d4a986f75effe5b88d923737 (diff)
downloadlinux-stable-3a36044e7f3909c7ddb7ddfc727ab8104a563439.tar.gz
linux-stable-3a36044e7f3909c7ddb7ddfc727ab8104a563439.tar.bz2
linux-stable-3a36044e7f3909c7ddb7ddfc727ab8104a563439.zip
clk: meson: clk-regmap: migrate to new parent description method
This clock controller use the string comparison method to describe parent relation between the clocks, which is not optimized. Migrate to the new way by using .parent_hws where possible (ie. when all clocks are local to the controller) and use .parent_data otherwise. Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Diffstat (limited to 'drivers/clk/meson/gxbb.c')
-rw-r--r--drivers/clk/meson/gxbb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c
index 67e466356d4b..7cfb998eeb3e 100644
--- a/drivers/clk/meson/gxbb.c
+++ b/drivers/clk/meson/gxbb.c
@@ -2587,6 +2587,9 @@ static struct clk_regmap gxbb_gen_clk = {
},
};
+#define MESON_GATE(_name, _reg, _bit) \
+ MESON_PCLK(_name, _reg, _bit, &gxbb_clk81.hw)
+
/* Everything Else (EE) domain gates */
static MESON_GATE(gxbb_ddr, HHI_GCLK_MPEG0, 0);
static MESON_GATE(gxbb_dos, HHI_GCLK_MPEG0, 1);