A33 has separate clock driver in Linux because of
few clock differences wrt to A23 like audio etc,.
these may not useful for U-Boot so added a33 ccu
compatible on existing a23 clock driver.

Signed-off-by: Jagan Teki <ja...@amarulasolutions.com>
---
 drivers/clk/sunxi/Kconfig   | 6 +++---
 drivers/clk/sunxi/clk_a23.c | 2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/clk/sunxi/Kconfig b/drivers/clk/sunxi/Kconfig
index 54600e8e1f..38ff99d345 100644
--- a/drivers/clk/sunxi/Kconfig
+++ b/drivers/clk/sunxi/Kconfig
@@ -31,11 +31,11 @@ config CLK_SUN6I_A31
          on Allwinner A31/A31s SoC.
 
 config CLK_SUN8I_A23
-       bool "Clock driver for Allwinner A23"
-       default MACH_SUN8I_A23
+       bool "Clock driver for Allwinner A23/A33"
+       default MACH_SUN8I_A23 || MACH_SUN8I_A33
        help
          This enables common clock driver support for platforms based
-         on Allwinner A23 SoC.
+         on Allwinner A23/A33 SoC.
 
 config CLK_SUN8I_H3
        bool "Clock driver for Allwinner H3/H5"
diff --git a/drivers/clk/sunxi/clk_a23.c b/drivers/clk/sunxi/clk_a23.c
index 799c8ac0aa..ec9834e1a8 100644
--- a/drivers/clk/sunxi/clk_a23.c
+++ b/drivers/clk/sunxi/clk_a23.c
@@ -65,6 +65,8 @@ static int a23_clk_bind(struct udevice *dev)
 static const struct udevice_id a23_clk_ids[] = {
        { .compatible = "allwinner,sun8i-a23-ccu",
          .data = (ulong)&sun8i_a23_ccu_desc },
+       { .compatible = "allwinner,sun8i-a33-ccu",
+         .data = (ulong)&sun8i_a23_ccu_desc },
        { }
 };
 
-- 
2.18.0.321.gffc6fa0e3

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to