[3/5] clk: sunxi-ng: d1: Allow building for R528/T113

Message ID 20221126191319.6404-4-samuel@sholland.org
State New
Headers
Series clk: sunxi-ng: Allwinner R528/T113 clock support |

Commit Message

Samuel Holland Nov. 26, 2022, 7:13 p.m. UTC
  Allwinner released some 32-bit ARM (sun8i) SoCs which use the same CCU
as D1. Allow them to reuse the driver.

Signed-off-by: Samuel Holland <samuel@sholland.org>
---

 drivers/clk/sunxi-ng/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
  

Comments

Andre Przywara Dec. 3, 2022, 12:15 a.m. UTC | #1
On Sat, 26 Nov 2022 13:13:17 -0600
Samuel Holland <samuel@sholland.org> wrote:

> Allwinner released some 32-bit ARM (sun8i) SoCs which use the same CCU
> as D1. Allow them to reuse the driver.
> 
> Signed-off-by: Samuel Holland <samuel@sholland.org>

Indeed, the clocks are compatible, work (given the next patch) and are
needed on a MangoPi-MQ-R board.

Reviewed-by: Andre Przywara <andre.przywara@arm.com>

Cheers,
Andre

> ---
> 
>  drivers/clk/sunxi-ng/Kconfig | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/clk/sunxi-ng/Kconfig b/drivers/clk/sunxi-ng/Kconfig
> index 78deee2996ce..b547198a2c65 100644
> --- a/drivers/clk/sunxi-ng/Kconfig
> +++ b/drivers/clk/sunxi-ng/Kconfig
> @@ -13,14 +13,14 @@ config SUNIV_F1C100S_CCU
>  	depends on MACH_SUNIV || COMPILE_TEST
>  
>  config SUN20I_D1_CCU
> -	tristate "Support for the Allwinner D1 CCU"
> +	tristate "Support for the Allwinner D1/R528/T113 CCU"
>  	default y
> -	depends on RISCV || COMPILE_TEST
> +	depends on MACH_SUN8I || RISCV || COMPILE_TEST
>  
>  config SUN20I_D1_R_CCU
> -	tristate "Support for the Allwinner D1 PRCM CCU"
> +	tristate "Support for the Allwinner D1/R528/T113 PRCM CCU"
>  	default y
> -	depends on RISCV || COMPILE_TEST
> +	depends on MACH_SUN8I || RISCV || COMPILE_TEST
>  
>  config SUN50I_A64_CCU
>  	tristate "Support for the Allwinner A64 CCU"
  
Jernej Škrabec Dec. 5, 2022, 8:14 p.m. UTC | #2
Dne sobota, 26. november 2022 ob 20:13:17 CET je Samuel Holland napisal(a):
> Allwinner released some 32-bit ARM (sun8i) SoCs which use the same CCU
> as D1. Allow them to reuse the driver.
> 
> Signed-off-by: Samuel Holland <samuel@sholland.org>

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej
  

Patch

diff --git a/drivers/clk/sunxi-ng/Kconfig b/drivers/clk/sunxi-ng/Kconfig
index 78deee2996ce..b547198a2c65 100644
--- a/drivers/clk/sunxi-ng/Kconfig
+++ b/drivers/clk/sunxi-ng/Kconfig
@@ -13,14 +13,14 @@  config SUNIV_F1C100S_CCU
 	depends on MACH_SUNIV || COMPILE_TEST
 
 config SUN20I_D1_CCU
-	tristate "Support for the Allwinner D1 CCU"
+	tristate "Support for the Allwinner D1/R528/T113 CCU"
 	default y
-	depends on RISCV || COMPILE_TEST
+	depends on MACH_SUN8I || RISCV || COMPILE_TEST
 
 config SUN20I_D1_R_CCU
-	tristate "Support for the Allwinner D1 PRCM CCU"
+	tristate "Support for the Allwinner D1/R528/T113 PRCM CCU"
 	default y
-	depends on RISCV || COMPILE_TEST
+	depends on MACH_SUN8I || RISCV || COMPILE_TEST
 
 config SUN50I_A64_CCU
 	tristate "Support for the Allwinner A64 CCU"