Skip to content

Commit dc5d8bf

Browse files
committed
Merge tag 'at91-soc-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux into arm/soc
AT91 & POLARFIRE SoC #1 for 5.19: - Power Management: add possibility to implement specific pm quirks for some SoCs - Kconfig update for AT91 PIT64 and LAN966 low-level debugging - sama5d2: add secure calls to OP-TEE and secure suspend * tag 'at91-soc-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux: ARM: at91: debug: add lan966 support ARM: at91: pm: add support for sama5d2 secure suspend ARM: at91: add code to handle secure calls ARM: at91: Kconfig: implement PIT64B selection ARM: at91: pm: add quirks for pm ARM: at91: pm: use kernel documentation style ARM: at91: pm: introduce macros for pm mode replacement ARM: at91: pm: keep documentation inline with structure members Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents f03e950 + 6041558 commit dc5d8bf

File tree

7 files changed

+506
-35
lines changed

7 files changed

+506
-35
lines changed

arch/arm/Kconfig.debug

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,26 @@ choice
210210
Say Y here if you want kernel low-level debugging support
211211
on the FLEXCOM3 port of SAMA7G5.
212212

213+
config DEBUG_AT91_LAN966_FLEXCOM
214+
bool "Kernel low-level debugging on LAN966 FLEXCOM USART"
215+
select DEBUG_AT91_UART
216+
depends on SOC_LAN966
217+
help
218+
Say Y here if you want kernel low-level debugging support
219+
on the FLEXCOM port of LAN966.
220+
221+
DEBUG_UART_PHYS | DEBUG_UART_VIRT
222+
223+
0xe0040200 | 0xfd040200 | FLEXCOM0
224+
0xe0044200 | 0xfd044200 | FLEXCOM1
225+
0xe0060200 | 0xfd060200 | FLEXCOM2
226+
0xe0064200 | 0xfd064200 | FLEXCOM3
227+
0xe0070200 | 0xfd070200 | FLEXCOM4
228+
229+
By default, enabling FLEXCOM3 port. Based on requirement, use
230+
DEBUG_UART_PHYS and DEBUG_UART_VIRT configurations from above
231+
table.
232+
213233
config DEBUG_BCM2835
214234
bool "Kernel low-level debugging on BCM2835 PL011 UART"
215235
depends on ARCH_BCM2835 && ARCH_MULTI_V6
@@ -1685,6 +1705,7 @@ config DEBUG_UART_PHYS
16851705
default 0xd4017000 if DEBUG_MMP_UART2
16861706
default 0xd4018000 if DEBUG_MMP_UART3
16871707
default 0xe0000000 if DEBUG_SPEAR13XX
1708+
default 0xe0064200 if DEBUG_AT91_LAN966_FLEXCOM
16881709
default 0xe1824200 if DEBUG_AT91_SAMA7G5_FLEXCOM3
16891710
default 0xe4007000 if DEBUG_HIP04_UART
16901711
default 0xe6c40000 if DEBUG_RMOBILE_SCIFA0
@@ -1805,6 +1826,7 @@ config DEBUG_UART_VIRT
18051826
default 0xfb10c000 if DEBUG_REALVIEW_PB1176_PORT
18061827
default 0xfcfe8600 if DEBUG_BCM63XX_UART
18071828
default 0xfd000000 if DEBUG_SPEAR3XX || DEBUG_SPEAR13XX
1829+
default 0xfd064200 if DEBUG_AT91_LAN966_FLEXCOM
18081830
default 0xfd531000 if DEBUG_STIH41X_SBC_ASC1
18091831
default 0xfd883000 if DEBUG_ALPINE_UART0
18101832
default 0xfdd32000 if DEBUG_STIH41X_ASC2

arch/arm/mach-at91/Kconfig

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,15 @@ config ATMEL_CLOCKSOURCE_TCB
165165
to make a single 32-bit timer.
166166
It can also be used as a clock event device supporting oneshot mode.
167167

168+
config MICROCHIP_CLOCKSOURCE_PIT64B
169+
bool "64-bit Periodic Interval Timer (PIT64B) support"
170+
default SOC_SAM9X60 || SOC_SAMA7
171+
select MICROCHIP_PIT64B
172+
help
173+
Select this to get a high resolution clockevent (SAM9X60) or
174+
clocksource and clockevent (SAMA7G5) based on Microchip 64-bit
175+
Periodic Interval Timer.
176+
168177
config HAVE_AT91_UTMI
169178
bool
170179

@@ -209,7 +218,16 @@ config SOC_SAMA5
209218
select SRAM if PM
210219

211220
config ATMEL_PM
212-
bool
221+
bool "Atmel PM support"
222+
223+
config ATMEL_SECURE_PM
224+
bool "Atmel Secure PM support"
225+
depends on SOC_SAMA5D2 && ATMEL_PM
226+
select ARM_PSCI
227+
help
228+
When running under a TEE, the suspend mode must be requested to be set
229+
at TEE level. When enable, this option will use secure monitor calls
230+
to set the suspend level. PSCI is then used to enter suspend.
213231

214232
config SOC_SAMA7
215233
bool

arch/arm/mach-at91/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
obj-$(CONFIG_SOC_AT91RM9200) += at91rm9200.o
88
obj-$(CONFIG_SOC_AT91SAM9) += at91sam9.o
99
obj-$(CONFIG_SOC_SAM9X60) += sam9x60.o
10-
obj-$(CONFIG_SOC_SAMA5) += sama5.o
10+
obj-$(CONFIG_SOC_SAMA5) += sama5.o sam_secure.o
1111
obj-$(CONFIG_SOC_SAMA7) += sama7.o
1212
obj-$(CONFIG_SOC_SAMV7) += samv7.o
1313

0 commit comments

Comments
 (0)