Path: blob/master/arch/arm/mach-footbridge/include/mach/debug-macro.S
17531 views
/* arch/arm/mach-footbridge/include/mach/debug-macro.S1*2* Debugging macro include header3*4* Copyright (C) 1994-1999 Russell King5* Moved from linux/arch/arm/kernel/debug.S by Ben Dooks6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License version 2 as9* published by the Free Software Foundation.10*11*/1213#include <asm/hardware/dec21285.h>1415#ifndef CONFIG_DEBUG_DC21285_PORT16/* For NetWinder debugging */17.macro addruart, rp, rv18mov \rp, #0x000003f819orr \rv, \rp, #0xff000000 @ virtual20orr \rp, \rp, #0x7c000000 @ physical21.endm2223#define UART_SHIFT 024#define FLOW_CONTROL25#include <asm/hardware/debug-8250.S>2627#else28#include <mach/hardware.h>29/* For EBSA285 debugging */30.equ dc21285_high, ARMCSR_BASE & 0xff00000031.equ dc21285_low, ARMCSR_BASE & 0x00ffffff3233.macro addruart, rp, rv34.if dc21285_low35mov \rp, #dc21285_low36.else37mov \rp, #038.endif39orr \rv, \rp, #dc21285_high40orr \rp, \rp, #0x4200000041.endm4243.macro senduart,rd,rx44str \rd, [\rx, #0x160] @ UARTDR45.endm4647.macro busyuart,rd,rx481001: ldr \rd, [\rx, #0x178] @ UARTFLG49tst \rd, #1 << 350bne 1001b51.endm5253.macro waituart,rd,rx54.endm55#endif565758