at91: kernel v5.15: copy config and patches from 5.10
[openwrt/openwrt.git] / target / linux / at91 / patches-5.15 / 195-ARM-at91-add-new-SoC-sama7g5.patch
1 From 32bac6971d0572f67758f9a8c8af7bf4592f1675 Mon Sep 17 00:00:00 2001
2 From: Eugen Hristev <eugen.hristev@microchip.com>
3 Date: Fri, 9 Apr 2021 14:31:15 +0300
4 Subject: [PATCH 195/247] ARM: at91: add new SoC sama7g5
5
6 Add new SoC from at91 family : sama7g5
7
8 Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
9 [claudiu.beznea@microchip.com: Select PLL, generic clock and UTMI support, add PM configs]
10 Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
11 Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
12 Link: https://lore.kernel.org/r/20210409113116.482199-1-eugen.hristev@microchip.com
13 Link: https://lore.kernel.org/r/20210719080317.1045832-2-claudiu.beznea@microchip.com
14 ---
15 arch/arm/mach-at91/Kconfig | 18 ++++++++++++++++++
16 1 file changed, 18 insertions(+)
17
18 --- a/arch/arm/mach-at91/Kconfig
19 +++ b/arch/arm/mach-at91/Kconfig
20 @@ -57,6 +57,16 @@ config SOC_SAMA5D4
21 help
22 Select this if you are using one of Microchip's SAMA5D4 family SoC.
23
24 +config SOC_SAMA7G5
25 + bool "SAMA7G5 family"
26 + depends on ARCH_MULTI_V7
27 + select HAVE_AT91_GENERATED_CLK
28 + select HAVE_AT91_SAM9X60_PLL
29 + select HAVE_AT91_UTMI
30 + select SOC_SAMA7
31 + help
32 + Select this if you are using one of Microchip's SAMA7G5 family SoC.
33 +
34 config SOC_AT91RM9200
35 bool "AT91RM9200"
36 depends on ARCH_MULTI_V4T
37 @@ -191,4 +201,12 @@ config SOC_SAMA5
38 config ATMEL_PM
39 bool
40
41 +config SOC_SAMA7
42 + bool
43 + select ARM_GIC
44 + select ATMEL_PM if PM
45 + select ATMEL_SDRAMC
46 + select MEMORY
47 + select SOC_SAM_V7
48 + select SRAM if PM
49 endif