new experimental driver for the CF slot on the RouterBOARD 153
[openwrt/staging/yousong.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_EXTIO0_BASE 0x10C00000
33 #define ADM5120_EXTIO0_SIZE 0x00200000
34 #define ADM5120_EXTIO1_BASE 0x10E00000
35 #define ADM5120_EXTIO1_SIZE 0x00200000
36 #define ADM5120_MPMC_BASE 0x11000000
37 #define ADM5120_MPMC_SIZE 0x00200000
38 #define ADM5120_USBC_BASE 0x11200000
39 #define ADM5120_USBC_SIZE 0x00200000
40 #define ADM5120_PCIMEM_BASE 0x11400000
41 #define ADM5120_PCIMEM_SIZE 0x00100000
42 #define ADM5120_PCIIO_BASE 0x11500000
43 #define ADM5120_PCIIO_SIZE 0x000FFFF0
44 #define ADM5120_PCICFG_ADDR 0x115FFFF0
45 #define ADM5120_PCICFG_DATA 0x115FFFF8
46 #define ADM5120_PCICFG_SIZE 0x00000010
47 #define ADM5120_SWITCH_BASE 0x12000000
48 #define ADM5120_SWITCH_SIZE 0x00200000
49 #define ADM5120_INTC_BASE 0x12200000
50 #define ADM5120_INTC_SIZE 0x00200000
51 #define ADM5120_UART0_BASE 0x12600000
52 #define ADM5120_UART1_BASE 0x12800000
53 #define ADM5120_UART_SIZE 0x00200000
54 #define ADM5120_SRAM0_BASE 0x1FC00000
55
56 #define ADM5120_NAND_BASE ADM5120_SRAM1_BASE
57 #define ADM5120_NAND_SIZE 0xB
58
59 #define ADM5120_CLK_175 175000000
60 #define ADM5120_CLK_200 200000000
61 #define ADM5120_CLK_225 225000000
62 #define ADM5120_CLK_250 250000000
63
64 #define ADM5120_UART_CLOCK 62500000
65
66 #endif /* _ADM5120_DEFS_H */