[U-Boot] [PATCH v4 09/17] clk: sunxi: a23: Add CLK support for A33
Jagan Teki
jagan at amarulasolutions.com
Sun Aug 26 12:38:18 UTC 2018
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 <jagan at 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 165dea8cb2..4b30fe608c 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
More information about the U-Boot
mailing list