The RB513 CF driver is now a module, enable it by default for the RB1xx profile.
[openwrt/svn-archive/archive.git] / target / linux / adm5120 / 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 at openwrt.org>
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_NAND_BASE ADM5120_SRAM1_BASE
33 #define ADM5120_EXTIO0_BASE 0x10C00000
34 #define ADM5120_MPMC_BASE 0x11000000
35 #define ADM5120_USBC_BASE 0x11200000
36 #define ADM5120_PCIMEM_BASE 0x11400000
37 #define ADM5120_PCIIO_BASE 0x11500000
38 #define ADM5120_PCICFG_ADDR 0x115FFFF0
39 #define ADM5120_PCICFG_DATA 0x115FFFF8
40 #define ADM5120_SWITCH_BASE 0x12000000
41 #define ADM5120_INTC_BASE 0x12200000
42 #define ADM5120_UART0_BASE 0x12600000
43 #define ADM5120_UART1_BASE 0x12800000
44 #define ADM5120_SRAM0_BASE 0x1FC00000
45
46 #define ADM5120_NAND_SIZE 0xB
47 #define ADM5120_MPMC_SIZE 0x1000
48 #define ADM5120_USBC_SIZE 0x84
49 #define ADM5120_PCIMEM_SIZE (ADM5120_PCIIO_BASE - ADM5120_PCIMEM_BASE)
50 #define ADM5120_PCIIO_SIZE (ADM5120_PCICFG_ADDR - ADM5120_PCIIO_BASE)
51 #define ADM5120_PCICFG_SIZE 0x10
52 #define ADM5120_SWITCH_SIZE 0x114
53 #define ADM5120_INTC_SIZE 0x28
54 #define ADM5120_UART_SIZE 0x20
55
56 #define ADM5120_CLK_175 175000000
57 #define ADM5120_CLK_200 200000000
58 #define ADM5120_CLK_225 225000000
59 #define ADM5120_CLK_250 250000000
60
61 #define ADM5120_UART_CLOCK 62500000
62
63 #endif /* _ADM5120_DEFS_H */