Add preliminary RouterBoard RB1xx support
[openwrt.git] / target / linux / rb1xx-2.6 / files / include / asm-mips / mach-adm5120 / adm5120_defs.h
1 /*
2  *  $Id$
3  *
4  *  ADM5120 SoC definitions
5  *
6  *  This file defines some constants specific to the ADM5120 SoC
7  *
8  *  Copyright (C) 2007 OpenWrt.org
9  *  Copyright (C) 2007 Gabor Juhos <juhosg@freemail.hu>
10  *
11  *  This program is free software; you can redistribute it and/or
12  *  modify it under the terms of the GNU General Public License
13  *  as published by the Free Software Foundation; either version 2
14  *  of the License, or (at your option) any later version.
15  *
16  *  This program is distributed in the hope that it will be useful,
17  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  *  GNU General Public License for more details.
20  *
21  *  You should have received a copy of the GNU General Public License
22  *  along with this program; if not, write to the
23  *  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24  *  Boston, MA  02110-1301, USA.
25  */
26 #ifndef _ADM5120_DEFS_H
27 #define _ADM5120_DEFS_H
28
29 #define ADM5120_SDRAM0_BASE     0x00000000
30 #define ADM5120_SDRAM1_BASE     0x01000000
31 #define ADM5120_SRAM1_BASE      0x10000000
32 #define ADM5120_MPMC_BASE       0x11000000
33 #define ADM5120_USBC_BASE       0x11200000
34 #define ADM5120_PCIMEM_BASE     0x11400000
35 #define ADM5120_PCIIO_BASE      0x11500000
36 #define ADM5120_PCICFG_ADDR     0x115FFFF0
37 #define ADM5120_PCICFG_DATA     0x115FFFF8
38 #define ADM5120_SWITCH_BASE     0x12000000
39 #define ADM5120_INTC_BASE       0x12200000
40 #define ADM5120_UART0_BASE      0x12600000
41 #define ADM5120_UART1_BASE      0x12800000
42 #define ADM5120_SRAM0_BASE      0x1FC00000
43
44 #define ADM5120_MPMC_SIZE       0x1000
45 #define ADM5120_USBC_SIZE       0x84
46 #define ADM5120_PCIMEM_SIZE     (ADM5120_PCIIO_BASE - ADM5120_PCIMEM_BASE)
47 #define ADM5120_PCIIO_SIZE      (ADM5120_PCICFG_ADDR - ADM5120_PCIIO_BASE)
48 #define ADM5120_PCICFG_SIZE     0x10
49 #define ADM5120_SWITCH_SIZE     0x114
50 #define ADM5120_INTC_SIZE       0x28
51 #define ADM5120_UART_SIZE       0x20
52
53 #define ADM5120_CLK_175         175000000
54 #define ADM5120_CLK_200         200000000
55 #define ADM5120_CLK_225         225000000
56 #define ADM5120_CLK_250         250000000
57
58 #define ADM5120_UART_CLOCK      62500000
59
60 #endif /* _ADM5120_DEFS_H */