Re: [PATCH 3/3] ARM: mach-moxart: add MOXA ART UART debug files
From: Jonas Jensen
Date: Fri Jun 14 2013 - 10:35:38 EST
Hi,
Thanks for the replies.
On 13 June 2013 00:56, Olof Johansson <olof@xxxxxxxxx> wrote:
>> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
>> index 1d41908..a0e4a32 100644
>> --- a/arch/arm/Kconfig.debug
>> +++ b/arch/arm/Kconfig.debug
>> @@ -422,6 +422,15 @@ choice
>> Say Y here if you want kernel low-level debugging support
>> on Allwinner A1X based platforms on the UART1.
>>
>> + config DEBUG_MOXART_UART0
>> + bool "Kernel low-level debugging messages via MOXART UART0"
>> + depends on ARCH_MOXART
>> + help
>> + Say Y here if you want kernel low-level debugging support
>> + on MOXART based platforms on the UART0.
>> + select this to make sure "putc" in arch/arm/boot/compressed/debug.S
>> + uses arch/arm/include/debug/moxart.S:s "addruart" macro
>
> Looks like the last two lines above are leftovers? It's not super-helpful for
> someone trying to figure out if they want this option or not; the first two
> lines covers that quite nicely.
Leftovers removed. I only added them because I spent some time
figuring out the call chain around putc.
>> +++ b/arch/arm/include/debug/moxart.S
>> @@ -0,0 +1,14 @@
>> +/* Copyright (C) 2013 Jonas Jensen <jonas.jensen@xxxxxxxxx>
>> + * This program is free software; you can redistribute it and/or modify it
>> + * under the terms of the GNU General Public License as published by the
>> + * Free Software Foundation; either version 2 of the License,
>> + * or (at your option) any later version. */
>> +
>> +#define MOXART_UART_DEBUG_PHYS_BASE 0x98200000
>> +
>> +.macro addruart, rp, rv, tmp
>> + ldr \rp, =MOXART_UART_DEBUG_PHYS_BASE @ physical
>
> You need to set rv here too.
Done. Used to be set with the IO_ADDRESS macro I worked so hard to
remove. Looking at other platforms, it seems accepted to set a
hardcoded value here.
Best regards,
Jonas
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/