dc21285.S 950 字节
Newer Older
1
/* arch/arm/mach-footbridge/include/mach/debug-macro.S
L
Linus Torvalds 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15
 *
 * Debugging macro include header
 *
 *  Copyright (C) 1994-1999 Russell King
 *  Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
 *
 * 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.
 *
*/

#include <asm/hardware/dec21285.h>

R
Russell King 已提交
16
#include <mach/hardware.h>
L
Linus Torvalds 已提交
17 18 19 20
	/* For EBSA285 debugging */
		.equ	dc21285_high, ARMCSR_BASE & 0xff000000
		.equ	dc21285_low,  ARMCSR_BASE & 0x00ffffff

21
		.macro	addruart, rp, rv, tmp
L
Linus Torvalds 已提交
22
		.if	dc21285_low
23 24 25
		mov	\rp, #dc21285_low
		.else
		mov	\rp, #0
L
Linus Torvalds 已提交
26
		.endif
R
Russell King 已提交
27 28
		orr	\rv, \rp, #dc21285_high
		orr	\rp, \rp, #0x42000000
L
Linus Torvalds 已提交
29 30 31 32 33 34 35 36 37 38 39 40 41 42
		.endm

		.macro	senduart,rd,rx
		str	\rd, [\rx, #0x160]	@ UARTDR
		.endm

		.macro	busyuart,rd,rx
1001:		ldr	\rd, [\rx, #0x178]	@ UARTFLG
		tst	\rd, #1 << 3
		bne	1001b
		.endm

		.macro	waituart,rd,rx
		.endm