diff mbox series

[RFT,v3,17/27] arm64: Kconfig: Introduce CONFIG_ARCH_APPLE

Message ID 20210304213902.83903-18-marcan@marcan.st
State New
Headers show
Series Apple M1 SoC platform bring-up | expand

Commit Message

Hector Martin March 4, 2021, 9:38 p.m. UTC
This adds a Kconfig option to toggle support for Apple ARM SoCs.
At this time this targets the M1 and later "Apple Silicon" Mac SoCs.

Signed-off-by: Hector Martin <marcan@marcan.st>
---
 arch/arm64/Kconfig.platforms | 8 ++++++++
 arch/arm64/configs/defconfig | 1 +
 2 files changed, 9 insertions(+)

Comments

Marc Zyngier March 8, 2021, 3:35 p.m. UTC | #1
On Thu, 04 Mar 2021 21:38:52 +0000,
Hector Martin <marcan@marcan.st> wrote:
> 
> This adds a Kconfig option to toggle support for Apple ARM SoCs.
> At this time this targets the M1 and later "Apple Silicon" Mac SoCs.
> 
> Signed-off-by: Hector Martin <marcan@marcan.st>
> ---
>  arch/arm64/Kconfig.platforms | 8 ++++++++
>  arch/arm64/configs/defconfig | 1 +
>  2 files changed, 9 insertions(+)
> 
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index cdfd5fed457f..c2b5791e3d69 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -36,6 +36,14 @@ config ARCH_ALPINE
>  	  This enables support for the Annapurna Labs Alpine
>  	  Soc family.
>  
> +config ARCH_APPLE
> +	bool "Apple Silicon SoC family"
> +	select APPLE_AIC
> +	select ARM64_FIQ_SUPPORT

Do we still need this FIQ symbol? I though it was now gone...

Thanks,

	M.
Hector Martin March 9, 2021, 8:30 p.m. UTC | #2
On 09/03/2021 00.35, Marc Zyngier wrote:
> On Thu, 04 Mar 2021 21:38:52 +0000,
> Hector Martin <marcan@marcan.st> wrote:
>>
>> This adds a Kconfig option to toggle support for Apple ARM SoCs.
>> At this time this targets the M1 and later "Apple Silicon" Mac SoCs.
>>
>> Signed-off-by: Hector Martin <marcan@marcan.st>
>> ---
>>   arch/arm64/Kconfig.platforms | 8 ++++++++
>>   arch/arm64/configs/defconfig | 1 +
>>   2 files changed, 9 insertions(+)
>>
>> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
>> index cdfd5fed457f..c2b5791e3d69 100644
>> --- a/arch/arm64/Kconfig.platforms
>> +++ b/arch/arm64/Kconfig.platforms
>> @@ -36,6 +36,14 @@ config ARCH_ALPINE
>>   	  This enables support for the Annapurna Labs Alpine
>>   	  Soc family.
>>   
>> +config ARCH_APPLE
>> +	bool "Apple Silicon SoC family"
>> +	select APPLE_AIC
>> +	select ARM64_FIQ_SUPPORT
> 
> Do we still need this FIQ symbol? I though it was now gone...

Whoops! Thanks for the catch, this can go away.
diff mbox series

Patch

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index cdfd5fed457f..c2b5791e3d69 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -36,6 +36,14 @@  config ARCH_ALPINE
 	  This enables support for the Annapurna Labs Alpine
 	  Soc family.
 
+config ARCH_APPLE
+	bool "Apple Silicon SoC family"
+	select APPLE_AIC
+	select ARM64_FIQ_SUPPORT
+	help
+	  This enables support for Apple's in-house ARM SoC family, starting
+	  with the Apple M1.
+
 config ARCH_BCM2835
 	bool "Broadcom BCM2835 family"
 	select TIMER_OF
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index d612f633b771..54fb257e55f7 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -31,6 +31,7 @@  CONFIG_ARCH_ACTIONS=y
 CONFIG_ARCH_AGILEX=y
 CONFIG_ARCH_SUNXI=y
 CONFIG_ARCH_ALPINE=y
+CONFIG_ARCH_APPLE=y
 CONFIG_ARCH_BCM2835=y
 CONFIG_ARCH_BCM4908=y
 CONFIG_ARCH_BCM_IPROC=y