* [PATCH v2] ARM: debug: add UART early console support for MSTAR SoCs
@ 2021-05-04 17:03 Romain Perier
2021-05-05 11:37 ` Linus Walleij
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Romain Perier @ 2021-05-04 17:03 UTC (permalink / raw)
To: Russell King, Arnd Bergmann
Cc: Krzysztof Kozlowski, Linus Walleij, Alain VOLMAT, Kefeng Wang,
Rob Herring, Uwe Kleine-König, linux-arm-kernel,
Daniel Palmer, Mohammed Billoo, Daniel Palmer
This adds the debug_ll uart for the PM UART found on armv7-based MStar
SoCs.
Signed-off-by: Romain Perier <romain.perier@gmail.com>
Acked-by: Daniel Palmer <daniel@thingy.jp>
---
Changes since v1:
- Renamed to DEBUG_MSTARV7_PMUART, so it matches the arch name
- Improved the Kconfig description
- Added Daniel's Acked-by
---
arch/arm/Kconfig.debug | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 36016497b1b3..1c673762ce7c 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -607,6 +607,14 @@ choice
when u-boot hands over to the kernel, the system
silently crashes, with no serial output at all.
+ config DEBUG_MSTARV7_PMUART
+ bool "Kernel low-level debugging messages via MSTARV7 PM UART"
+ depends on ARCH_MSTARV7
+ select DEBUG_UART_8250
+ help
+ Say Y here if you want kernel low-level debugging support
+ for MSTAR ARMv7-based platforms on PM UART.
+
config DEBUG_MT6589_UART0
bool "Mediatek mt6589 UART0"
depends on ARCH_MEDIATEK
@@ -1605,6 +1613,7 @@ config DEBUG_UART_PHYS
default 0x18000400 if DEBUG_BCM_HR2
default 0x18023000 if DEBUG_BCM_IPROC_UART3
default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1
+ default 0x1f221000 if DEBUG_MSTARV7_PMUART
default 0x20001000 if DEBUG_HIP01_UART
default 0x20060000 if DEBUG_RK29_UART0
default 0x20064000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
@@ -1722,6 +1731,7 @@ config DEBUG_UART_VIRT
default 0xf0100000 if DEBUG_DIGICOLOR_UA0
default 0xf01fb000 if DEBUG_NOMADIK_UART
default 0xf0201000 if DEBUG_BCM2835 || DEBUG_BCM2836
+ default 0xf0221000 if DEBUG_MSTARV7_PMUART
default 0xf1000300 if DEBUG_BCM_5301X
default 0xf1000400 if DEBUG_BCM_HR2
default 0xf1002000 if DEBUG_MT8127_UART0
@@ -1827,6 +1837,7 @@ config DEBUG_UART_8250_SHIFT
default 0 if DEBUG_FOOTBRIDGE_COM1 || ARCH_IOP32X || DEBUG_BCM_5301X || \
DEBUG_BCM_HR2 || DEBUG_OMAP7XXUART1 || DEBUG_OMAP7XXUART2 || \
DEBUG_OMAP7XXUART3
+ default 3 if DEBUG_MSTARV7_PMUART
default 2
config DEBUG_UART_8250_WORD
--
2.30.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] ARM: debug: add UART early console support for MSTAR SoCs
2021-05-04 17:03 [PATCH v2] ARM: debug: add UART early console support for MSTAR SoCs Romain Perier
@ 2021-05-05 11:37 ` Linus Walleij
2021-05-10 3:41 ` Mohammed Billoo
2021-05-22 3:38 ` Daniel Palmer
2 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2021-05-05 11:37 UTC (permalink / raw)
To: Romain Perier
Cc: Russell King, Arnd Bergmann, Krzysztof Kozlowski, Alain VOLMAT,
Kefeng Wang, Rob Herring, Uwe Kleine-König, Linux ARM,
Daniel Palmer, Mohammed Billoo, Daniel Palmer
On Tue, May 4, 2021 at 7:03 PM Romain Perier <romain.perier@gmail.com> wrote:
> This adds the debug_ll uart for the PM UART found on armv7-based MStar
> SoCs.
>
> Signed-off-by: Romain Perier <romain.perier@gmail.com>
> Acked-by: Daniel Palmer <daniel@thingy.jp>
> ---
>
> Changes since v1:
> - Renamed to DEBUG_MSTARV7_PMUART, so it matches the arch name
> - Improved the Kconfig description
> - Added Daniel's Acked-by
This looks good to me.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] ARM: debug: add UART early console support for MSTAR SoCs
2021-05-04 17:03 [PATCH v2] ARM: debug: add UART early console support for MSTAR SoCs Romain Perier
2021-05-05 11:37 ` Linus Walleij
@ 2021-05-10 3:41 ` Mohammed Billoo
2021-05-22 3:38 ` Daniel Palmer
2 siblings, 0 replies; 4+ messages in thread
From: Mohammed Billoo @ 2021-05-10 3:41 UTC (permalink / raw)
To: Romain Perier
Cc: Russell King, Arnd Bergmann, Krzysztof Kozlowski, Linus Walleij,
Alain VOLMAT, Kefeng Wang, Rob Herring, Uwe Kleine-König,
linux-arm-kernel, Daniel Palmer, Daniel Palmer
Hi Romain,
On Tue, May 4, 2021 at 1:03 PM Romain Perier <romain.perier@gmail.com> wrote:
>
> This adds the debug_ll uart for the PM UART found on armv7-based MStar
> SoCs.
>
> Signed-off-by: Romain Perier <romain.perier@gmail.com>
> Acked-by: Daniel Palmer <daniel@thingy.jp>
> ---
>
> Changes since v1:
> - Renamed to DEBUG_MSTARV7_PMUART, so it matches the arch name
> - Improved the Kconfig description
> - Added Daniel's Acked-by
I tested this on my board and can get early printks with this config
option enabled.
Tested-by: Mohammed Billoo <mohammed.billoo@gmail.com>
--
Mohammed Billoo
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] ARM: debug: add UART early console support for MSTAR SoCs
2021-05-04 17:03 [PATCH v2] ARM: debug: add UART early console support for MSTAR SoCs Romain Perier
2021-05-05 11:37 ` Linus Walleij
2021-05-10 3:41 ` Mohammed Billoo
@ 2021-05-22 3:38 ` Daniel Palmer
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Palmer @ 2021-05-22 3:38 UTC (permalink / raw)
To: Romain Perier
Cc: Russell King, Arnd Bergmann, Krzysztof Kozlowski, Linus Walleij,
Alain VOLMAT, Kefeng Wang, Rob Herring, Uwe Kleine-König,
linux-arm-kernel, Mohammed Billoo, Daniel Palmer
Hi Romain,
On Wed, 5 May 2021 at 02:03, Romain Perier <romain.perier@gmail.com> wrote:
>
> This adds the debug_ll uart for the PM UART found on armv7-based MStar
> SoCs.
>
> Signed-off-by: Romain Perier <romain.perier@gmail.com>
> Acked-by: Daniel Palmer <daniel@thingy.jp>
> ---
>
> Changes since v1:
> - Renamed to DEBUG_MSTARV7_PMUART, so it matches the arch name
> - Improved the Kconfig description
> - Added Daniel's Acked-by
>
> ---
> arch/arm/Kconfig.debug | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
> index 36016497b1b3..1c673762ce7c 100644
> --- a/arch/arm/Kconfig.debug
> +++ b/arch/arm/Kconfig.debug
> @@ -607,6 +607,14 @@ choice
> when u-boot hands over to the kernel, the system
> silently crashes, with no serial output at all.
>
> + config DEBUG_MSTARV7_PMUART
> + bool "Kernel low-level debugging messages via MSTARV7 PM UART"
> + depends on ARCH_MSTARV7
> + select DEBUG_UART_8250
> + help
> + Say Y here if you want kernel low-level debugging support
> + for MSTAR ARMv7-based platforms on PM UART.
> +
> config DEBUG_MT6589_UART0
> bool "Mediatek mt6589 UART0"
> depends on ARCH_MEDIATEK
> @@ -1605,6 +1613,7 @@ config DEBUG_UART_PHYS
> default 0x18000400 if DEBUG_BCM_HR2
> default 0x18023000 if DEBUG_BCM_IPROC_UART3
> default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1
> + default 0x1f221000 if DEBUG_MSTARV7_PMUART
> default 0x20001000 if DEBUG_HIP01_UART
> default 0x20060000 if DEBUG_RK29_UART0
> default 0x20064000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
> @@ -1722,6 +1731,7 @@ config DEBUG_UART_VIRT
> default 0xf0100000 if DEBUG_DIGICOLOR_UA0
> default 0xf01fb000 if DEBUG_NOMADIK_UART
> default 0xf0201000 if DEBUG_BCM2835 || DEBUG_BCM2836
> + default 0xf0221000 if DEBUG_MSTARV7_PMUART
> default 0xf1000300 if DEBUG_BCM_5301X
> default 0xf1000400 if DEBUG_BCM_HR2
> default 0xf1002000 if DEBUG_MT8127_UART0
> @@ -1827,6 +1837,7 @@ config DEBUG_UART_8250_SHIFT
> default 0 if DEBUG_FOOTBRIDGE_COM1 || ARCH_IOP32X || DEBUG_BCM_5301X || \
> DEBUG_BCM_HR2 || DEBUG_OMAP7XXUART1 || DEBUG_OMAP7XXUART2 || \
> DEBUG_OMAP7XXUART3
> + default 3 if DEBUG_MSTARV7_PMUART
> default 2
>
> config DEBUG_UART_8250_WORD
> --
> 2.30.2
>
Applied[0] with Linus' Reviewed-by and Mohammend's Tested-by.
Thanks,
Daniel
0 - https://github.com/linux-chenxing/linux/tree/mstar_for_v5_14
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-05-22 3:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-04 17:03 [PATCH v2] ARM: debug: add UART early console support for MSTAR SoCs Romain Perier
2021-05-05 11:37 ` Linus Walleij
2021-05-10 3:41 ` Mohammed Billoo
2021-05-22 3:38 ` Daniel Palmer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).