debug-macro.S 554 字节
Newer Older
1
/*
2
 * include/asm-arm/arch-orion5x/debug-macro.S
3 4 5 6 7 8 9 10
 *
 * Debugging macro include header
 *
 * 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.
*/

11
#include <asm/arch/orion5x.h>
12

13
	.macro  addruart,rx
14 15
	mrc	p15, 0, \rx, c1, c0
	tst	\rx, #1					@ MMU enabled?
16 17
	ldreq	\rx, =ORION5X_REGS_PHYS_BASE
	ldrne	\rx, =ORION5X_REGS_VIRT_BASE
18
	orr	\rx, \rx, #0x00012000
19 20 21 22
	.endm

#define UART_SHIFT	2
#include <asm/hardware/debug-8250.S>