Skip to contentSkip to conversation

ARM: debug: Add Iproc UART3 debug addresses

PATCH Superseded Clément Péron 2 participants 4 messages May 30, 2018 Arm (32-bit)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: debug: Add Iproc UART3 debug addresses

From: Cl?ment Peron <[email protected]>

Broadcom Iproc SoCs typically use the UART3 for debug/console, provide a known good location for that.

---
 arch/arm/Kconfig.debug | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
arch/arm/Kconfig.debug +11 -1
index 199ebc1c4538..fa6fa1dae94d 100644
@@ -207,6 +207,14 @@ choice
 		depends on ARCH_BCM_HR2
 		select DEBUG_UART_8250
 
+	config DEBUG_BCM_IPROC_UART3
+		bool "Kernel low-level debugging on BCM IPROC UART3"
+		depends on ARCH_BCM_CYGNUS
+		select DEBUG_UART_8250
+		help
+		  Say Y here if you want the debug print routines to direct
+		  their output to the third serial port on these devices.
+
 	config DEBUG_BCM_KONA_UART
 		bool "Kernel low-level debugging messages via BCM KONA UART"
 		depends on ARCH_BCM_MOBILE
@@ -1564,6 +1572,7 @@ config DEBUG_UART_PHYS
 	default 0x20068000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
 	default 0x20201000 if DEBUG_BCM2835
 	default 0x3f201000 if DEBUG_BCM2836
+	default 0x18023000 if DEBUG_BCM_IPROC_UART3
 	default 0x3e000000 if DEBUG_BCM_KONA_UART
 	default 0x4000e400 if DEBUG_LL_UART_EFM32
 	default 0x40028000 if DEBUG_AT91_SAMV7_USART1
@@ -1730,6 +1739,7 @@ config DEBUG_UART_VIRT
 	default 0xfe018000 if DEBUG_MMP_UART3
 	default 0xfe100000 if DEBUG_IMX23_UART || DEBUG_IMX28_UART
 	default 0xfe230000 if DEBUG_PICOXCELL_UART
+	default 0xf1023000 if DEBUG_BCM_IPROC_UART3
 	default 0xfe300000 if DEBUG_BCM_KONA_UART
 	default 0xfe800000 if ARCH_IOP32X
 	default 0xfeb00000 if DEBUG_HI3620_UART || DEBUG_HIX5HD2_UART
@@ -1791,7 +1801,7 @@ config DEBUG_UART_8250_WORD
 		DEBUG_KEYSTONE_UART0 || DEBUG_KEYSTONE_UART1 || \
 		DEBUG_ALPINE_UART0 || \
 		DEBUG_DAVINCI_DMx_UART0 || DEBUG_DAVINCI_DA8XX_UART1 || \
-		DEBUG_DAVINCI_DA8XX_UART2 || \
+		DEBUG_DAVINCI_DA8XX_UART2 || DEBUG_BCM_IPROC_UART3 || \
 		DEBUG_BCM_KONA_UART || DEBUG_RK32_UART2
 
 config DEBUG_UART_8250_PALMCHIP
Signature · 1 line
2.17.0
#1 lore raw

Hi Cl?ment,

Quoted 30 lines · Cl?ment P?ron

From: Cl?ment Peron <[email protected]>

Broadcom Iproc SoCs typically use the UART3 for debug/console, provide a known good location for that.

---
 arch/arm/Kconfig.debug | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
arch/arm/Kconfig.debug +8 -0
index 199ebc1c4538..fa6fa1dae94d 100644
@@ -207,6 +207,14 @@ choice
 		depends on ARCH_BCM_HR2
 		select DEBUG_UART_8250
 
+	config DEBUG_BCM_IPROC_UART3
+		bool "Kernel low-level debugging on BCM IPROC UART3"
+		depends on ARCH_BCM_CYGNUS
+		select DEBUG_UART_8250
+		help
+		  Say Y here if you want the debug print routines to direct
+		  their output to the third serial port on these devices.
+
 	config DEBUG_BCM_KONA_UART
 		bool "Kernel low-level debugging messages via BCM KONA UART"
 		depends on ARCH_BCM_MOBILE

arch/arm/Kconfig.debug config DEBUG_UART_PHYS · line 1575

Quoted 4 lines
arch/arm/Kconfig.debug +1 -0
@@ -1564,6 +1572,7 @@ config DEBUG_UART_PHYS
 	default 0x20068000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
 	default 0x20201000 if DEBUG_BCM2835
 	default 0x3f201000 if DEBUG_BCM2836
+	default 0x18023000 if DEBUG_BCM_IPROC_UART3

Entries are sorted by the address value. Except that DEBUG_BCM_KONA_UART should be listed above DEBUG_BCM2836.

arch/arm/Kconfig.debug config DEBUG_UART_VIRT · line 1742

Quoted 8 lines
arch/arm/Kconfig.debug +1 -0
 	default 0x3e000000 if DEBUG_BCM_KONA_UART
 	default 0x4000e400 if DEBUG_LL_UART_EFM32
 	default 0x40028000 if DEBUG_AT91_SAMV7_USART1
@@ -1730,6 +1739,7 @@ config DEBUG_UART_VIRT
 	default 0xfe018000 if DEBUG_MMP_UART3
 	default 0xfe100000 if DEBUG_IMX23_UART || DEBUG_IMX28_UART
 	default 0xfe230000 if DEBUG_PICOXCELL_UART
+	default 0xf1023000 if DEBUG_BCM_IPROC_UART3

Same here.

arch/arm/Kconfig.debug config DEBUG_UART_8250_WORD · line 1805

Quoted 10 lines
arch/arm/Kconfig.debug +1 -1
 	default 0xfe300000 if DEBUG_BCM_KONA_UART
 	default 0xfe800000 if ARCH_IOP32X
 	default 0xfeb00000 if DEBUG_HI3620_UART || DEBUG_HIX5HD2_UART
@@ -1791,7 +1801,7 @@ config DEBUG_UART_8250_WORD
 		DEBUG_KEYSTONE_UART0 || DEBUG_KEYSTONE_UART1 || \
 		DEBUG_ALPINE_UART0 || \
 		DEBUG_DAVINCI_DMx_UART0 || DEBUG_DAVINCI_DA8XX_UART1 || \
-		DEBUG_DAVINCI_DA8XX_UART2 || \
+		DEBUG_DAVINCI_DA8XX_UART2 || DEBUG_BCM_IPROC_UART3 || \
 		DEBUG_BCM_KONA_UART || DEBUG_RK32_UART2

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#2 lore raw

Hi Baruch,

Quoted 21 lines · Baruch Siach

Hi Cl?ment,

Quoted 18 lines · Cl?ment P?ron

From: Cl?ment Peron <[email protected]>

Broadcom Iproc SoCs typically use the UART3 for debug/console, provide a known good location for that.

---
 arch/arm/Kconfig.debug | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
arch/arm/Kconfig.debug +0 -0
index 199ebc1c4538..fa6fa1dae94d 100644
@@ -207,6 +207,14 @@ choice
              depends on ARCH_BCM_HR2
              select DEBUG_UART_8250
 
Quoted 6 lines

arch/arm/Kconfig.debug choice

Quoted 6 lines
arch/arm/Kconfig.debug +6 -0
+     config DEBUG_BCM_IPROC_UART3
+             bool "Kernel low-level debugging on BCM IPROC UART3"
+             depends on ARCH_BCM_CYGNUS
+             select DEBUG_UART_8250
+             help
+               Say Y here if you want the debug print routines to

direct

Quoted 4 lines

arch/arm/Kconfig.debug choice

Quoted 4 lines
arch/arm/Kconfig.debug +2 -0
+               their output to the third serial port on these devices.
+
      config DEBUG_BCM_KONA_UART
              bool "Kernel low-level debugging messages via BCM KONA

UART"

Quoted 9 lines

arch/arm/Kconfig.debug config DEBUG_UART_PHYS · line 1575

Quoted 6 lines
arch/arm/Kconfig.debug +1 -0
              depends on ARCH_BCM_MOBILE
@@ -1564,6 +1572,7 @@ config DEBUG_UART_PHYS
      default 0x20068000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
      default 0x20201000 if DEBUG_BCM2835
      default 0x3f201000 if DEBUG_BCM2836
+     default 0x18023000 if DEBUG_BCM_IPROC_UART3

Entries are sorted by the address value. Except that DEBUG_BCM_KONA_UART should be listed above DEBUG_BCM2836.

Indeed, can I fix the DEBUG_BCM_KONA_UART entry in the same commit ?

Quoted 24 lines

arch/arm/Kconfig.debug config DEBUG_UART_VIRT · line 1742

Quoted 8 lines
arch/arm/Kconfig.debug +1 -0
      default 0x3e000000 if DEBUG_BCM_KONA_UART
      default 0x4000e400 if DEBUG_LL_UART_EFM32
      default 0x40028000 if DEBUG_AT91_SAMV7_USART1
@@ -1730,6 +1739,7 @@ config DEBUG_UART_VIRT
      default 0xfe018000 if DEBUG_MMP_UART3
      default 0xfe100000 if DEBUG_IMX23_UART || DEBUG_IMX28_UART
      default 0xfe230000 if DEBUG_PICOXCELL_UART
+     default 0xf1023000 if DEBUG_BCM_IPROC_UART3

Same here.

arch/arm/Kconfig.debug config DEBUG_UART_8250_WORD · line 1805

Quoted 10 lines
arch/arm/Kconfig.debug +1 -1
      default 0xfe300000 if DEBUG_BCM_KONA_UART
      default 0xfe800000 if ARCH_IOP32X
      default 0xfeb00000 if DEBUG_HI3620_UART || DEBUG_HIX5HD2_UART
@@ -1791,7 +1801,7 @@ config DEBUG_UART_8250_WORD
              DEBUG_KEYSTONE_UART0 || DEBUG_KEYSTONE_UART1 || \
              DEBUG_ALPINE_UART0 || \
              DEBUG_DAVINCI_DMx_UART0 || DEBUG_DAVINCI_DA8XX_UART1 || \
-             DEBUG_DAVINCI_DA8XX_UART2 || \
+             DEBUG_DAVINCI_DA8XX_UART2 || DEBUG_BCM_IPROC_UART3 || \
              DEBUG_BCM_KONA_UART || DEBUG_RK32_UART2

baruch

Quoted 2 lines

--
http://baruch.siach.name/blog/ ~. .~ Tk Open

Systems

=}------------------------------------------------ooO--U--Ooo------------{=

Quoted 1 line

- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

Clement

#3 lore raw

Hi Cl?ment,

Quoted 42 lines · Cl?ment P?ron
Quoted 19 lines · Baruch Siach
Quoted 18 lines · Cl?ment P?ron

From: Cl?ment Peron <[email protected]>

Broadcom Iproc SoCs typically use the UART3 for debug/console, provide a known good location for that.

---
 arch/arm/Kconfig.debug | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
arch/arm/Kconfig.debug +0 -0
index 199ebc1c4538..fa6fa1dae94d 100644
@@ -207,6 +207,14 @@ choice
              depends on ARCH_BCM_HR2
              select DEBUG_UART_8250
 
Quoted 6 lines

arch/arm/Kconfig.debug choice

Quoted 6 lines
arch/arm/Kconfig.debug +6 -0
+     config DEBUG_BCM_IPROC_UART3
+             bool "Kernel low-level debugging on BCM IPROC UART3"
+             depends on ARCH_BCM_CYGNUS
+             select DEBUG_UART_8250
+             help
+               Say Y here if you want the debug print routines to

direct

Quoted 4 lines

arch/arm/Kconfig.debug choice

Quoted 4 lines
arch/arm/Kconfig.debug +2 -0
+               their output to the third serial port on these devices.
+
      config DEBUG_BCM_KONA_UART
              bool "Kernel low-level debugging messages via BCM KONA

UART"

Quoted 9 lines

arch/arm/Kconfig.debug config DEBUG_UART_PHYS · line 1575

Quoted 6 lines
arch/arm/Kconfig.debug +1 -0
              depends on ARCH_BCM_MOBILE
@@ -1564,6 +1572,7 @@ config DEBUG_UART_PHYS
      default 0x20068000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
      default 0x20201000 if DEBUG_BCM2835
      default 0x3f201000 if DEBUG_BCM2836
+     default 0x18023000 if DEBUG_BCM_IPROC_UART3

Entries are sorted by the address value. Except that DEBUG_BCM_KONA_UART should be listed above DEBUG_BCM2836.

Quoted 1 line

Indeed, can I fix the DEBUG_BCM_KONA_UART entry in the same commit ?

That is an unrelated fix, so a separate patch is preferred.

baruch

Quoted 21 lines
Quoted 21 lines

arch/arm/Kconfig.debug config DEBUG_UART_VIRT · line 1742

Quoted 8 lines
arch/arm/Kconfig.debug +1 -0
      default 0x3e000000 if DEBUG_BCM_KONA_UART
      default 0x4000e400 if DEBUG_LL_UART_EFM32
      default 0x40028000 if DEBUG_AT91_SAMV7_USART1
@@ -1730,6 +1739,7 @@ config DEBUG_UART_VIRT
      default 0xfe018000 if DEBUG_MMP_UART3
      default 0xfe100000 if DEBUG_IMX23_UART || DEBUG_IMX28_UART
      default 0xfe230000 if DEBUG_PICOXCELL_UART
+     default 0xf1023000 if DEBUG_BCM_IPROC_UART3

Same here.

Quoted 10 lines
arch/arm/Kconfig.debug +1 -1
      default 0xfe300000 if DEBUG_BCM_KONA_UART
      default 0xfe800000 if ARCH_IOP32X
      default 0xfeb00000 if DEBUG_HI3620_UART || DEBUG_HIX5HD2_UART
@@ -1791,7 +1801,7 @@ config DEBUG_UART_8250_WORD
              DEBUG_KEYSTONE_UART0 || DEBUG_KEYSTONE_UART1 || \
              DEBUG_ALPINE_UART0 || \
              DEBUG_DAVINCI_DMx_UART0 || DEBUG_DAVINCI_DA8XX_UART1 || \
-             DEBUG_DAVINCI_DA8XX_UART2 || \
+             DEBUG_DAVINCI_DA8XX_UART2 || DEBUG_BCM_IPROC_UART3 || \
              DEBUG_BCM_KONA_UART || DEBUG_RK32_UART2
Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -