Re: [PATCH CFT v2] arm: omap1: Migrate debug_ll macros to use 8250.S

From: Aaro Koskinen
Date: Fri Jul 25 2014 - 15:46:10 EST


Hi,

On Fri, Jul 18, 2014 at 03:44:02PM +0100, Daniel Thompson wrote:
> The omap1's debug-macro.S is similar to the generic 8250 code. Compared to
> the 8520 code the omap1 macro automatically determines what UART to use
> based on breadcrumbs left by the bootloader and automatically copes with
> the eccentric register layout on OMAP7XX.
>
> This patch drops both these features and relies instead on the generic
> 8250 macros:
>
> 1. Dropping support for the bootloader breadcrumbs is identical to the
> way the migration was handled for OMAP2 (see 808b7e07464d...).
>
> 2. Support for OMAP7XX still exists but it must be configured by hand
> (DEBUG_OMAP7XXUART1/2/3) rather than handled at runtime.
>
> Signed-off-by: Daniel Thompson <daniel.thompson@xxxxxxxxxx>

Tested-by: Aaro Koskinen <aaro.koskinen@xxxxxx>

I tested this on OMAP1510. The generic code works, though there will be
some more work for the user. Maybe that's acceptable if we want to get
rid of the asm file, since the use case is rare.

The patch still has couple typos, see comments below.

> Cc: Russell King <linux@xxxxxxxxxxxxxxxx>
> Cc: Tony Lindgren <tony@xxxxxxxxxxx>
> Cc: Arnd Bergmann <arnd.bergmann@xxxxxxxxxx>
> Cc: linux-omap@xxxxxxxxxxxxxxx
> ---
>
> Notes:
> Changes since v1:
>
> * Removed !ARCH_OMAP7XX from the DEBUG_OMAP1UART1/2/3 options
> (thanks to Aaro Koskinen)
>
> arch/arm/Kconfig.debug | 57 +++++++++++++-
> arch/arm/mach-omap1/include/mach/debug-macro.S | 101 -------------------------
> 2 files changed, 56 insertions(+), 102 deletions(-)
> delete mode 100644 arch/arm/mach-omap1/include/mach/debug-macro.S
>
> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
> index 6f9664a..762b3ed 100644
> --- a/arch/arm/Kconfig.debug
> +++ b/arch/arm/Kconfig.debug
> @@ -463,6 +463,30 @@ choice
> Say Y here if you want kernel low-level debugging support
> on TI-NSPIRE CX models.
>
> + config DEBUG_OMAP1UART1
> + bool "Kernel low-level debugging via OMAP1 UART1"
> + depends on ARCH_OMAP1
> + select DEBUG_UART_8250
> + help
> + Say Y here if you want kernel low-level debugging support
> + on OMAP1 based platforms (expect OMAP730) on the UART1.
^^^^^^

This should be "except", also repeated below for
ports 2-3.

> + config DEBUG_OMAP1UART2
> + bool "Kernel low-level debugging via OMAP1 UART2"
> + depends on ARCH_OMAP1
> + select DEBUG_UART_8250
> + help
> + Say Y here if you want kernel low-level debugging support
> + on OMAP1 based platforms (expect OMAP730) on the UART2.
> +
> + config DEBUG_OMAP1UART3
> + bool "Kernel low-level debugging via OMAP1 UART3"
> + depends on ARCH_OMAP1
> + select DEBUG_UART_8250
> + help
> + Say Y here if you want kernel low-level debugging support
> + on OMAP1 based platforms (expect OMAP730) on the UART3.

A.
--
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/