at91: add kernel support for sama7g5 soc
[openwrt/staging/dedeckeh.git] / target / linux / at91 / patches-5.10 / 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 diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
19 index ccd7e80ce943..b09bb2279f7f 100644
20 --- a/arch/arm/mach-at91/Kconfig
21 +++ b/arch/arm/mach-at91/Kconfig
22 @@ -57,6 +57,16 @@ config SOC_SAMA5D4
23 help
24 Select this if you are using one of Microchip's SAMA5D4 family SoC.
25
26 +config SOC_SAMA7G5
27 + bool "SAMA7G5 family"
28 + depends on ARCH_MULTI_V7
29 + select HAVE_AT91_GENERATED_CLK
30 + select HAVE_AT91_SAM9X60_PLL
31 + select HAVE_AT91_UTMI
32 + select SOC_SAMA7
33 + help
34 + Select this if you are using one of Microchip's SAMA7G5 family SoC.
35 +
36 config SOC_AT91RM9200
37 bool "AT91RM9200"
38 depends on ARCH_MULTI_V4T
39 @@ -191,4 +201,12 @@ config SOC_SAMA5
40 config ATMEL_PM
41 bool
42
43 +config SOC_SAMA7
44 + bool
45 + select ARM_GIC
46 + select ATMEL_PM if PM
47 + select ATMEL_SDRAMC
48 + select MEMORY
49 + select SOC_SAM_V7
50 + select SRAM if PM
51 endif
52 --
53 2.32.0
54