[U-Boot] [RFC 27/35] clk: sunxi: a23: Add CLK support for A33
Jagan Teki
jagan at amarulasolutions.com
Mon Jul 16 11:28:42 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 | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/clk/sunxi/Kconfig b/drivers/clk/sunxi/Kconfig
index 5f65c9ed44..40c6f999ca 100644
--- a/drivers/clk/sunxi/Kconfig
+++ b/drivers/clk/sunxi/Kconfig
@@ -30,11 +30,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 71f7447ea3..84def883f1 100644
--- a/drivers/clk/sunxi/clk_a23.c
+++ b/drivers/clk/sunxi/clk_a23.c
@@ -97,6 +97,7 @@ static int a23_clk_ofdata_to_platdata(struct udevice *dev)
static const struct udevice_id a23_clk_ids[] = {
{ .compatible = "allwinner,sun8i-a23-ccu" },
+ { .compatible = "allwinner,sun8i-a33-ccu" },
{ }
};
--
2.17.1
More information about the U-Boot
mailing list