blob: 3255db6592e6f0233b18a08b9fe93dad0111974a [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Macpaul Lin024db0a2011-09-23 17:31:27 +08002/*
3 * Copyright (C) 2011 Andes Technology Corporation
4 * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
Macpaul Lin024db0a2011-09-23 17:31:27 +08005 */
6
7#ifndef __AG102_H
8#define __AG102_H
9
10/*
11 * Hardware register bases
12 */
13
Macpaul Lin024db0a2011-09-23 17:31:27 +080014/* LPC Controller */
15#define CONFIG_LPC_IO_BASE 0x90100000
16/* LPC Controller */
17#define CONFIG_LPC_BASE 0x90200000
18
19/* NDS32 Data Local Memory 01 */
20#define CONFIG_NDS_DLM1_BASE 0x90300000
21/* NDS32 Data Local Memory 02 */
22#define CONFIG_NDS_DLM2_BASE 0x90400000
23
24/* Synopsys DWC DDR2/1 Controller */
25#define CONFIG_DWCDDR21MCTL_BASE 0x90500000
26/* DMA Controller */
27#define CONFIG_FTDMAC020_BASE 0x90600000
28/* FTIDE020_S IDE (ATA) Controller */
29#define CONFIG_FTIDE020S_BASE 0x90700000
30/* USB OTG Controller */
31#define CONFIG_FZOTG266HD0A_BASE 0x90800000
32/* Andes L2 Cache Controller */
33#define CONFIG_NCEL2C100_BASE 0x90900000
34/* XGI XG22 GPU */
35#define CONFIG_XGI_XG22_BASE 0x90A00000
36/* GMAC Ethernet Controller */
37#define CONFIG_FTGMAC100_BASE 0x90B00000
38/* AHB Controller */
39#define CONFIG_FTAHBC020S_BASE 0x90C00000
40/* AHB-to-APB Bridge Controller */
41#define CONFIG_FTAPBBRG020S_01_BASE 0x90D00000
42/* External AHB2AHB Controller */
43#define CONFIG_EXT_AHB2AHB_BASE 0x90E00000
44/* Andes Multi-core Interrupt Controller */
45#define CONFIG_NCEMIC100_BASE 0x90F00000
46
47/*
48 * APB Device definitions
49 */
50/* Compat Flash Controller */
51#define CONFIG_FTCFC010_BASE 0x94000000
52/* APB - SSP (SPI) (without AC97) Controller */
53#define CONFIG_FTSSP010_01_BASE 0x94100000
54/* UART1 - APB STUART Controller (UART0 in Linux) */
55#define CONFIG_FTUART010_01_BASE 0x94200000
Macpaul Lin024db0a2011-09-23 17:31:27 +080056/* APB - SSP with HDA/AC97 Controller */
57#define CONFIG_FTSSP010_02_BASE 0x94500000
58/* UART2 - APB STUART Controller (UART1 in Linux) */
59#define CONFIG_FTUART010_02_BASE 0x94600000
60/* PCU Controller */
61#define CONFIG_ANDES_PCU_BASE 0x94800000
62/* FTTMR010 Timer */
63#define CONFIG_FTTMR010_BASE 0x94900000
64/* Watch Dog Controller */
65#define CONFIG_FTWDT010_BASE 0x94A00000
66/* FTRTC010 Real Time Clock */
67#define CONFIG_FTRTC010_BASE 0x98B00000
68/* GPIO Controller */
69#define CONFIG_FTGPIO010_BASE 0x94C00000
70/* I2C Controller */
71#define CONFIG_FTIIC010_BASE 0x94E00000
72/* PWM - Pulse Width Modulator Controller */
73#define CONFIG_FTPWM010_BASE 0x94F00000
74
75/* Debug LED */
76#define CONFIG_DEBUG_LED 0x902FFFFC
77/* Power Management Unit */
78#define CONFIG_FTPMU010_BASE 0x98100000
79
80#endif /* __AG102_H */