• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * arch/arm/mach-w90x900/include/mach/regs-serial.h
3  *
4  * Copyright (c) 2008 Nuvoton technology corporation
5  * All rights reserved.
6  *
7  * Wan ZongShun <mcuos.com@gmail.com>
8  *
9  * Based on arch/arm/mach-s3c2410/include/mach/regs-serial.h
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  */
17 
18 #ifndef __ASM_ARM_REGS_SERIAL_H
19 #define __ASM_ARM_REGS_SERIAL_H
20 
21 #define UART0_BA	W90X900_VA_UART
22 #define UART1_BA	(W90X900_VA_UART+0x100)
23 #define UART2_BA	(W90X900_VA_UART+0x200)
24 #define UART3_BA	(W90X900_VA_UART+0x300)
25 #define UART4_BA	(W90X900_VA_UART+0x400)
26 
27 #define UART0_PA	W90X900_PA_UART
28 #define UART1_PA	(W90X900_PA_UART+0x100)
29 #define UART2_PA	(W90X900_PA_UART+0x200)
30 #define UART3_PA	(W90X900_PA_UART+0x300)
31 #define UART4_PA	(W90X900_PA_UART+0x400)
32 
33 #ifndef __ASSEMBLY__
34 
35 struct w90x900_uart_clksrc {
36 	const char	*name;
37 	unsigned int	divisor;
38 	unsigned int	min_baud;
39 	unsigned int	max_baud;
40 };
41 
42 struct w90x900_uartcfg {
43 	unsigned char	hwport;
44 	unsigned char	unused;
45 	unsigned short	flags;
46 	unsigned long	uart_flags;
47 
48 	unsigned long	ucon;
49 	unsigned long	ulcon;
50 	unsigned long	ufcon;
51 
52 	struct w90x900_uart_clksrc *clocks;
53 	unsigned int	clocks_size;
54 };
55 
56 #endif /* __ASSEMBLY__ */
57 
58 #endif /* __ASM_ARM_REGS_SERIAL_H */
59 
60