ARM: debug: provide 8250 debug uart phys/virt address configuration options
Move the definition of the UART register addresses out of the platform specific header file into the Kconfig files. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
@@ -10,20 +10,4 @@
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_MVEBU_UART_ALTERNATE
|
||||
#define ARMADA_370_XP_REGS_PHYS_BASE 0xf1000000
|
||||
#else
|
||||
#define ARMADA_370_XP_REGS_PHYS_BASE 0xd0000000
|
||||
#endif
|
||||
|
||||
#define ARMADA_370_XP_REGS_VIRT_BASE 0xfec00000
|
||||
|
||||
.macro addruart, rp, rv, tmp
|
||||
ldr \rp, =ARMADA_370_XP_REGS_PHYS_BASE
|
||||
ldr \rv, =ARMADA_370_XP_REGS_VIRT_BASE
|
||||
orr \rp, \rp, #0x00012000
|
||||
orr \rv, \rv, #0x00012000
|
||||
.endm
|
||||
|
||||
#include <asm/hardware/debug-8250.S>
|
||||
|
@@ -8,7 +8,7 @@
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_NSPIRE_CX_UART
|
||||
#define NSPIRE_EARLY_UART_PHYS_BASE 0x90020000
|
||||
#define NSPIRE_EARLY_UART_VIRT_BASE 0xfee20000
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
ldr \rv, =(NSPIRE_EARLY_UART_VIRT_BASE) @ virtual base address
|
||||
.endm
|
||||
|
||||
|
||||
#ifdef CONFIG_DEBUG_NSPIRE_CX_UART
|
||||
#include <asm/hardware/debug-pl01x.S>
|
||||
#endif
|
||||
|
||||
|
@@ -10,23 +10,4 @@
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_DEBUG_PXA_UART1)
|
||||
#define PXA_UART_REG_PHYS_BASE 0x40100000
|
||||
#define PXA_UART_REG_VIRT_BASE 0xf2100000
|
||||
#elif defined(CONFIG_DEBUG_MMP_UART2)
|
||||
#define PXA_UART_REG_PHYS_BASE 0xd4017000
|
||||
#define PXA_UART_REG_VIRT_BASE 0xfe017000
|
||||
#elif defined(CONFIG_DEBUG_MMP_UART3)
|
||||
#define PXA_UART_REG_PHYS_BASE 0xd4018000
|
||||
#define PXA_UART_REG_VIRT_BASE 0xfe018000
|
||||
#else
|
||||
#error "Select uart for DEBUG_LL"
|
||||
#endif
|
||||
|
||||
.macro addruart, rp, rv, tmp
|
||||
ldr \rp, =PXA_UART_REG_PHYS_BASE
|
||||
ldr \rv, =PXA_UART_REG_VIRT_BASE
|
||||
.endm
|
||||
|
||||
#include <asm/hardware/debug-8250.S>
|
||||
|
@@ -9,33 +9,4 @@
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_DEBUG_RK29_UART0)
|
||||
#define ROCKCHIP_UART_DEBUG_PHYS_BASE 0x20060000
|
||||
#define ROCKCHIP_UART_DEBUG_VIRT_BASE 0xfed60000
|
||||
#elif defined(CONFIG_DEBUG_RK29_UART1)
|
||||
#define ROCKCHIP_UART_DEBUG_PHYS_BASE 0x20064000
|
||||
#define ROCKCHIP_UART_DEBUG_VIRT_BASE 0xfed64000
|
||||
#elif defined(CONFIG_DEBUG_RK29_UART2)
|
||||
#define ROCKCHIP_UART_DEBUG_PHYS_BASE 0x20068000
|
||||
#define ROCKCHIP_UART_DEBUG_VIRT_BASE 0xfed68000
|
||||
#elif defined(CONFIG_DEBUG_RK3X_UART0)
|
||||
#define ROCKCHIP_UART_DEBUG_PHYS_BASE 0x10124000
|
||||
#define ROCKCHIP_UART_DEBUG_VIRT_BASE 0xfeb24000
|
||||
#elif defined(CONFIG_DEBUG_RK3X_UART1)
|
||||
#define ROCKCHIP_UART_DEBUG_PHYS_BASE 0x10126000
|
||||
#define ROCKCHIP_UART_DEBUG_VIRT_BASE 0xfeb26000
|
||||
#elif defined(CONFIG_DEBUG_RK3X_UART2)
|
||||
#define ROCKCHIP_UART_DEBUG_PHYS_BASE 0x20064000
|
||||
#define ROCKCHIP_UART_DEBUG_VIRT_BASE 0xfed64000
|
||||
#elif defined(CONFIG_DEBUG_RK3X_UART3)
|
||||
#define ROCKCHIP_UART_DEBUG_PHYS_BASE 0x20068000
|
||||
#define ROCKCHIP_UART_DEBUG_VIRT_BASE 0xfed68000
|
||||
#endif
|
||||
|
||||
.macro addruart, rp, rv, tmp
|
||||
ldr \rp, =ROCKCHIP_UART_DEBUG_PHYS_BASE
|
||||
ldr \rv, =ROCKCHIP_UART_DEBUG_VIRT_BASE
|
||||
.endm
|
||||
|
||||
#include <asm/hardware/debug-8250.S>
|
||||
|
@@ -9,18 +9,4 @@
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_DEBUG_SUNXI_UART0)
|
||||
#define SUNXI_UART_DEBUG_PHYS_BASE 0x01c28000
|
||||
#define SUNXI_UART_DEBUG_VIRT_BASE 0xf1c28000
|
||||
#elif defined(CONFIG_DEBUG_SUNXI_UART1)
|
||||
#define SUNXI_UART_DEBUG_PHYS_BASE 0x01c28400
|
||||
#define SUNXI_UART_DEBUG_VIRT_BASE 0xf1c28400
|
||||
#endif
|
||||
|
||||
.macro addruart, rp, rv, tmp
|
||||
ldr \rp, =SUNXI_UART_DEBUG_PHYS_BASE
|
||||
ldr \rv, =SUNXI_UART_DEBUG_VIRT_BASE
|
||||
.endm
|
||||
|
||||
#include <asm/hardware/debug-8250.S>
|
||||
|
Reference in New Issue
Block a user