aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2011-08-16 17:28:54 -0400
committerWill Deacon <will.deacon@arm.com>2011-10-17 05:02:52 -0400
commit952aeeb2880a6fd14e15a0dc402a3ffd25f8e689 (patch)
tree8c9194d5ad0283e890f911e3cd02c2c46f43b2d6 /arch
parentf73765fcb8bb79e80af58059441eb931679e68c0 (diff)
ARM: plat-samsung: use Kconfig choice for debug UART selection
Now that the DEBUG_LL UART can be selected by a Kconfig choice, convert the Samsung UART selection to use a set of bools rather than an int. Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/Kconfig.debug45
-rw-r--r--arch/arm/plat-samsung/Kconfig7
2 files changed, 40 insertions, 12 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index b3dc1fa30848..caf16e7030f9 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -128,6 +128,39 @@ choice
128 Say Y here if you want the debug print routines to direct 128 Say Y here if you want the debug print routines to direct
129 their output to the second serial port on these devices. 129 their output to the second serial port on these devices.
130 130
131 config DEBUG_S3C_UART0
132 depends on PLAT_SAMSUNG
133 bool "Use S3C UART 0 for low-level debug"
134 help
135 Say Y here if you want the debug print routines to direct
136 their output to UART 0. The port must have been initialised
137 by the boot-loader before use.
138
139 The uncompressor code port configuration is now handled
140 by CONFIG_S3C_LOWLEVEL_UART_PORT.
141
142 config DEBUG_S3C_UART1
143 depends on PLAT_SAMSUNG
144 bool "Use S3C UART 1 for low-level debug"
145 help
146 Say Y here if you want the debug print routines to direct
147 their output to UART 1. The port must have been initialised
148 by the boot-loader before use.
149
150 The uncompressor code port configuration is now handled
151 by CONFIG_S3C_LOWLEVEL_UART_PORT.
152
153 config DEBUG_S3C_UART2
154 depends on PLAT_SAMSUNG
155 bool "Use S3C UART 2 for low-level debug"
156 help
157 Say Y here if you want the debug print routines to direct
158 their output to UART 2. The port must have been initialised
159 by the boot-loader before use.
160
161 The uncompressor code port configuration is now handled
162 by CONFIG_S3C_LOWLEVEL_UART_PORT.
163
131endchoice 164endchoice
132 165
133config EARLY_PRINTK 166config EARLY_PRINTK
@@ -146,16 +179,4 @@ config OC_ETM
146 buffer driver that will allow you to collect traces of the 179 buffer driver that will allow you to collect traces of the
147 kernel code. 180 kernel code.
148 181
149config DEBUG_S3C_UART
150 depends on PLAT_SAMSUNG
151 int "S3C UART to use for low-level debug"
152 default "0"
153 help
154 Choice for UART for kernel low-level using S3C UARTS,
155 should be between zero and two. The port must have been
156 initialised by the boot-loader before use.
157
158 The uncompressor code port configuration is now handled
159 by CONFIG_S3C_LOWLEVEL_UART_PORT.
160
161endmenu 182endmenu
diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig
index b3e10659e4b8..49b14b1a7abe 100644
--- a/arch/arm/plat-samsung/Kconfig
+++ b/arch/arm/plat-samsung/Kconfig
@@ -367,4 +367,11 @@ config SAMSUNG_PD
367 help 367 help
368 Say Y here if you want to control Power Domain by Runtime PM. 368 Say Y here if you want to control Power Domain by Runtime PM.
369 369
370config DEBUG_S3C_UART
371 depends on PLAT_SAMSUNG
372 int
373 default "0" if DEBUG_S3C_UART0
374 default "1" if DEBUG_S3C_UART1
375 default "2" if DEBUG_S3C_UART2
376
370endif 377endif