ARM: 5859/1: Add nuc93x platform support
[deliverable/linux.git] / arch / arm / mach-nuc93x / include / mach / regs-serial.h
1 /*
2 * arch/arm/mach-nuc93x/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 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 */
15
16 #ifndef __ASM_ARM_REGS_SERIAL_H
17 #define __ASM_ARM_REGS_SERIAL_H
18
19 #define UART0_BA NUC93X_VA_UART
20 #define UART1_BA (NUC93X_VA_UART+0x100)
21
22 #define UART0_PA NUC93X_PA_UART
23 #define UART1_PA (NUC93X_PA_UART+0x100)
24
25
26 #ifndef __ASSEMBLY__
27
28 struct nuc93x_uart_clksrc {
29 const char *name;
30 unsigned int divisor;
31 unsigned int min_baud;
32 unsigned int max_baud;
33 };
34
35 struct nuc93x_uartcfg {
36 unsigned char hwport;
37 unsigned char unused;
38 unsigned short flags;
39 unsigned long uart_flags;
40
41 unsigned long ucon;
42 unsigned long ulcon;
43 unsigned long ufcon;
44
45 struct nuc93x_uart_clksrc *clocks;
46 unsigned int clocks_size;
47 };
48
49 #endif /* __ASSEMBLY__ */
50
51 #endif /* __ASM_ARM_REGS_SERIAL_H */
52
This page took 0.043215 seconds and 5 git commands to generate.