[PATCH 1/2] ARM: vexpress: add debug UARTs to DEBUG_LL kconfig choice

Will Deacon will.deacon at arm.com
Sun Jul 8 12:00:51 EDT 2012


Pawel,

On Fri, Jul 06, 2012 at 02:25:54PM +0100, Will Deacon wrote:
> For what it's worth, here's the additional diff:

On the off-chance that you're thinking of picking this up, there's a small
correction below.

> diff --git a/arch/arm/mach-vexpress/include/mach/uncompress.h b/arch/arm/mach-vexpress/include/mach/uncompress.h
> index 7dab559..4dbb3ac 100644
> --- a/arch/arm/mach-vexpress/include/mach/uncompress.h
> +++ b/arch/arm/mach-vexpress/include/mach/uncompress.h
> @@ -22,36 +22,19 @@
>  #define AMBA_UART_CR(base)     (*(volatile unsigned char *)((base) + 0x30))
>  #define AMBA_UART_FR(base)     (*(volatile unsigned char *)((base) + 0x18))
>  
> +#ifdef CONFIG_DEBUG_VEXPRESS_CA9X4_UART
>  #define UART_BASE      0x10009000
> -#define UART_BASE_RS1  0x1c090000
> -
> -static unsigned long get_uart_base(void)
> -{
> -       unsigned long mpcore_periph;
> -
> -       /*
> -        * Make an educated guess regarding the memory map:
> -        * - the original A9 core tile, which has MPCore peripherals
> -        *   located at 0x1e000000, should use UART at 0x10009000
> -        * - all other (RS1 complaint) tiles use UART mapped
> -        *   at 0x1c090000
> -        */
> -       asm("mrc p15, 4, %0, c15, c0, 0" : "=r" (mpcore_periph));
> -
> -       if (mpcore_periph == 0x1e000000)
> -               return UART_BASE;
> -       else
> -               return UART_BASE_RS1;
> -}
> +#elif CONFIG_DEBUG_VEXPRESS_RS1_UART

This should of course be #elif defined(CONFIG...).

Will



More information about the linux-arm-kernel mailing list