diff mbox series

[U-Boot,v4,09/17] clk: sunxi: a23: Add CLK support for A33

Message ID 20180826123826.19243-10-jagan@amarulasolutions.com
State Changes Requested
Delegated to: Jagannadha Sutradharudu Teki
Headers show
Series clk: Add Allwinner CLK, RESET support | expand

Commit Message

Jagan Teki Aug. 26, 2018, 12:38 p.m. UTC
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@amarulasolutions.com>
---
 drivers/clk/sunxi/Kconfig   | 6 +++---
 drivers/clk/sunxi/clk_a23.c | 2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)

Comments

Maxime Ripard Aug. 27, 2018, 2:40 p.m. UTC | #1
On Sun, Aug 26, 2018 at 06:08:18PM +0530, Jagan Teki wrote:
> 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@amarulasolutions.com>

I guess this one can be merged with the previous patch, just like you
did for the h3/h5, a10/a20 and a10s/a13 already.

Maxime
diff mbox series

Patch

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 },
 	{ }
 };