Path: blob/master/arch/arm/mach-ixp4xx/include/mach/debug-macro.S
17646 views
/* arch/arm/mach-ixp4xx/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*/1112.macro addruart, rp, rv13#ifdef __ARMEB__14mov \rp, #3 @ Uart regs are at off set of 3 if15@ byte writes used - Big Endian.16#else17mov \rp, #018#endif19orr \rv, \rp, #0xff000000 @ virtual20orr \rv, \rv, #0x00b0000021orr \rp, \rp, #0xc8000000 @ physical22.endm2324#define UART_SHIFT 225#include <asm/hardware/debug-8250.S>262728