Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
awilliam
GitHub Repository: awilliam/linux-vfio
Path: blob/master/arch/arm/mach-orion5x/include/mach/debug-macro.S
10820 views
1
/*
2
* arch/arm/mach-orion5x/include/mach/debug-macro.S
3
*
4
* Debugging macro include header
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 2 as
8
* published by the Free Software Foundation.
9
*/
10
11
#include <mach/orion5x.h>
12
13
.macro addruart, rp, rv
14
ldr \rp, =ORION5X_REGS_PHYS_BASE
15
ldr \rv, =ORION5X_REGS_VIRT_BASE
16
orr \rp, \rp, #0x00012000
17
orr \rv, \rv, #0x00012000
18
.endm
19
20
#define UART_SHIFT 2
21
#include <asm/hardware/debug-8250.S>
22
23