8250.S (dd0a11815a339d6deeea8357574f8126a8404c92) 8250.S (6ef4e47926b2008c6a1736fe4e3b2817e3b95463)
1/*
2 * arch/arm/include/debug/8250.S
3 *
4 * Copyright (C) 1994-2013 Russell King
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#include <linux/serial_reg.h>
11
12 .macro addruart, rp, rv, tmp
13 ldr \rp, =CONFIG_DEBUG_UART_PHYS
14 ldr \rv, =CONFIG_DEBUG_UART_VIRT
15 .endm
16
17#ifdef CONFIG_DEBUG_UART_8250_WORD
18 .macro store, rd, rx:vararg
1/*
2 * arch/arm/include/debug/8250.S
3 *
4 * Copyright (C) 1994-2013 Russell King
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#include <linux/serial_reg.h>
11
12 .macro addruart, rp, rv, tmp
13 ldr \rp, =CONFIG_DEBUG_UART_PHYS
14 ldr \rv, =CONFIG_DEBUG_UART_VIRT
15 .endm
16
17#ifdef CONFIG_DEBUG_UART_8250_WORD
18 .macro store, rd, rx:vararg
19 ARM_BE8(rev \rd, \rd)
19 str \rd, \rx
20 str \rd, \rx
21 ARM_BE8(rev \rd, \rd)
20 .endm
21
22 .macro load, rd, rx:vararg
23 ldr \rd, \rx
22 .endm
23
24 .macro load, rd, rx:vararg
25 ldr \rd, \rx
26 ARM_BE8(rev \rd, \rd)
24 .endm
25#else
26 .macro store, rd, rx:vararg
27 strb \rd, \rx
28 .endm
29
30 .macro load, rd, rx:vararg
31 ldrb \rd, \rx

--- 23 unchanged lines hidden ---
27 .endm
28#else
29 .macro store, rd, rx:vararg
30 strb \rd, \rx
31 .endm
32
33 .macro load, rd, rx:vararg
34 ldrb \rd, \rx

--- 23 unchanged lines hidden ---