linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] ARM: at91: debug: add lan966 support
@ 2022-05-13  7:50 Kavyasree Kotagiri
  2022-05-13  9:09 ` Michael Walle
  0 siblings, 1 reply; 3+ messages in thread
From: Kavyasree Kotagiri @ 2022-05-13  7:50 UTC (permalink / raw)
  To: linux, linus.walleij, alexandre.belloni, michael
  Cc: linux-arm-kernel, linux-kernel, UNGLinuxDriver,
	Kavyasree.Kotagiri, Manohar.Puri

Add support for low-level debugging on FLEXCOM USART of
LAN966 SoC.

Signed-off-by: Kavyasree Kotagiri <kavyasree.kotagiri@microchip.com>
---
 arch/arm/Kconfig.debug | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 0c9497d549e3..b8a2364df9c1 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -210,6 +210,26 @@ choice
 		  Say Y here if you want kernel low-level debugging support
 		  on the FLEXCOM3 port of SAMA7G5.
 
+	config DEBUG_AT91_LAN966_FLEXCOM
+		bool "Kernel low-level debugging on LAN966 FLEXCOM USART"
+		select DEBUG_AT91_UART
+		depends on SOC_LAN966x
+		help
+		Say Y here if you want kernel low-level debugging support
+		on the FLEXCOM port of LAN966.
+
+		DEBUG_UART_PHYS | DEBUG_UART_VIRT
+
+		0xe0040200      | 0xfd040200     | FLEXCOM0
+		0xe0044200      | 0xfd044200     | FLEXCOM1
+		0xe0060200      | 0xfd060200     | FLEXCOM2
+		0xe0064200      | 0xfd064200     | FLEXCOM3
+		0xe0070200      | 0xfd070200     | FLEXCOM4
+
+		By default, enabling FLEXCOM3 port. Based on requirement, use
+		DEBUG_UART_PHYS and DEBUG_UART_VIRT configurations from above
+		table.
+
 	config DEBUG_BCM2835
 		bool "Kernel low-level debugging on BCM2835 PL011 UART"
 		depends on ARCH_BCM2835 && ARCH_MULTI_V6
@@ -1685,6 +1705,7 @@ config DEBUG_UART_PHYS
 	default 0xd4017000 if DEBUG_MMP_UART2
 	default 0xd4018000 if DEBUG_MMP_UART3
 	default 0xe0000000 if DEBUG_SPEAR13XX
+	default 0xe0064200 if DEBUG_AT91_LAN966_FLEXCOM
 	default 0xe1824200 if DEBUG_AT91_SAMA7G5_FLEXCOM3
 	default 0xe4007000 if DEBUG_HIP04_UART
 	default 0xe6c40000 if DEBUG_RMOBILE_SCIFA0
@@ -1805,6 +1826,7 @@ config DEBUG_UART_VIRT
 	default 0xfb10c000 if DEBUG_REALVIEW_PB1176_PORT
 	default 0xfcfe8600 if DEBUG_BCM63XX_UART
 	default 0xfd000000 if DEBUG_SPEAR3XX || DEBUG_SPEAR13XX
+	default 0xfd064200 if DEBUG_AT91_LAN966_FLEXCOM
 	default 0xfd531000 if DEBUG_STIH41X_SBC_ASC1
 	default 0xfd883000 if DEBUG_ALPINE_UART0
 	default 0xfdd32000 if DEBUG_STIH41X_ASC2
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v3] ARM: at91: debug: add lan966 support
  2022-05-13  7:50 [PATCH v3] ARM: at91: debug: add lan966 support Kavyasree Kotagiri
@ 2022-05-13  9:09 ` Michael Walle
  2022-05-13 11:48   ` Nicolas Ferre
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Walle @ 2022-05-13  9:09 UTC (permalink / raw)
  To: Kavyasree Kotagiri
  Cc: linux, linus.walleij, alexandre.belloni, linux-arm-kernel,
	linux-kernel, UNGLinuxDriver, Manohar.Puri

Am 2022-05-13 09:50, schrieb Kavyasree Kotagiri:
> Add support for low-level debugging on FLEXCOM USART of
> LAN966 SoC.
> 
> Signed-off-by: Kavyasree Kotagiri <kavyasree.kotagiri@microchip.com>
> ---
>  arch/arm/Kconfig.debug | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
> 
> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
> index 0c9497d549e3..b8a2364df9c1 100644
> --- a/arch/arm/Kconfig.debug
> +++ b/arch/arm/Kconfig.debug
> @@ -210,6 +210,26 @@ choice
>  		  Say Y here if you want kernel low-level debugging support
>  		  on the FLEXCOM3 port of SAMA7G5.
> 
> +	config DEBUG_AT91_LAN966_FLEXCOM
> +		bool "Kernel low-level debugging on LAN966 FLEXCOM USART"
> +		select DEBUG_AT91_UART
> +		depends on SOC_LAN966x

depends on SOC_LAN966

With that fixed:
Reviewed-by: Michael Walle <michael@walle.cc>
Tested-by: Michael Walle <michael@walle.cc>

-michael

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v3] ARM: at91: debug: add lan966 support
  2022-05-13  9:09 ` Michael Walle
@ 2022-05-13 11:48   ` Nicolas Ferre
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Ferre @ 2022-05-13 11:48 UTC (permalink / raw)
  To: Michael Walle, Kavyasree Kotagiri
  Cc: linux, linus.walleij, alexandre.belloni, linux-arm-kernel,
	linux-kernel, UNGLinuxDriver, Manohar.Puri

On 13/05/2022 at 11:09, Michael Walle wrote:
> Am 2022-05-13 09:50, schrieb Kavyasree Kotagiri:
>> Add support for low-level debugging on FLEXCOM USART of
>> LAN966 SoC.
>>
>> Signed-off-by: Kavyasree Kotagiri <kavyasree.kotagiri@microchip.com>

Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>

And queued in at91-soc for 5.19.

Thanks Kavyasree and Michael!
Regards,
   Nicolas


>> ---
>>   arch/arm/Kconfig.debug | 22 ++++++++++++++++++++++
>>   1 file changed, 22 insertions(+)
>>
>> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
>> index 0c9497d549e3..b8a2364df9c1 100644
>> --- a/arch/arm/Kconfig.debug
>> +++ b/arch/arm/Kconfig.debug
>> @@ -210,6 +210,26 @@ choice
>>                  Say Y here if you want kernel low-level debugging support
>>                  on the FLEXCOM3 port of SAMA7G5.
>>
>> +     config DEBUG_AT91_LAN966_FLEXCOM
>> +             bool "Kernel low-level debugging on LAN966 FLEXCOM USART"
>> +             select DEBUG_AT91_UART
>> +             depends on SOC_LAN966x
> 
> depends on SOC_LAN966
> 
> With that fixed:
> Reviewed-by: Michael Walle <michael@walle.cc>
> Tested-by: Michael Walle <michael@walle.cc>
> 
> -michael
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel


-- 
Nicolas Ferre

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-13 11:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13  7:50 [PATCH v3] ARM: at91: debug: add lan966 support Kavyasree Kotagiri
2022-05-13  9:09 ` Michael Walle
2022-05-13 11:48   ` Nicolas Ferre

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).