All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert+renesas@glider.be>
To: "Magnus Damm" <magnus.damm@gmail.com>,
	"Ulrich Hecht" <uli+renesas@fpond.eu>,
	"Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
Cc: linux-renesas-soc@vger.kernel.org,
	Geert Uytterhoeven <geert+renesas@glider.be>
Subject: [PATCH/RFC 1/6] soc: renesas: Introduce RENESAS_APMU Kconfig option
Date: Thu,  4 Feb 2021 14:54:04 +0100	[thread overview]
Message-ID: <20210204135409.1652604-2-geert+renesas@glider.be> (raw)
In-Reply-To: <20210204135409.1652604-1-geert+renesas@glider.be>

The Renesas Advanced Power Management Unit for AP-System Core (APMU) is
not limited to R-Car Gen2 and RZ/G1 SoCs, but also present on R-Mobile
APE6.

Hence introduce a separate Kconfig symbol to control the build of
APMU-related files, currently selected by ARCH_RCAR_GEN2.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/mach-shmobile/Makefile | 5 +++--
 drivers/soc/renesas/Kconfig     | 4 ++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile
index f7bf17b7abaef7a9..bce16aa04c5c1bb2 100644
--- a/arch/arm/mach-shmobile/Makefile
+++ b/arch/arm/mach-shmobile/Makefile
@@ -20,7 +20,8 @@ obj-$(CONFIG_ARCH_R7S9210)	+= setup-r7s9210.o
 cpu-y				:= platsmp.o headsmp.o
 
 # Shared SoC family objects
-obj-$(CONFIG_ARCH_RCAR_GEN2)	+= setup-rcar-gen2.o platsmp-apmu.o $(cpu-y)
+obj-$(CONFIG_ARCH_RCAR_GEN2)	+= setup-rcar-gen2.o
+obj-$(CONFIG_RENESAS_APMU)	+= platsmp-apmu.o $(cpu-y)
 CFLAGS_setup-rcar-gen2.o	+= -march=armv7-a
 obj-$(CONFIG_ARCH_R8A7790)	+= regulator-quirk-rcar-gen2.o
 obj-$(CONFIG_ARCH_R8A7791)	+= regulator-quirk-rcar-gen2.o
@@ -28,7 +29,7 @@ obj-$(CONFIG_ARCH_R8A7793)	+= regulator-quirk-rcar-gen2.o
 
 # SMP objects
 smp-y				:= $(cpu-y)
-smp-$(CONFIG_ARCH_RCAR_GEN2)	+= headsmp-apmu.o
+smp-$(CONFIG_RENESAS_APMU)	+= headsmp-apmu.o
 smp-$(CONFIG_ARCH_SH73A0)	+= smp-sh73a0.o headsmp-scu.o platsmp-scu.o
 smp-$(CONFIG_ARCH_R8A7779)	+= smp-r8a7779.o headsmp-scu.o platsmp-scu.o
 smp-$(CONFIG_ARCH_EMEV2)	+= smp-emev2.o headsmp-scu.o platsmp-scu.o
diff --git a/drivers/soc/renesas/Kconfig b/drivers/soc/renesas/Kconfig
index b70bbc38efc6771d..f92b6cdff8d6ca25 100644
--- a/drivers/soc/renesas/Kconfig
+++ b/drivers/soc/renesas/Kconfig
@@ -6,6 +6,9 @@ menuconfig SOC_RENESAS
 
 if SOC_RENESAS
 
+config RENESAS_APMU
+	bool
+
 config ARCH_RCAR_GEN1
 	bool
 	select PM
@@ -19,6 +22,7 @@ config ARCH_RCAR_GEN2
 	select HAVE_ARM_ARCH_TIMER
 	select PM
 	select PM_GENERIC_DOMAINS
+	select RENESAS_APMU
 	select RENESAS_IRQC
 	select RST_RCAR
 	select SYS_SUPPORTS_SH_CMT
-- 
2.25.1


  reply	other threads:[~2021-02-04 17:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-04 13:54 [PATCH/RFC 0/6] ARM: r8a73a4: Add SMP support Geert Uytterhoeven
2021-02-04 13:54 ` Geert Uytterhoeven [this message]
2021-02-04 13:54 ` [PATCH/RFC 2/6] dt-bindings: power: renesas,apmu: Document R-Mobile APE6 support Geert Uytterhoeven
2021-02-04 13:54 ` [PATCH/RFC 3/6] ARM: dts: r8a73a4: Add secondary CPU nodes Geert Uytterhoeven
2021-02-04 13:54 ` [PATCH/RFC 4/6] ARM: dts: r8a73a4: Add Media RAM for SMP jump stub Geert Uytterhoeven
2021-02-04 13:54 ` [PATCH/RFC 5/6] ARM: dts: r8a73a4: Add APMU nodes Geert Uytterhoeven
2021-02-04 13:54 ` [PATCH/RFC 6/6] [WIP] ARM: shmobile: r8a73a4: Add SMP support Geert Uytterhoeven
2021-02-08 20:00 ` [PATCH/RFC 0/6] ARM: " Niklas Söderlund
2021-02-10  9:11 ` Ulrich Hecht
2021-02-10  9:51   ` Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210204135409.1652604-2-geert+renesas@glider.be \
    --to=geert+renesas@glider.be \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=niklas.soderlund+renesas@ragnatech.se \
    --cc=uli+renesas@fpond.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.