All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@ti.com>
To: Hemant Pedanekar <hemantp@ti.com>
Cc: linux-omap@vger.kernel.org, tony@atomide.com
Subject: Re: [PATCH v4 4/4] TI816X: Add low level debug support
Date: Fri, 21 Jan 2011 15:51:07 -0800	[thread overview]
Message-ID: <87zkqtddec.fsf@ti.com> (raw)
In-Reply-To: <1294677487-18878-1-git-send-email-hemantp@ti.com> (Hemant Pedanekar's message of "Mon, 10 Jan 2011 22:08:07 +0530")

Hemant Pedanekar <hemantp@ti.com> writes:

> This patch adds support for low level debugging on TI816X boards. Currently the
> support for UART3 console on TI816X EVM is added.
>
> Signed-off-by: Hemant Pedanekar <hemantp@ti.com>

You can add the UART base addresses in this patch since this is the only
place they are needed/used.

Kevin

> ---
>  arch/arm/mach-omap2/include/mach/debug-macro.S |   12 ++++++++++++
>  arch/arm/plat-omap/include/plat/serial.h       |    3 +++
>  arch/arm/plat-omap/include/plat/uncompress.h   |    7 +++++++
>  3 files changed, 22 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/include/mach/debug-macro.S b/arch/arm/mach-omap2/include/mach/debug-macro.S
> index 6a4d413..e1b0f17 100644
> --- a/arch/arm/mach-omap2/include/mach/debug-macro.S
> +++ b/arch/arm/mach-omap2/include/mach/debug-macro.S
> @@ -69,6 +69,12 @@ omap_uart_lsr:	.word	0
>  		beq	34f			@ configure OMAP3UART4
>  		cmp	\rp, #OMAP4UART4	@ only on 44xx
>  		beq	44f			@ configure OMAP4UART4
> +		cmp	\rp, #TI816XUART1	@ ti816x UART offsets different
> +		beq	81f			@ configure UART1
> +		cmp	\rp, #TI816XUART2	@ ti816x UART offsets different
> +		beq	82f			@ configure UART2
> +		cmp	\rp, #TI816XUART3	@ ti816x UART offsets different
> +		beq	83f			@ configure UART3
>  		cmp	\rp, #ZOOM_UART		@ only on zoom2/3
>  		beq	95f			@ configure ZOOM_UART
>  
> @@ -91,6 +97,12 @@ omap_uart_lsr:	.word	0
>  		b	98f
>  44:		mov	\rp, #UART_OFFSET(OMAP4_UART4_BASE)
>  		b	98f
> +81:		mov	\rp, #UART_OFFSET(TI816X_UART1_BASE)
> +		b	98f
> +82:		mov	\rp, #UART_OFFSET(TI816X_UART2_BASE)
> +		b	98f
> +83:		mov	\rp, #UART_OFFSET(TI816X_UART3_BASE)
> +		b	98f
>  95:		ldr	\rp, =ZOOM_UART_BASE
>  		mrc	p15, 0, \rv, c1, c0
>  		tst	\rv, #1			@ MMU enabled?
> diff --git a/arch/arm/plat-omap/include/plat/serial.h b/arch/arm/plat-omap/include/plat/serial.h
> index 3c3c319..4102bf4 100644
> --- a/arch/arm/plat-omap/include/plat/serial.h
> +++ b/arch/arm/plat-omap/include/plat/serial.h
> @@ -86,6 +86,9 @@
>  #define OMAP4UART2		OMAP2UART2
>  #define OMAP4UART3		43
>  #define OMAP4UART4		44
> +#define TI816XUART1		81
> +#define TI816XUART2		82
> +#define TI816XUART3		83
>  #define ZOOM_UART		95		/* Only on zoom2/3 */
>  
>  /* This is only used by 8250.c for omap1510 */
> diff --git a/arch/arm/plat-omap/include/plat/uncompress.h b/arch/arm/plat-omap/include/plat/uncompress.h
> index ad98b85..30b891c 100644
> --- a/arch/arm/plat-omap/include/plat/uncompress.h
> +++ b/arch/arm/plat-omap/include/plat/uncompress.h
> @@ -93,6 +93,10 @@ static inline void flush(void)
>  #define DEBUG_LL_ZOOM(mach)						\
>  	_DEBUG_LL_ENTRY(mach, ZOOM_UART_BASE, ZOOM_PORT_SHIFT, ZOOM_UART)
>  
> +#define DEBUG_LL_TI816X(p, mach)					\
> +	_DEBUG_LL_ENTRY(mach, TI816X_UART##p##_BASE, OMAP_PORT_SHIFT,	\
> +		TI816XUART##p)
> +
>  static inline void __arch_decomp_setup(unsigned long arch_id)
>  {
>  	int port = 0;
> @@ -166,6 +170,9 @@ static inline void __arch_decomp_setup(unsigned long arch_id)
>  		DEBUG_LL_ZOOM(omap_zoom2);
>  		DEBUG_LL_ZOOM(omap_zoom3);
>  
> +		/* TI8168 base boards using UART3 */
> +		DEBUG_LL_TI816X(3, ti8168evm);
> +
>  	} while (0);
>  }

  reply	other threads:[~2011-01-21 23:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-10 16:38 [PATCH v4 4/4] TI816X: Add low level debug support Hemant Pedanekar
2011-01-21 23:51 ` Kevin Hilman [this message]
2011-01-22  2:13   ` Pedanekar, Hemant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zkqtddec.fsf@ti.com \
    --to=khilman@ti.com \
    --cc=hemantp@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.