treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152
[sfrench/cifs-2.6.git] / arch / arm / mach-w90x900 / include / mach / regs-serial.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * arch/arm/mach-w90x900/include/mach/regs-serial.h
4  *
5  * Copyright (c) 2008 Nuvoton technology corporation
6  * All rights reserved.
7  *
8  * Wan ZongShun <mcuos.com@gmail.com>
9  *
10  * Based on arch/arm/mach-s3c2410/include/mach/regs-serial.h
11  */
12
13 #ifndef __ASM_ARM_REGS_SERIAL_H
14 #define __ASM_ARM_REGS_SERIAL_H
15
16 #define UART0_BA        W90X900_VA_UART
17 #define UART1_BA        (W90X900_VA_UART+0x100)
18 #define UART2_BA        (W90X900_VA_UART+0x200)
19 #define UART3_BA        (W90X900_VA_UART+0x300)
20 #define UART4_BA        (W90X900_VA_UART+0x400)
21
22 #define UART0_PA        W90X900_PA_UART
23 #define UART1_PA        (W90X900_PA_UART+0x100)
24 #define UART2_PA        (W90X900_PA_UART+0x200)
25 #define UART3_PA        (W90X900_PA_UART+0x300)
26 #define UART4_PA        (W90X900_PA_UART+0x400)
27
28 #ifndef __ASSEMBLY__
29
30 struct w90x900_uart_clksrc {
31         const char      *name;
32         unsigned int    divisor;
33         unsigned int    min_baud;
34         unsigned int    max_baud;
35 };
36
37 struct w90x900_uartcfg {
38         unsigned char   hwport;
39         unsigned char   unused;
40         unsigned short  flags;
41         unsigned long   uart_flags;
42
43         unsigned long   ucon;
44         unsigned long   ulcon;
45         unsigned long   ufcon;
46
47         struct w90x900_uart_clksrc *clocks;
48         unsigned int    clocks_size;
49 };
50
51 #endif /* __ASSEMBLY__ */
52
53 #endif /* __ASM_ARM_REGS_SERIAL_H */
54