summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-w90x900/include/mach/regs-serial.h
blob: 797c9727a15704cd6baad42e8290a057fd0abf23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * arch/arm/mach-w90x900/include/mach/regs-serial.h
 *
 * Copyright (c) 2008 Nuvoton technology corporation
 * All rights reserved.
 *
 * Wan ZongShun <mcuos.com@gmail.com>
 *
 * Based on arch/arm/mach-s3c2410/include/mach/regs-serial.h
 */

#ifndef __ASM_ARM_REGS_SERIAL_H
#define __ASM_ARM_REGS_SERIAL_H

#define UART0_BA	W90X900_VA_UART
#define UART1_BA	(W90X900_VA_UART+0x100)
#define UART2_BA	(W90X900_VA_UART+0x200)
#define UART3_BA	(W90X900_VA_UART+0x300)
#define UART4_BA	(W90X900_VA_UART+0x400)

#define UART0_PA	W90X900_PA_UART
#define UART1_PA	(W90X900_PA_UART+0x100)
#define UART2_PA	(W90X900_PA_UART+0x200)
#define UART3_PA	(W90X900_PA_UART+0x300)
#define UART4_PA	(W90X900_PA_UART+0x400)

#ifndef __ASSEMBLY__

struct w90x900_uart_clksrc {
	const char	*name;
	unsigned int	divisor;
	unsigned int	min_baud;
	unsigned int	max_baud;
};

struct w90x900_uartcfg {
	unsigned char	hwport;
	unsigned char	unused;
	unsigned short	flags;
	unsigned long	uart_flags;

	unsigned long	ucon;
	unsigned long	ulcon;
	unsigned long	ufcon;

	struct w90x900_uart_clksrc *clocks;
	unsigned int	clocks_size;
};

#endif /* __ASSEMBLY__ */

#endif /* __ASM_ARM_REGS_SERIAL_H */