clk: meson: a1: move bindings include to main driver
authorNeil Armstrong <neil.armstrong@linaro.org>
Mon, 12 Jun 2023 09:57:34 +0000 (11:57 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Tue, 8 Aug 2023 14:06:17 +0000 (16:06 +0200)
Now the clock ids are no more defined in private headers,
cleanup and include the dt-bindings headers from the main
driver file.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Dmitry Rokosov <ddrokosov@sberdevices.ru>
Link: https://lore.kernel.org/r/20230607-topic-amlogic-upstream-clkid-public-migration-v2-17-38172d17c27a@linaro.org
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/a1-peripherals.c
drivers/clk/meson/a1-peripherals.h
drivers/clk/meson/a1-pll.c
drivers/clk/meson/a1-pll.h

index 485182c..dde2912 100644 (file)
@@ -15,6 +15,8 @@
 #include "clk-regmap.h"
 #include "meson-clkc-utils.h"
 
+#include <dt-bindings/clock/amlogic,a1-peripherals-clkc.h>
+
 static struct clk_regmap xtal_in = {
        .data = &(struct clk_regmap_gate_data){
                .offset = SYS_OSCIN_CTRL,
index 842b526..26de853 100644 (file)
@@ -43,7 +43,4 @@
 #define PSRAM_CLK_CTRL         0xf4
 #define DMC_CLK_CTRL           0xf8
 
-/* include the CLKIDs that have been made part of the DT binding */
-#include <dt-bindings/clock/amlogic,a1-peripherals-clkc.h>
-
 #endif /* __A1_PERIPHERALS_H */
index 25e6b56..7de7d78 100644 (file)
@@ -14,6 +14,8 @@
 #include "clk-regmap.h"
 #include "meson-clkc-utils.h"
 
+#include <dt-bindings/clock/amlogic,a1-pll-clkc.h>
+
 static struct clk_regmap fixed_pll_dco = {
        .data = &(struct meson_clk_pll_data){
                .en = {
index 0add1c7..4be17b2 100644 (file)
@@ -25,7 +25,4 @@
 #define ANACTRL_HIFIPLL_CTRL4  0xd0
 #define ANACTRL_HIFIPLL_STS    0xd4
 
-/* include the CLKIDs that have been made part of the DT binding */
-#include <dt-bindings/clock/amlogic,a1-pll-clkc.h>
-
 #endif /* __A1_PLL_H */