]> git.sur5r.net Git - u-boot/blob - arch/nds32/include/asm/arch-ag101/ag101.h
powerpc/83xx/km: make local functions and structs static
[u-boot] / arch / nds32 / include / asm / arch-ag101 / ag101.h
1 /*
2  * Copyright (C) 2011 Andes Technology Corporation
3  * Nobuhiro Lin, Andes Technology Corporation <nobuhiro@andestech.com>
4  * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19  */
20
21 #ifndef __AG101_H
22 #define __AG101_H
23
24 /* Hardware register bases */
25
26 /* AHB Controller */
27 #define CONFIG_FTAHBC020S_BASE          0x90100000
28 /* Static Memory Controller (SRAM) */
29 #define CONFIG_FTSMC020_BASE            0x90200000
30 /* FTSDMC021 SDRAM Controller */
31 #define CONFIG_FTSDMC021_BASE           0x90300000
32 /* DMA Controller */
33 #define CONFIG_FTDMAC020_BASE           0x90400000
34 /* AHB-to-APB Bridge */
35 #define CONFIG_FTAPBBRG020S_01_BASE     0x90500000
36 /* LCD Controller */
37 #define CONFIG_FTLCDC100_BASE           0x90600000
38 /* Reserved */
39 #define CONFIG_RESERVED_01_BASE         0x90700000
40 /* Reserved */
41 #define CONFIG_RESERVED_02_BASE         0x90800000
42 /* Ethernet */
43 #define CONFIG_FTMAC100_BASE            0x90900000
44 /* External USB host */
45 #define CONFIG_EXT_USB_HOST_BASE        0x90A00000
46 /* USB Device */
47 #define CONFIG_USB_DEV_BASE             0x90B00000
48 /* External AHB-to-PCI Bridge (FTPCI100 not exist in ag101) */
49 #define CONFIG_EXT_AHBPCIBRG_BASE       0x90C00000
50 /* Reserved */
51 #define CONFIG_RESERVED_03_BASE         0x90D00000
52 /* External AHB-to-APB Bridger (FTAPBBRG020S_02) */
53 #define CONFIG_EXT_AHBAPBBRG_BASE       0x90E00000
54 /* External AHB slave1 (LCD) */
55 #define CONFIG_EXT_AHBSLAVE01_BASE      0x90F00000
56 /* External AHB slave2 (FUSBH200) */
57 #define CONFIG_EXT_AHBSLAVE02_BASE      0x92000000
58
59 /* DEBUG LED */
60 #define CONFIG_DEBUG_LED                0x902FFFFC
61
62 /* APB Device definitions */
63
64 /* Power Management Unit */
65 #define CONFIG_FTPMU010_BASE            0x98100000
66 /* BT UART 2/IrDA (UART 01 in Linux) */
67 #define CONFIG_FTUART010_01_BASE        0x98300000
68 /* Counter/Timers */
69 #define CONFIG_FTTMR010_BASE            0x98400000
70 /* Watchdog Timer */
71 #define CONFIG_FTWDT010_BASE            0x98500000
72 /* Real Time Clock */
73 #define CONFIG_FTRTC010_BASE            0x98600000
74 /* GPIO */
75 #define CONFIG_FTGPIO010_BASE           0x98700000
76 /* Interrupt Controller */
77 #define CONFIG_FTINTC010_BASE           0x98800000
78 /* I2C */
79 #define CONFIG_FTIIC010_BASE            0x98A00000
80 /* Reserved */
81 #define CONFIG_RESERVED_04_BASE         0x98C00000
82 /* Compat Flash Controller */
83 #define CONFIG_FTCFC010_BASE            0x98D00000
84 /* SD Controller */
85 #define CONFIG_FTSDC010_BASE            0x98E00000
86
87 /* Synchronous Serial Port Controller (SSP) I2S/AC97 */
88 #define CONFIG_FTSSP010_02_BASE         0x99400000
89 /* ST UART ? SSP 02 (UART 02 in Linux) */
90 #define CONFIG_FTUART010_02_BASE        0x99600000
91
92 /* The following address was not defined in Linux */
93
94 /* FF UART 3 */
95 #define CONFIG_FTUART010_03_BASE        0x98200000
96 /* Synchronous Serial Port Controller (SSP) 01 */
97 #define CONFIG_FTSSP010_01_BASE         0x98B00000
98 /* IrDA */
99 #define CONFIG_IRDA_BASE                0x98900000
100 /* PWM - Pulse Width Modulator Controller */
101 #define CONFIG_PMW_BASE                 0x99100000
102
103 #endif  /* __AG101_H */