Skip to content

Commit 6041558

Browse files
kavyasreekotagirinoglitch
authored andcommitted
ARM: at91: debug: add lan966 support
Add support for low-level debugging on FLEXCOM USART of LAN966 SoC. Signed-off-by: Kavyasree Kotagiri <kavyasree.kotagiri@microchip.com> Reviewed-by: Michael Walle <michael@walle.cc> Tested-by: Michael Walle <michael@walle.cc> Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> Link: https://lore.kernel.org/r/20220513092530.19213-1-kavyasree.kotagiri@microchip.com
1 parent f2f5cf7 commit 6041558

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)