Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1521601

[PATCH v2 07/10] ARM: add low level debug uart for rk1108

From Andy Yan <andy.yan@rock-chips.com>
Newsgroups linux.kernel
Subject [PATCH v2 07/10] ARM: add low level debug uart for rk1108
Date 2016-11-14 13:20 +0100
Message-ID <sDooW-6ST-35@gated-at.bofh.it> (permalink)
References <sDo5A-6un-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


RK1108 UARTs are Synopsis DesignWare 8250 compatible.
Only with different register addresses.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Tested-by: Jacob Chen <jacob2.chen@rock-chips.com>
---

Changes in v2: None

 arch/arm/Kconfig.debug | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index d83f7c3..408540f 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -776,6 +776,30 @@ choice
 		  their output to the standard serial port on the RealView
 		  PB1176 platform.
 
+	config DEBUG_RK1108_UART0
+		bool "Kernel low-level debugging messages via Rockchip RK1108 UART0"
+		depends on ARCH_ROCKCHIP
+		select DEBUG_UART_8250
+		help
+		  Say Y here if you want kernel low-level debugging support
+                  on Rockchip RK1108 based platforms.
+
+	config DEBUG_RK1108_UART1
+		bool "Kernel low-level debugging messages via Rockchip RK1108 UART1"
+		depends on ARCH_ROCKCHIP
+		select DEBUG_UART_8250
+		help
+		  Say Y here if you want kernel low-level debugging support
+		  on Rockchip RK1108 based platforms.
+
+	config DEBUG_RK1108_UART2
+		bool "Kernel low-level debugging messages via Rockchip RK1108 UART2"
+		depends on ARCH_ROCKCHIP
+		select DEBUG_UART_8250
+		help
+		  Say Y here if you want kernel low-level debugging support
+		  on Rockchip RK1108 based platforms.
+
 	config DEBUG_RK29_UART0
 		bool "Kernel low-level debugging messages via Rockchip RK29 UART0"
 		depends on ARCH_ROCKCHIP
@@ -1465,6 +1489,9 @@ config DEBUG_UART_PHYS
 	default 0x10126000 if DEBUG_RK3X_UART1
 	default 0x101f1000 if DEBUG_VERSATILE
 	default 0x101fb000 if DEBUG_NOMADIK_UART
+	default 0x10210000 if DEBUG_RK1108_UART2
+	default 0x10220000 if DEBUG_RK1108_UART1
+	default 0x10230000 if DEBUG_RK1108_UART0
 	default 0x11002000 if DEBUG_MT8127_UART0
 	default 0x11006000 if DEBUG_MT6589_UART0
 	default 0x11009000 if DEBUG_MT8135_UART3
@@ -1563,6 +1590,9 @@ config DEBUG_UART_PHYS
 
 config DEBUG_UART_VIRT
 	hex "Virtual base address of debug UART"
+	default 0xc881f000 if DEBUG_RK1108_UART2
+	default 0xc8821000 if DEBUG_RK1108_UART1
+	default 0xc8912000 if DEBUG_RK1108_UART0
 	default 0xe0000a00 if DEBUG_NETX_UART
 	default 0xe0010fe0 if ARCH_RPC
 	default 0xf0000be0 if ARCH_EBSA110
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 00/10] Add basic support for Rockchip RK1108 SOC Andy Yan <andy.yan@rock-chips.com> - 2016-11-14 13:00 +0100
  [PATCH v2 03/10] clk: rockchip: add dt-binding header for rk1108 Andy Yan <andy.yan@rock-chips.com> - 2016-11-14 13:10 +0100
    Re: [PATCH v2 03/10] clk: rockchip: add dt-binding header for rk1108 Heiko Stuebner <heiko@sntech.de> - 2016-11-15 10:50 +0100
      Re: [PATCH v2 03/10] clk: rockchip: add dt-binding header for rk1108 Shawn Lin <shawn.lin@rock-chips.com> - 2016-11-16 01:50 +0100
  [PATCH v2 02/10] dt-bindings: add documentation for rk1108 cru Andy Yan <andy.yan@rock-chips.com> - 2016-11-14 13:10 +0100
    Re: [PATCH v2 02/10] dt-bindings: add documentation for rk1108 cru Heiko Stuebner <heiko@sntech.de> - 2016-11-15 10:40 +0100
      Re: [PATCH v2 02/10] dt-bindings: add documentation for rk1108 cru Shawn Lin <shawn.lin@rock-chips.com> - 2016-11-16 01:50 +0100
  [PATCH v2 01/10] dt-bindings: rockchip-dw-mshc: add RK1108 dw-mshc description Andy Yan <andy.yan@rock-chips.com> - 2016-11-14 13:10 +0100
    Re: [PATCH v2 01/10] dt-bindings: rockchip-dw-mshc: add RK1108 dw-mshc description Heiko Stuebner <heiko@sntech.de> - 2016-11-15 00:20 +0100
  [PATCH v2 04/10] clk: rockchip: add clock controller for rk1108 Andy Yan <andy.yan@rock-chips.com> - 2016-11-14 13:10 +0100
    Re: [PATCH v2 04/10] clk: rockchip: add clock controller for rk1108 Heiko Stuebner <heiko@sntech.de> - 2016-11-15 11:40 +0100
  [PATCH v2 09/10] ARM: rockchip: enable support for RK1108 SoC Andy Yan <andy.yan@rock-chips.com> - 2016-11-14 13:20 +0100
    Re: [PATCH v2 09/10] ARM: rockchip: enable support for RK1108 SoC Heiko Stuebner <heiko@sntech.de> - 2016-11-15 12:40 +0100
  [PATCH v2 07/10] ARM: add low level debug uart for rk1108 Andy Yan <andy.yan@rock-chips.com> - 2016-11-14 13:20 +0100
    Re: [PATCH v2 07/10] ARM: add low level debug uart for rk1108 Heiko Stuebner <heiko@sntech.de> - 2016-11-15 12:40 +0100
  [PATCH v2 06/10] pinctrl: rockchip: add support for rk1108 Andy Yan <andy.yan@rock-chips.com> - 2016-11-14 13:20 +0100
    Re: [PATCH v2 06/10] pinctrl: rockchip: add support for rk1108 Heiko Stuebner <heiko@sntech.de> - 2016-11-15 00:30 +0100
    Re: [PATCH v2 06/10] pinctrl: rockchip: add support for rk1108 Linus Walleij <linus.walleij@linaro.org> - 2016-11-15 10:40 +0100
  [PATCH v2 10/10] ARM: dts: rockchip: add rockchip RK1108 Evaluation board Andy Yan <andy.yan@rock-chips.com> - 2016-11-14 13:20 +0100
    Re: [PATCH v2 10/10] ARM: dts: rockchip: add rockchip RK1108 Evaluation board Heiko Stuebner <heiko@sntech.de> - 2016-11-16 13:00 +0100
  [PATCH v2 08/10] ARM: dts: add basic support for Rockchip RK1108 SOC Andy Yan <andy.yan@rock-chips.com> - 2016-11-14 13:20 +0100
    Re: [PATCH v2 08/10] ARM: dts: add basic support for Rockchip RK1108 SOC Heiko Stuebner <heiko@sntech.de> - 2016-11-15 12:50 +0100
      Re: [PATCH v2 08/10] ARM: dts: add basic support for Rockchip RK1108 SOC Heiko Stuebner <heiko@sntech.de> - 2016-11-16 13:00 +0100
  [PATCH v2 05/10] dt-bindings: add documentation for rk1108 pinctrl Andy Yan <andy.yan@rock-chips.com> - 2016-11-14 13:20 +0100
    Re: [PATCH v2 05/10] dt-bindings: add documentation for rk1108 pinctrl Heiko Stuebner <heiko@sntech.de> - 2016-11-15 00:20 +0100
    Re: [PATCH v2 05/10] dt-bindings: add documentation for rk1108 pinctrl Linus Walleij <linus.walleij@linaro.org> - 2016-11-15 10:40 +0100

csiph-web