[PATCH 1/3] ARM: debug: use kconfig choice for selecting DEBUG_LL UART
Nicolas Pitre
nico at fluxnic.net
Fri Aug 19 11:49:10 EDT 2011
On Fri, 19 Aug 2011, Will Deacon wrote:
> On Fri, Aug 19, 2011 at 12:37:41PM +0100, Shawn Guo wrote:
> > On Fri, Aug 19, 2011 at 12:08:22PM +0100, Will Deacon wrote:
> > > @@ -74,7 +78,12 @@ config DEBUG_LL
> > >
> > > choice
> > > prompt "Kernel low-level debugging port"
> > > - depends on DEBUG_LL
> > > + depends on DEBUG_LL_UART && (FOOTBRIDGE || ARCH_CLPS711X || \
> > > + PLAT_SAMSUNG || ARCH_REALVIEW)
> >
> > We will have to list a lot of ARCH/PLAT symbols here. This is what
> > I meant overkilled actually.
>
> Ultimately, we will want to have all the platforms using this mechanism so
> this list of symbols could eventually be removed. I take your point though;
> so I'll leave the patch series as it is for now.
Well, ultimately I'd like to see something even better than that. We
should have the bootloader provide the required information to the
kernel for it to be able to send bytes to a debug device. It should be
rather simple, especially for a serial UART. All we need in that case
is:
- physical address of the transmit FIFO register
- physical address of the register indicating "FIFO full" with a
corresponding bit mask
- physical address of the register indicating "FIFO empty" with a
corresponding bit mask
The bootloader should be able to pass that info into an ATAG or a DT
node just fine.
But in the mean time, for legacy boards, the best we have is this
Kconfig approach.
Nicolas
More information about the linux-arm-kernel
mailing list