1fde2f61 |
1 | /*++\r |
2 | \r |
3 | Copyright (c) 2006 - 2009, Intel Corporation \r |
4 | Portions copyright (c) 2009, Hewlett-Packard Company \r |
5 | Portions copyright (c) 2010, Apple, Inc. All rights reserved. \r |
6 | All rights reserved. This program and the accompanying materials \r |
7 | are licensed and made available under the terms and conditions of the BSD License \r |
8 | which accompanies this distribution. The full text of the license may be found at \r |
9 | http://opensource.org/licenses/bsd-license.php \r |
10 | \r |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r |
13 | \r |
14 | --*/\r |
15 | \r |
16 | #ifndef __ARM_EB_UART_H__\r |
17 | #define __ARM_EB_UART_H__\r |
18 | \r |
19 | \r |
20 | #define SERIAL_PORT_MAX_TIMEOUT 100000000 // 100 seconds\r |
21 | \r |
22 | \r |
23 | // EB constants\r |
24 | #define EB_UART1_BASE 0x10009000\r |
25 | \r |
26 | // PL011 Registers\r |
27 | #define UARTDR 0x000\r |
28 | #define UARTRSR 0x004\r |
29 | #define UARTECR 0x004\r |
30 | #define UARTFR 0x018\r |
31 | #define UARTILPR 0x020\r |
32 | #define UARTIBRD 0x024\r |
33 | #define UARTFBRD 0x028\r |
34 | #define UARTLCR_H 0x02C\r |
35 | #define UARTCR 0x030\r |
36 | #define UARTIFLS 0x034\r |
37 | #define UARTIMSC 0x038\r |
38 | #define UARTRIS 0x03C\r |
39 | #define UARTMIS 0x040\r |
40 | #define UARTICR 0x044\r |
41 | #define UARTDMACR 0x048\r |
42 | \r |
43 | // If the required baud rate is 115200 and UARTCLK = 24MHz then:\r |
44 |