diff mbox series

[v8,5/5] riscv: Enable PM_GENERIC_DOMAINS for T-Head SoCs

Message ID 20250311171900.1549916-6-m.wilczynski@samsung.com
State Superseded
Headers show
Series TH1520 SoC: Add AON firmware & power-domain support | expand

Commit Message

Michal Wilczynski March 11, 2025, 5:19 p.m. UTC
T-Head SoCs feature separate power domains (power islands) for major
components like the GPU, Audio, and NPU. To manage the power states of
these components effectively, the kernel requires generic power domain
support.

This commit enables `CONFIG_PM_GENERIC_DOMAINS` for T-Head SoCs,
allowing the power domain driver for these components to be compiled and
integrated. This ensures proper power management and energy efficiency
on T-Head platforms.

By selecting `PM_GENERIC_DOMAINS`, we provide the necessary framework
for the power domain drivers to function correctly on RISC-V
architecture with T-Head SoCs.

Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
---
 arch/riscv/Kconfig.socs | 1 +
 1 file changed, 1 insertion(+)

Comments

Drew Fustini April 4, 2025, 6:55 p.m. UTC | #1
On Tue, Mar 11, 2025 at 06:19:00PM +0100, Michal Wilczynski wrote:
> T-Head SoCs feature separate power domains (power islands) for major
> components like the GPU, Audio, and NPU. To manage the power states of
> these components effectively, the kernel requires generic power domain
> support.
> 
> This commit enables `CONFIG_PM_GENERIC_DOMAINS` for T-Head SoCs,
> allowing the power domain driver for these components to be compiled and
> integrated. This ensures proper power management and energy efficiency
> on T-Head platforms.
> 
> By selecting `PM_GENERIC_DOMAINS`, we provide the necessary framework
> for the power domain drivers to function correctly on RISC-V
> architecture with T-Head SoCs.
> 
> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
> ---
>  arch/riscv/Kconfig.socs | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs
> index 1916cf7ba450..83833ded8908 100644
> --- a/arch/riscv/Kconfig.socs
> +++ b/arch/riscv/Kconfig.socs
> @@ -53,6 +53,7 @@ config ARCH_THEAD
>  	bool "T-HEAD RISC-V SoCs"
>  	depends on MMU && !XIP_KERNEL
>  	select ERRATA_THEAD
> +	select PM_GENERIC_DOMAINS if PM
>  	help
>  	  This enables support for the RISC-V based T-HEAD SoCs.
>  
> -- 
> 2.34.1
> 

Reviewed-by: Drew Fustini <drew@pdp7.com>

Conor - would you be able to take this Kconfig.socs patch?

Thanks,
Drew
Conor Dooley April 7, 2025, 3:50 p.m. UTC | #2
On Fri, Apr 04, 2025 at 11:55:17AM -0700, Drew Fustini wrote:
> On Tue, Mar 11, 2025 at 06:19:00PM +0100, Michal Wilczynski wrote:
> > T-Head SoCs feature separate power domains (power islands) for major
> > components like the GPU, Audio, and NPU. To manage the power states of
> > these components effectively, the kernel requires generic power domain
> > support.
> > 
> > This commit enables `CONFIG_PM_GENERIC_DOMAINS` for T-Head SoCs,
> > allowing the power domain driver for these components to be compiled and
> > integrated. This ensures proper power management and energy efficiency
> > on T-Head platforms.
> > 
> > By selecting `PM_GENERIC_DOMAINS`, we provide the necessary framework
> > for the power domain drivers to function correctly on RISC-V
> > architecture with T-Head SoCs.
> > 
> > Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
> > ---
> >  arch/riscv/Kconfig.socs | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs
> > index 1916cf7ba450..83833ded8908 100644
> > --- a/arch/riscv/Kconfig.socs
> > +++ b/arch/riscv/Kconfig.socs
> > @@ -53,6 +53,7 @@ config ARCH_THEAD
> >  	bool "T-HEAD RISC-V SoCs"
> >  	depends on MMU && !XIP_KERNEL
> >  	select ERRATA_THEAD
> > +	select PM_GENERIC_DOMAINS if PM
> >  	help
> >  	  This enables support for the RISC-V based T-HEAD SoCs.
> >  
> > -- 
> > 2.34.1
> > 
> 
> Reviewed-by: Drew Fustini <drew@pdp7.com>
> 
> Conor - would you be able to take this Kconfig.socs patch?

I can I suppose, sure.
diff mbox series

Patch

diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs
index 1916cf7ba450..83833ded8908 100644
--- a/arch/riscv/Kconfig.socs
+++ b/arch/riscv/Kconfig.socs
@@ -53,6 +53,7 @@  config ARCH_THEAD
 	bool "T-HEAD RISC-V SoCs"
 	depends on MMU && !XIP_KERNEL
 	select ERRATA_THEAD
+	select PM_GENERIC_DOMAINS if PM
 	help
 	  This enables support for the RISC-V based T-HEAD SoCs.