[PATCH 2/4] ARM: S3C24XX: trim down debug uart handling
Heiko Stübner
heiko at sntech.de
Thu Apr 24 03:48:41 PDT 2014
Am Donnerstag, 24. April 2014, 11:34:55 schrieb Russell King - ARM Linux:
> On Thu, Apr 24, 2014 at 12:24:31PM +0200, Heiko Stübner wrote:
> > +choice
> > + prompt "S3C24XX low-level debugging port type"
> > + depends on DEBUG_LL && ARCH_S3C24XX
> > +
> > + config DEBUG_S3C24XX_UART_S3C2440
> > + bool "S3C2440 uart type"
> > + help
> > + Select this if you're debugging S3C2416, S3C2440, S3C2442,
> > + S3C2443 or S3C2450 SoCs.
> > +
> > + config DEBUG_S3C24XX_UART_S3C2410
> > + bool "S3C2410 uart type"
> > + help
> > + Select this if you're debugging S3C2410 or S3C2412 SoCs.
> > +endchoice
>
> Why does this need to be a separate choice statement? What's special
> about S3C24XX? Is there something wrong with the main choice statement
> just above this where everyone else lists their debugging UART?
The special case is that s3c24xx as architecture has two different uart types.
Everything else is the same so I didn't want to duplicate the s3c_debug_uartX
entries.
The other option would have been to duplicate these, like having
- s3c_debug_uart[0-3] for the more common s3c2440 type and
- s3c2410_debug_uart[0-3] for the named type
I guess, judging from your comment this would be better?
[or I'm just overlooking the obvious third way :-) ]
Heiko
More information about the linux-arm-kernel
mailing list