[PATCH 1/2] ARM: Add inituart macro to initialize DEBUG_LL serial port based on the machine ID
Russell King - ARM Linux
linux at arm.linux.org.uk
Fri Feb 4 03:39:34 EST 2011
On Thu, Feb 03, 2011 at 05:22:07PM -0800, Tony Lindgren wrote:
> Allow machine specific init of the DEBUG_LL serial port. This is needed
> to debug kernels built with support for multiple machines compiled in
> without recompiling the kernel.
>
> As some SoCs need to use variables to store the port address and LSR
> register configuration, we must call inituart again after clearing
> the BSS.
>
> If variables are being used for for inituart and addruart, this setup
> won't work properly for debugging the uncompress code without patching
> arch/arm/boot/compressed/head.S for the machine in question.
Can't we just hard-configure the virtual/physical address at build
time and be done with it?
I've given up with the current state of affairs which tries to use the
platform ID to select the UART to use as it never seems to work, and I
have a couple of patches which hard-code the address at compile time -
one for the SDP4430 board and one for the LDP3430 board.
If it's complicated, then it probably won't work. Keep it simple.
That's especially true for debugging code, otherwise you need extra
debugging code to debug why the debugging code doesn't work.
More information about the linux-arm-kernel
mailing list