2022-02-24 10:10:50

by Prabhakar Mahadev Lad

[permalink] [raw]
Subject: [PATCH] soc: renesas: Kconfig: Introduce ARCH_RZG2L config option

Renesas RZ/G2L, RZ/G2LC, RZ/G2UL and RZ/V2L SoC's have identical IP blocks
for which drivers are common. To avoid updating the Kconfig files for
drivers in common to each SoC, introduce the ARCH_RZG2L config option.
ARCH_RZG2L config option will be selected by the above mentioned SoC's and
ARCH_RZG2L config option will be used as a dependency for the drivers in
common.

While at it, move PM and PM_GENERIC_DOMAINS under the ARCH_RZG2L
config option insteadĀ of adding it to individual SoC.

Signed-off-by: Lad Prabhakar <[email protected]>
Reviewed-by: Biju Das <[email protected]>
---
drivers/soc/renesas/Kconfig | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/drivers/soc/renesas/Kconfig b/drivers/soc/renesas/Kconfig
index 57b6292b46a3..fdc99a05a7e0 100644
--- a/drivers/soc/renesas/Kconfig
+++ b/drivers/soc/renesas/Kconfig
@@ -40,6 +40,11 @@ config ARCH_RMOBILE
select SYS_SUPPORTS_SH_TMU
select SYSC_RMOBILE

+config ARCH_RZG2L
+ bool
+ select PM
+ select PM_GENERIC_DOMAINS
+
config ARCH_RZN1
bool
select ARM_AMBA
@@ -293,15 +298,13 @@ config ARCH_R8A774B1

config ARCH_R9A07G044
bool "ARM64 Platform support for RZ/G2L"
- select PM
- select PM_GENERIC_DOMAINS
+ select ARCH_RZG2L
help
This enables support for the Renesas RZ/G2L SoC variants.

config ARCH_R9A07G054
bool "ARM64 Platform support for RZ/V2L"
- select PM
- select PM_GENERIC_DOMAINS
+ select ARCH_RZG2L
help
This enables support for the Renesas RZ/V2L SoC variants.

--
2.17.1


2022-02-24 10:14:12

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: [PATCH] soc: renesas: Kconfig: Introduce ARCH_RZG2L config option

Hi Prabhakar,

On Thu, Feb 24, 2022 at 10:21 AM Lad Prabhakar
<[email protected]> wrote:
> Renesas RZ/G2L, RZ/G2LC, RZ/G2UL and RZ/V2L SoC's have identical IP blocks
> for which drivers are common. To avoid updating the Kconfig files for
> drivers in common to each SoC, introduce the ARCH_RZG2L config option.
> ARCH_RZG2L config option will be selected by the above mentioned SoC's and
> ARCH_RZG2L config option will be used as a dependency for the drivers in
> common.
>
> While at it, move PM and PM_GENERIC_DOMAINS under the ARCH_RZG2L
> config option instead of adding it to individual SoC.
>
> Signed-off-by: Lad Prabhakar <[email protected]>
> Reviewed-by: Biju Das <[email protected]>

Reviewed-by: Geert Uytterhoeven <[email protected]>
i.e. will queue in renesas-devel for v5.18, so you can start updating
dependencies after v5.18-rc1.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

2022-02-24 11:18:45

by Lad, Prabhakar

[permalink] [raw]
Subject: Re: [PATCH] soc: renesas: Kconfig: Introduce ARCH_RZG2L config option

Hi Geert,

Thank you for the review.

On Thu, Feb 24, 2022 at 9:49 AM Geert Uytterhoeven <[email protected]> wrote:
>
> Hi Prabhakar,
>
> On Thu, Feb 24, 2022 at 10:21 AM Lad Prabhakar
> <[email protected]> wrote:
> > Renesas RZ/G2L, RZ/G2LC, RZ/G2UL and RZ/V2L SoC's have identical IP blocks
> > for which drivers are common. To avoid updating the Kconfig files for
> > drivers in common to each SoC, introduce the ARCH_RZG2L config option.
> > ARCH_RZG2L config option will be selected by the above mentioned SoC's and
> > ARCH_RZG2L config option will be used as a dependency for the drivers in
> > common.
> >
> > While at it, move PM and PM_GENERIC_DOMAINS under the ARCH_RZG2L
> > config option instead of adding it to individual SoC.
> >
> > Signed-off-by: Lad Prabhakar <[email protected]>
> > Reviewed-by: Biju Das <[email protected]>
>
> Reviewed-by: Geert Uytterhoeven <[email protected]>
> i.e. will queue in renesas-devel for v5.18, so you can start updating
> dependencies after v5.18-rc1.
>
In that case I'll withhold the Kconfig changes for v2l and post it
after v5.18-rc1 and for now will just send the DTSI changes to enable
them.

Cheers,
Prabhakar