summaryrefslogtreecommitdiffstats
path: root/arch/arm/Kconfig.debug
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2013-07-07 07:32:16 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-08-25 12:11:05 -0400
commit5c972af407419c79e1e922fb241fa0d06b4f1ffd (patch)
treede278f0e6111103cbc6efdad8250e2dbc443f15f /arch/arm/Kconfig.debug
parent0b4cccbec60678212eccdb42dc1e1c233ddf7092 (diff)
ARM: debug: provide PL01x debug uart phys/virt address configuration options
Move the definition of the UART register addresses out of the platform specific header files into the Kconfig files. Acked-by: Ryan Mallon <rmallon@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/Kconfig.debug')
-rw-r--r--arch/arm/Kconfig.debug54
1 files changed, 50 insertions, 4 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 09e70090cfdc..f9573d9a6d96 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -92,6 +92,7 @@ choice
92 config DEBUG_BCM2835 92 config DEBUG_BCM2835
93 bool "Kernel low-level debugging on BCM2835 PL011 UART" 93 bool "Kernel low-level debugging on BCM2835 PL011 UART"
94 depends on ARCH_BCM2835 94 depends on ARCH_BCM2835
95 select DEBUG_UART_PL01X
95 96
96 config DEBUG_CLPS711X_UART1 97 config DEBUG_CLPS711X_UART1
97 bool "Kernel low-level debugging messages via UART1" 98 bool "Kernel low-level debugging messages via UART1"
@@ -110,6 +111,7 @@ choice
110 config DEBUG_CNS3XXX 111 config DEBUG_CNS3XXX
111 bool "Kernel Kernel low-level debugging on Cavium Networks CNS3xxx" 112 bool "Kernel Kernel low-level debugging on Cavium Networks CNS3xxx"
112 depends on ARCH_CNS3XXX 113 depends on ARCH_CNS3XXX
114 select DEBUG_UART_PL01X
113 help 115 help
114 Say Y here if you want the debug print routines to direct 116 Say Y here if you want the debug print routines to direct
115 their output to the CNS3xxx UART0. 117 their output to the CNS3xxx UART0.
@@ -177,6 +179,7 @@ choice
177 config DEBUG_HIGHBANK_UART 179 config DEBUG_HIGHBANK_UART
178 bool "Kernel low-level debugging messages via Highbank UART" 180 bool "Kernel low-level debugging messages via Highbank UART"
179 depends on ARCH_HIGHBANK 181 depends on ARCH_HIGHBANK
182 select DEBUG_UART_PL01X
180 help 183 help
181 Say Y here if you want the debug print routines to direct 184 Say Y here if you want the debug print routines to direct
182 their output to the UART on Highbank based devices. 185 their output to the UART on Highbank based devices.
@@ -191,6 +194,7 @@ choice
191 config DEBUG_IMX23_UART 194 config DEBUG_IMX23_UART
192 bool "i.MX23 Debug UART" 195 bool "i.MX23 Debug UART"
193 depends on SOC_IMX23 196 depends on SOC_IMX23
197 select DEBUG_UART_PL01X
194 help 198 help
195 Say Y here if you want kernel low-level debugging support 199 Say Y here if you want kernel low-level debugging support
196 on i.MX23. 200 on i.MX23.
@@ -212,6 +216,7 @@ choice
212 config DEBUG_IMX28_UART 216 config DEBUG_IMX28_UART
213 bool "i.MX28 Debug UART" 217 bool "i.MX28 Debug UART"
214 depends on SOC_IMX28 218 depends on SOC_IMX28
219 select DEBUG_UART_PL01X
215 help 220 help
216 Say Y here if you want kernel low-level debugging support 221 Say Y here if you want kernel low-level debugging support
217 on i.MX28. 222 on i.MX28.
@@ -362,6 +367,7 @@ choice
362 config DEBUG_NOMADIK_UART 367 config DEBUG_NOMADIK_UART
363 bool "Kernel low-level debugging messages via NOMADIK UART" 368 bool "Kernel low-level debugging messages via NOMADIK UART"
364 depends on ARCH_NOMADIK 369 depends on ARCH_NOMADIK
370 select DEBUG_UART_PL01X
365 help 371 help
366 Say Y here if you want kernel low-level debugging support 372 Say Y here if you want kernel low-level debugging support
367 on NOMADIK based platforms. 373 on NOMADIK based platforms.
@@ -377,6 +383,7 @@ choice
377 config DEBUG_NSPIRE_CX_UART 383 config DEBUG_NSPIRE_CX_UART
378 bool "Kernel low-level debugging via TI-NSPIRE PL011 UART" 384 bool "Kernel low-level debugging via TI-NSPIRE PL011 UART"
379 depends on ARCH_NSPIRE 385 depends on ARCH_NSPIRE
386 select DEBUG_UART_PL01X
380 help 387 help
381 Say Y here if you want kernel low-level debugging support 388 Say Y here if you want kernel low-level debugging support
382 on TI-NSPIRE CX models. 389 on TI-NSPIRE CX models.
@@ -467,6 +474,7 @@ choice
467 config DEBUG_REALVIEW_STD_PORT 474 config DEBUG_REALVIEW_STD_PORT
468 bool "RealView Default UART" 475 bool "RealView Default UART"
469 depends on ARCH_REALVIEW 476 depends on ARCH_REALVIEW
477 select DEBUG_UART_PL01X
470 help 478 help
471 Say Y here if you want the debug print routines to direct 479 Say Y here if you want the debug print routines to direct
472 their output to the serial port on RealView EB, PB11MP, PBA8 480 their output to the serial port on RealView EB, PB11MP, PBA8
@@ -475,6 +483,7 @@ choice
475 config DEBUG_REALVIEW_PB1176_PORT 483 config DEBUG_REALVIEW_PB1176_PORT
476 bool "RealView PB1176 UART" 484 bool "RealView PB1176 UART"
477 depends on MACH_REALVIEW_PB1176 485 depends on MACH_REALVIEW_PB1176
486 select DEBUG_UART_PL01X
478 help 487 help
479 Say Y here if you want the debug print routines to direct 488 Say Y here if you want the debug print routines to direct
480 their output to the standard serial port on the RealView 489 their output to the standard serial port on the RealView
@@ -706,6 +715,7 @@ choice
706 config DEBUG_U300_UART 715 config DEBUG_U300_UART
707 bool "Kernel low-level debugging messages via U300 UART0" 716 bool "Kernel low-level debugging messages via U300 UART0"
708 depends on ARCH_U300 717 depends on ARCH_U300
718 select DEBUG_UART_PL01X
709 help 719 help
710 Say Y here if you want the debug print routines to direct 720 Say Y here if you want the debug print routines to direct
711 their output to the uart port on U300 devices. 721 their output to the uart port on U300 devices.
@@ -731,6 +741,7 @@ choice
731 config DEBUG_VEXPRESS_UART0_CA9 741 config DEBUG_VEXPRESS_UART0_CA9
732 bool "Use PL011 UART0 at 0x10009000 (V2P-CA9 core tile)" 742 bool "Use PL011 UART0 at 0x10009000 (V2P-CA9 core tile)"
733 depends on ARCH_VEXPRESS 743 depends on ARCH_VEXPRESS
744 select DEBUG_UART_PL01X
734 help 745 help
735 This option selects UART0 at 0x10009000. Except for custom models, 746 This option selects UART0 at 0x10009000. Except for custom models,
736 this applies only to the V2P-CA9 tile. 747 this applies only to the V2P-CA9 tile.
@@ -738,6 +749,7 @@ choice
738 config DEBUG_VEXPRESS_UART0_RS1 749 config DEBUG_VEXPRESS_UART0_RS1
739 bool "Use PL011 UART0 at 0x1c090000 (RS1 complaint tiles)" 750 bool "Use PL011 UART0 at 0x1c090000 (RS1 complaint tiles)"
740 depends on ARCH_VEXPRESS 751 depends on ARCH_VEXPRESS
752 select DEBUG_UART_PL01X
741 help 753 help
742 This option selects UART0 at 0x1c090000. This applies to most 754 This option selects UART0 at 0x1c090000. This applies to most
743 of the tiles using the RS1 memory map, including all new A-class 755 of the tiles using the RS1 memory map, including all new A-class
@@ -746,6 +758,7 @@ choice
746 config DEBUG_VEXPRESS_UART0_CRX 758 config DEBUG_VEXPRESS_UART0_CRX
747 bool "Use PL011 UART0 at 0xb0090000 (Cortex-R compliant tiles)" 759 bool "Use PL011 UART0 at 0xb0090000 (Cortex-R compliant tiles)"
748 depends on ARCH_VEXPRESS && !MMU 760 depends on ARCH_VEXPRESS && !MMU
761 select DEBUG_UART_PL01X
749 help 762 help
750 This option selects UART0 at 0xb0090000. This is appropriate for 763 This option selects UART0 at 0xb0090000. This is appropriate for
751 Cortex-R series tiles and SMMs, such as Cortex-R5 and Cortex-R7 764 Cortex-R series tiles and SMMs, such as Cortex-R5 and Cortex-R7
@@ -865,6 +878,11 @@ config DEBUG_LL_INCLUDE
865 default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1 878 default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1
866 default "mach/debug-macro.S" 879 default "mach/debug-macro.S"
867 880
881config DEBUG_UART_PL01X
882 def_bool ARCH_EP93XX || \
883 ARCH_INTEGRATOR || \
884 ARCH_VERSATILE
885
868config DEBUG_UART_8250 886config DEBUG_UART_8250
869 def_bool ARCH_DOVE || ARCH_EBSA110 || \ 887 def_bool ARCH_DOVE || ARCH_EBSA110 || \
870 (FOOTBRIDGE && !DEBUG_DC21285_PORT) || \ 888 (FOOTBRIDGE && !DEBUG_DC21285_PORT) || \
@@ -877,17 +895,30 @@ config DEBUG_UART_PHYS
877 default 0x01c28000 if DEBUG_SUNXI_UART0 895 default 0x01c28000 if DEBUG_SUNXI_UART0
878 default 0x01c28400 if DEBUG_SUNXI_UART1 896 default 0x01c28400 if DEBUG_SUNXI_UART1
879 default 0x03010fe0 if ARCH_RPC 897 default 0x03010fe0 if ARCH_RPC
898 default 0x10009000 if DEBUG_REALVIEW_STD_PORT || DEBUG_CNS3XXX || \
899 DEBUG_VEXPRESS_UART0_CA9
900 default 0x1010c000 if DEBUG_REALVIEW_PB1176_PORT
880 default 0x10124000 if DEBUG_RK3X_UART0 901 default 0x10124000 if DEBUG_RK3X_UART0
881 default 0x10126000 if DEBUG_RK3X_UART1 902 default 0x10126000 if DEBUG_RK3X_UART1
903 default 0x101f1000 if ARCH_VERSATILE
904 default 0x101fb000 if DEBUG_NOMADIK_UART
905 default 0x16000000 if ARCH_INTEGRATOR
906 default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1
882 default 0x20060000 if DEBUG_RK29_UART0 907 default 0x20060000 if DEBUG_RK29_UART0
883 default 0x20064000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2 908 default 0x20064000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
884 default 0x20068000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3 909 default 0x20068000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
910 default 0x20201000 if DEBUG_BCM2835
885 default 0x40090000 if ARCH_LPC32XX 911 default 0x40090000 if ARCH_LPC32XX
886 default 0x40100000 if DEBUG_PXA_UART1 912 default 0x40100000 if DEBUG_PXA_UART1
887 default 0x42000000 if ARCH_GEMINI 913 default 0x42000000 if ARCH_GEMINI
888 default 0x7c0003f8 if FOOTBRIDGE 914 default 0x7c0003f8 if FOOTBRIDGE
889 default 0x80230000 if DEBUG_PICOXCELL_UART 915 default 0x80230000 if DEBUG_PICOXCELL_UART
890 default 0x90020000 if DEBUG_NSPIRE_CLASSIC_UART 916 default 0x80070000 if DEBUG_IMX23_UART
917 default 0x80074000 if DEBUG_IMX28_UART
918 default 0x808c0000 if ARCH_EP93XX
919 default 0x90020000 if DEBUG_NSPIRE_CLASSIC_UART || DEBUG_NSPIRE_CX_UART
920 default 0xb0090000 if DEBUG_VEXPRESS_UART0_CRX
921 default 0xc0013000 if DEBUG_U300_UART
891 default 0xc8000000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN 922 default 0xc8000000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
892 default 0xc8000003 if ARCH_IXP4XX && CPU_BIG_ENDIAN 923 default 0xc8000003 if ARCH_IXP4XX && CPU_BIG_ENDIAN
893 default 0xd0012000 if DEBUG_MVEBU_UART 924 default 0xd0012000 if DEBUG_MVEBU_UART
@@ -900,23 +931,34 @@ config DEBUG_UART_PHYS
900 default 0xfe800000 if ARCH_IOP32X 931 default 0xfe800000 if ARCH_IOP32X
901 default 0xffc02000 if DEBUG_SOCFPGA_UART 932 default 0xffc02000 if DEBUG_SOCFPGA_UART
902 default 0xffd82340 if ARCH_IOP13XX 933 default 0xffd82340 if ARCH_IOP13XX
934 default 0xfff36000 if DEBUG_HIGHBANK_UART
903 default 0xfffff700 if ARCH_IOP33X 935 default 0xfffff700 if ARCH_IOP33X
904 depends on DEBUG_UART_8250 936 depends on DEBUG_UART_8250 || DEBUG_UART_PL01X
905 937
906config DEBUG_UART_VIRT 938config DEBUG_UART_VIRT
907 hex "Virtual base address of debug UART" 939 hex "Virtual base address of debug UART"
908 default 0xe0010fe0 if ARCH_RPC 940 default 0xe0010fe0 if ARCH_RPC
909 default 0xf0000be0 if ARCH_EBSA110 941 default 0xf0000be0 if ARCH_EBSA110
942 default 0xf0009000 if DEBUG_CNS3XXX
943 default 0xf01fb000 if DEBUG_NOMADIK_UART
944 default 0xf0201000 if DEBUG_BCM2835
945 default 0xf11f1000 if ARCH_VERSATILE
946 default 0xf1600000 if ARCH_INTEGRATOR
910 default 0xf1c28000 if DEBUG_SUNXI_UART0 947 default 0xf1c28000 if DEBUG_SUNXI_UART0
911 default 0xf1c28400 if DEBUG_SUNXI_UART1 948 default 0xf1c28400 if DEBUG_SUNXI_UART1
912 default 0xf2100000 if DEBUG_PXA_UART1 949 default 0xf2100000 if DEBUG_PXA_UART1
913 default 0xf4090000 if ARCH_LPC32XX 950 default 0xf4090000 if ARCH_LPC32XX
914 default 0xf4200000 if ARCH_GEMINI 951 default 0xf4200000 if ARCH_GEMINI
952 default 0xf8009000 if DEBUG_VEXPRESS_UART0_CA9
953 default 0xf8090000 if DEBUG_VEXPRESS_UART0_RS1
954 default 0xfb009000 if DEBUG_REALVIEW_STD_PORT
955 default 0xfb10c000 if DEBUG_REALVIEW_PB1176_PORT
915 default 0xfd012000 if ARCH_MV78XX0 956 default 0xfd012000 if ARCH_MV78XX0
916 default 0xfde12000 if ARCH_DOVE 957 default 0xfde12000 if ARCH_DOVE
917 default 0xfe012000 if ARCH_ORION5X 958 default 0xfe012000 if ARCH_ORION5X
918 default 0xfe017000 if DEBUG_MMP_UART2 959 default 0xfe017000 if DEBUG_MMP_UART2
919 default 0xfe018000 if DEBUG_MMP_UART3 960 default 0xfe018000 if DEBUG_MMP_UART3
961 default 0xfe100000 if DEBUG_IMX23_UART || DEBUG_IMX28_UART
920 default 0xfe230000 if DEBUG_PICOXCELL_UART 962 default 0xfe230000 if DEBUG_PICOXCELL_UART
921 default 0xfe800000 if ARCH_IOP32X 963 default 0xfe800000 if ARCH_IOP32X
922 default 0xfeb24000 if DEBUG_RK3X_UART0 964 default 0xfeb24000 if DEBUG_RK3X_UART0
@@ -927,13 +969,17 @@ config DEBUG_UART_VIRT
927 default 0xfed68000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3 969 default 0xfed68000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
928 default 0xfec02000 if DEBUG_SOCFPGA_UART 970 default 0xfec02000 if DEBUG_SOCFPGA_UART
929 default 0xfed12000 if ARCH_KIRKWOOD 971 default 0xfed12000 if ARCH_KIRKWOOD
972 default 0xfedc0000 if ARCH_EP93XX
930 default 0xfee003f8 if FOOTBRIDGE 973 default 0xfee003f8 if FOOTBRIDGE
931 default 0xfee20000 if DEBUG_NSPIRE_CLASSIC_UART 974 default 0xfee20000 if DEBUG_NSPIRE_CLASSIC_UART || DEBUG_NSPIRE_CX_UART
975 default 0xfee36000 if DEBUG_HIGHBANK_UART
932 default 0xfee82340 if ARCH_IOP13XX 976 default 0xfee82340 if ARCH_IOP13XX
933 default 0xfef00000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN 977 default 0xfef00000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
934 default 0xfef00003 if ARCH_IXP4XX && CPU_BIG_ENDIAN 978 default 0xfef00003 if ARCH_IXP4XX && CPU_BIG_ENDIAN
935 default 0xfefff700 if ARCH_IOP33X 979 default 0xfefff700 if ARCH_IOP33X
936 depends on DEBUG_UART_8250 980 default 0xff003000 if DEBUG_U300_UART
981 default DEBUG_UART_PHYS if !MMU
982 depends on DEBUG_UART_8250 || DEBUG_UART_PL01X
937 983
938config DEBUG_UART_8250_SHIFT 984config DEBUG_UART_8250_SHIFT
939 int "Register offset shift for the 8250 debug UART" 985 int "Register offset shift for the 8250 debug UART"