aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include/debug/nspire.S
blob: 3e9329aa17b95c29be40bda22a18247ce334f5e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 *	linux/arch/arm/include/debug/nspire.S
 *
 *	Copyright (C) 2013 Daniel Tang <tangrs@tangrs.id.au>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2, as
 * 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

.macro	addruart, rp, rv, tmp
	ldr \rp, =(NSPIRE_EARLY_UART_PHYS_BASE)		@ physical base address
	ldr \rv, =(NSPIRE_EARLY_UART_VIRT_BASE)		@ virtual base address
.endm

#include <asm/hardware/debug-pl01x.S>
#endif

#ifdef CONFIG_DEBUG_NSPIRE_CLASSIC_UART
#include <asm/hardware/debug-8250.S>
#endif