blob: 47eaacbca8dfa36b04e50bf60a04d7c276d32164 [file] [log] [blame]
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -07001/*
2 * Copyright (c) 2008 Travis Geiselbrecht
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files
6 * (the "Software"), to deal in the Software without restriction,
7 * including without limitation the rights to use, copy, modify, merge,
8 * publish, distribute, sublicense, and/or sell copies of the Software,
9 * and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be
13 * included in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23#ifndef __INTEGRATOR_H
24#define __INTEGRATOR_H
25
26/* memory map */
27#define SDRAM_BASE 0x00000000
28
29#define INTEGRATOR_CORE_REG_BASE 0x10000000
30#define INTEGRATOR_SYS_REG_BASE 0x11000000
31#define INTEGRATOR_EBI_REG_BASE 0x12000000
32#define INTEGRATOR_TIMER_REG_BASE 0x13000000
33#define INTEGRATOR_INT_REG_BASE 0x14000000
34#define INTEGRATOR_UART0_REG_BASE 0x16000000
35#define INTEGRATOR_UART1_REG_BASE 0x17000000
36#define INTEGRATOR_LEDS_REG_BASE 0x1a000000
37#define INTEGRATOR_GPIO_REG_BASE 0x1b000000
38
39/* uart stuff */
40#define PL011_UARTDR (0)
41#define PL011_UARTRSR (1)
42#define PL011_UARTECR (1)
43#define PL011_UARTFR (6)
44#define PL011_UARTILPR (8)
45#define PL011_UARTIBRD (9)
46#define PL011_UARTFBRD (10)
47#define PL011_UARTLCR_H (11)
48#define PL011_UARTCR (12)
49#define PL011_UARTIFLS (13)
50#define PL011_UARTIMSC (14)
51#define PL011_UARTTRIS (15)
52#define PL011_UARTTMIS (16)
53#define PL011_UARTICR (17)
54#define PL011_UARTMACR (18)
55
56#define INT_VECTORS 32 // XXX just made this up
57
58#endif
59