2007-02-16 22:36:55 +08:00
|
|
|
/*
|
2008-08-05 23:14:15 +08:00
|
|
|
* arch/arm/mach-ns9xxx/include/mach/debug-macro.S
|
2007-02-16 22:36:55 +08:00
|
|
|
* Copyright (C) 2006 by Digi International Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
2008-08-05 23:14:15 +08:00
|
|
|
#include <mach/hardware.h>
|
2007-02-16 22:36:55 +08:00
|
|
|
|
2008-08-05 23:14:15 +08:00
|
|
|
#include <mach/regs-board-a9m9750dev.h>
|
2007-02-16 22:36:55 +08:00
|
|
|
|
2010-02-02 06:26:53 +08:00
|
|
|
.macro addruart, rx, tmp
|
2007-02-16 22:36:55 +08:00
|
|
|
mrc p15, 0, \rx, c1, c0
|
|
|
|
tst \rx, #1
|
|
|
|
ldreq \rx, =NS9XXX_CSxSTAT_PHYS(0)
|
|
|
|
ldrne \rx, =io_p2v(NS9XXX_CSxSTAT_PHYS(0))
|
|
|
|
.endm
|
|
|
|
|
|
|
|
#define UART_SHIFT 2
|
|
|
|
#include <asm/hardware/debug-8250.S>
|