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 485182cd8a2af455f0c243be2df094e18cb22854..dde2912671b856f806637fd74fad19e6bb8e4e29 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 842b52634ed08786ec7fa2a520f569ec19dc7331..26de8530184ad7219aeb0767a9fff1a2de33afe6 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 25e6b567afd51fcc834b7b89967674a7c3ff5420..7de7d78c3813da94efe16e8685ff4ec34cd39abb 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 0add1c7ea9f5e34b7396987d20b9115cb110c0ab..4be17b2bf383e8c9176107291c9c36a0332cd0a2 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 */