[PATCH 1/3] ARM: debug: use kconfig choice for selecting DEBUG_LL UART

Will Deacon will.deacon at arm.com
Fri Sep 16 07:41:41 EDT 2011


Hi Stephen,

On Thu, Sep 15, 2011 at 06:34:27PM +0100, Stephen Boyd wrote:
> On 08/16/11 14:41, Will Deacon wrote:
> > +choice
> > +	prompt "Kernel low-level debugging port"
> > +	depends on DEBUG_LL
> > +
> > +	config DEBUG_DC21285_PORT
> > +		bool "Kernel low-level debugging messages via footbridge serial port"
> > +		depends on FOOTBRIDGE
> > +		help
> > +		  Say Y here if you want the debug print routines to direct
> > +		  their output to the serial port in the DC21285 (Footbridge).
> > +		  Saying N will cause the debug messages to appear on the first
> > +		  16550 serial port.
> > +
> > +	config DEBUG_CLPS711X_UART2
> > +		bool "Kernel low-level debugging messages via UART2"
> > +		depends on ARCH_CLPS711X
> > +		help
> > +		  Say Y here if you want the debug print routines to direct
> > +		  their output to the second serial port on these devices.
> > +		  Saying N will cause the debug messages to appear on the first
> > +		  serial port.
> 
> How would I unselect this UART2 config to get serial output on UART1? As
> far as I can tell there isn't an option for NONE in a choice menu.

Ah yes. This will need to be added as part of the platform updates to go via
Arnd. It should be easy enough just to have a DEBUG_CLPS711X_UART1 option,
for example, and the platform code will fall back to the first UART.

Will



More information about the linux-arm-kernel mailing list