From: shawnguo@kernel.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 2/3] ARM: debug: Add low level debug support for imx6sll
Date: Fri, 9 Mar 2018 09:19:10 +0800 [thread overview]
Message-ID: <20180309011908.GA3217@dragon> (raw)
In-Reply-To: <1520501697-22202-2-git-send-email-ping.bai@nxp.com>
On Thu, Mar 08, 2018 at 05:34:56PM +0800, Bai Ping wrote:
> Add low level debug support for i.MX6SLL.
>
> Signed-off-by: Bai Ping <ping.bai@nxp.com>
With earlycon support in place, I'm not sure we want to add more SoC
low-level debug port.
Shawn
> ---
> change v1->v2:
> - no
> change v2->v3:
> - no
> change v3->v4:
> - no
> ---
> arch/arm/Kconfig.debug | 9 +++++++++
> arch/arm/include/debug/imx-uart.h | 10 ++++++++++
> 2 files changed, 19 insertions(+)
>
> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
> index 78a6470..2197239 100644
> --- a/arch/arm/Kconfig.debug
> +++ b/arch/arm/Kconfig.debug
> @@ -451,6 +451,13 @@ choice
> Say Y here if you want kernel low-level debugging support
> on i.MX6SL.
>
> + config DEBUG_IMX6SLL_UART
> + bool "i.MX6SLL Debug UART"
> + depends on SOC_IMX6SLL
> + help
> + Say Y here if you want kernel low-level debugging support
> + on i.MX6SLL.
> +
> config DEBUG_IMX6SX_UART
> bool "i.MX6SX Debug UART"
> depends on SOC_IMX6SX
> @@ -1429,6 +1436,7 @@ config DEBUG_IMX_UART_PORT
> DEBUG_IMX53_UART || \
> DEBUG_IMX6Q_UART || \
> DEBUG_IMX6SL_UART || \
> + DEBUG_IMX6SLL_UART || \
> DEBUG_IMX6SX_UART || \
> DEBUG_IMX6UL_UART || \
> DEBUG_IMX7D_UART
> @@ -1483,6 +1491,7 @@ config DEBUG_LL_INCLUDE
> DEBUG_IMX53_UART ||\
> DEBUG_IMX6Q_UART || \
> DEBUG_IMX6SL_UART || \
> + DEBUG_IMX6SLL_UART || \
> DEBUG_IMX6SX_UART || \
> DEBUG_IMX6UL_UART || \
> DEBUG_IMX7D_UART
> diff --git a/arch/arm/include/debug/imx-uart.h b/arch/arm/include/debug/imx-uart.h
> index bce58e9..24e60ce 100644
> --- a/arch/arm/include/debug/imx-uart.h
> +++ b/arch/arm/include/debug/imx-uart.h
> @@ -81,6 +81,14 @@
> #define IMX6SL_UART_BASE_ADDR(n) IMX6SL_UART##n##_BASE_ADDR
> #define IMX6SL_UART_BASE(n) IMX6SL_UART_BASE_ADDR(n)
>
> +#define IMX6SLL_UART1_BASE_ADDR 0x02020000
> +#define IMX6SLL_UART2_BASE_ADDR 0x02024000
> +#define IMX6SLL_UART3_BASE_ADDR 0x02034000
> +#define IMX6SLL_UART4_BASE_ADDR 0x02018000
> +#define IMX6SLL_UART5_BASE_ADDR 0x021f4000
> +#define IMX6SLL_UART_BASE_ADDR(n) IMX6SLL_UART##n##_BASE_ADDR
> +#define IMX6SLL_UART_BASE(n) IMX6SLL_UART_BASE_ADDR(n)
> +
> #define IMX6SX_UART1_BASE_ADDR 0x02020000
> #define IMX6SX_UART2_BASE_ADDR 0x021e8000
> #define IMX6SX_UART3_BASE_ADDR 0x021ec000
> @@ -133,6 +141,8 @@
> #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6Q)
> #elif defined(CONFIG_DEBUG_IMX6SL_UART)
> #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SL)
> +#elif defined(CONFIG_DEBUG_IMX6SLL_UART)
> +#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SLL)
> #elif defined(CONFIG_DEBUG_IMX6SX_UART)
> #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SX)
> #elif defined(CONFIG_DEBUG_IMX6UL_UART)
> --
> 1.9.1
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2018-03-09 1:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-08 9:34 [PATCH v4 1/3] ARM: imx: Add basic msl support for imx6sll Bai Ping
2018-03-08 9:34 ` [PATCH v4 2/3] ARM: debug: Add low level debug " Bai Ping
2018-03-09 1:19 ` Shawn Guo [this message]
2018-03-09 5:12 ` Jacky Bai
2018-03-08 9:34 ` [PATCH v4 3/3] driver: clocksource: add gpt timer " Bai Ping
2018-03-09 1:29 ` Shawn Guo
2018-03-09 5:10 ` Jacky Bai
2018-03-09 1:23 ` [PATCH v4 1/3] ARM: imx: Add basic msl support " Shawn Guo
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=20180309011908.GA3217@dragon \
--to=shawnguo@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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.