Skip to content

Commit f662848

Browse files
clementperonDinh Nguyen
authored andcommitted
ARM: debug: enable UART1 for socfpga Cyclone5
Cyclone5 and Arria10 doesn't have the same memory map for UART1. Split the SOCFPGA_UART1 into 2 options to allow debugging on UART1 for Cyclone5. Signed-off-by: Clément Péron <peron.clem@gmail.com> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
1 parent 6510223 commit f662848

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

‎arch/arm/Kconfig.debug‎

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,14 +1087,21 @@ choice
10871087
Say Y here if you want kernel low-level debugging support
10881088
on SOCFPGA(Cyclone 5 and Arria 5) based platforms.
10891089

1090-
config DEBUG_SOCFPGA_UART1
1090+
config DEBUG_SOCFPGA_ARRIA10_UART1
10911091
depends on ARCH_SOCFPGA
1092-
bool "Use SOCFPGA UART1 for low-level debug"
1092+
bool "Use SOCFPGA Arria10 UART1 for low-level debug"
10931093
select DEBUG_UART_8250
10941094
help
10951095
Say Y here if you want kernel low-level debugging support
10961096
on SOCFPGA(Arria 10) based platforms.
10971097

1098+
config DEBUG_SOCFPGA_CYCLONE5_UART1
1099+
depends on ARCH_SOCFPGA
1100+
bool "Use SOCFPGA Cyclone 5 UART1 for low-level debug"
1101+
select DEBUG_UART_8250
1102+
help
1103+
Say Y here if you want kernel low-level debugging support
1104+
on SOCFPGA(Cyclone 5 and Arria 5) based platforms.
10981105

10991106
config DEBUG_SUN9I_UART0
11001107
bool "Kernel low-level debugging messages via sun9i UART0"
@@ -1655,7 +1662,8 @@ config DEBUG_UART_PHYS
16551662
default 0xfe800000 if ARCH_IOP32X
16561663
default 0xff690000 if DEBUG_RK32_UART2
16571664
default 0xffc02000 if DEBUG_SOCFPGA_UART0
1658-
default 0xffc02100 if DEBUG_SOCFPGA_UART1
1665+
default 0xffc02100 if DEBUG_SOCFPGA_ARRIA10_UART1
1666+
default 0xffc03000 if DEBUG_SOCFPGA_CYCLONE5_UART1
16591667
default 0xffd82340 if ARCH_IOP13XX
16601668
default 0xffe40000 if DEBUG_RCAR_GEN1_SCIF0
16611669
default 0xffe42000 if DEBUG_RCAR_GEN1_SCIF2
@@ -1762,7 +1770,8 @@ config DEBUG_UART_VIRT
17621770
default 0xfeb30c00 if DEBUG_KEYSTONE_UART0
17631771
default 0xfeb31000 if DEBUG_KEYSTONE_UART1
17641772
default 0xfec02000 if DEBUG_SOCFPGA_UART0
1765-
default 0xfec02100 if DEBUG_SOCFPGA_UART1
1773+
default 0xfec02100 if DEBUG_SOCFPGA_ARRIA10_UART1
1774+
default 0xfec03000 if DEBUG_SOCFPGA_CYCLONE5_UART1
17661775
default 0xfec12000 if (DEBUG_MVEBU_UART0 || DEBUG_MVEBU_UART0_ALTERNATE) && ARCH_MVEBU
17671776
default 0xfec12100 if DEBUG_MVEBU_UART1_ALTERNATE
17681777
default 0xfec10000 if DEBUG_SIRFATLAS7_UART0
@@ -1811,9 +1820,9 @@ config DEBUG_UART_8250_WORD
18111820
depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
18121821
depends on DEBUG_UART_8250_SHIFT >= 2
18131822
default y if DEBUG_PICOXCELL_UART || \
1814-
DEBUG_SOCFPGA_UART0 || DEBUG_SOCFPGA_UART1 || \
1815-
DEBUG_KEYSTONE_UART0 || DEBUG_KEYSTONE_UART1 || \
1816-
DEBUG_ALPINE_UART0 || \
1823+
DEBUG_SOCFPGA_UART0 || DEBUG_SOCFPGA_ARRIA10_UART1 || \
1824+
DEBUG_SOCFPGA_CYCLONE5_UART1 || DEBUG_KEYSTONE_UART0 || \
1825+
DEBUG_KEYSTONE_UART1 || DEBUG_ALPINE_UART0 || \
18171826
DEBUG_DAVINCI_DMx_UART0 || DEBUG_DAVINCI_DA8XX_UART1 || \
18181827
DEBUG_DAVINCI_DA8XX_UART2 || DEBUG_BCM_IPROC_UART3 || \
18191828
DEBUG_BCM_KONA_UART || DEBUG_RK32_UART2

0 commit comments

Comments
 (0)