]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/configs/redwood.h
POST cleanup.
[people/ms/u-boot.git] / include / configs / redwood.h
CommitLineData
96e5fc0e
FK
1/*
2 * Configuration for AMCC 460SX Ref (redwood)
3 *
4 * (C) Copyright 2008
5 * Feng Kan, Applied Micro Circuits Corp., fkan@amcc.com
6 *
7 * See file CREDITS for list of people who contributed to this
8 * project.
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23 * MA 02111-1307 USA
24 */
25#ifndef __CONFIG_H
26#define __CONFIG_H
27
28/*-----------------------------------------------------------------------
29 * High Level Configuration Options
30 *----------------------------------------------------------------------*/
31#define CONFIG_4xx 1 /* ... PPC4xx family */
32#define CONFIG_440 1 /* ... PPC460 family */
33#define CONFIG_460SX 1 /* ... PPC460 family */
34#define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_pre_init */
35
36/*-----------------------------------------------------------------------
37 * Include common defines/options for all AMCC boards
38 *----------------------------------------------------------------------*/
39#define CONFIG_HOSTNAME redwood
40
41#include "amcc-common.h"
42
43#define CONFIG_SYS_CLK_FREQ 33333333 /* external freq to pll */
44
45/*-----------------------------------------------------------------------
46 * Base addresses -- Note these are effective addresses where the
47 * actual resources get mapped (not physical addresses)
48 *----------------------------------------------------------------------*/
6d0f6bcf
JCPV
49#define CONFIG_SYS_FLASH_BASE 0xfff00000 /* start of FLASH */
50#define CONFIG_SYS_PERIPHERAL_BASE 0xa0000000 /* internal peripherals */
51#define CONFIG_SYS_ISRAM_BASE 0x90000000 /* internal SRAM */
96e5fc0e 52
6d0f6bcf 53#define CONFIG_SYS_PCI_BASE 0xd0000000 /* internal PCI regs */
96e5fc0e 54
6d0f6bcf
JCPV
55#define CONFIG_SYS_PCIE_MEMBASE 0x90000000 /* mapped PCIe memory */
56#define CONFIG_SYS_PCIE0_MEMBASE 0x90000000 /* mapped PCIe memory */
57#define CONFIG_SYS_PCIE1_MEMBASE 0xa0000000 /* mapped PCIe memory */
58#define CONFIG_SYS_PCIE_MEMSIZE 0x01000000
8f2b457e 59
6d0f6bcf
JCPV
60#define CONFIG_SYS_PCIE0_XCFGBASE 0xb0000000
61#define CONFIG_SYS_PCIE1_XCFGBASE 0xb2000000
62#define CONFIG_SYS_PCIE2_XCFGBASE 0xb4000000
63#define CONFIG_SYS_PCIE0_CFGBASE 0xb6000000
64#define CONFIG_SYS_PCIE1_CFGBASE 0xb8000000
65#define CONFIG_SYS_PCIE2_CFGBASE 0xba000000
96e5fc0e
FK
66
67/* PCIe mapped UTL registers */
6d0f6bcf
JCPV
68#define CONFIG_SYS_PCIE0_REGBASE 0xd0000000
69#define CONFIG_SYS_PCIE1_REGBASE 0xd0010000
70#define CONFIG_SYS_PCIE2_REGBASE 0xd0020000
96e5fc0e
FK
71
72/* System RAM mapped to PCI space */
6d0f6bcf
JCPV
73#define CONFIG_PCI_SYS_MEM_BUS CONFIG_SYS_SDRAM_BASE
74#define CONFIG_PCI_SYS_MEM_PHYS CONFIG_SYS_SDRAM_BASE
96e5fc0e
FK
75#define CONFIG_PCI_SYS_MEM_SIZE (1024 * 1024 * 1024)
76
6d0f6bcf
JCPV
77#define CONFIG_SYS_FPGA_BASE 0xe2000000 /* epld */
78#define CONFIG_SYS_OPER_FLASH 0xe7000000 /* SRAM - OPER Flash */
96e5fc0e
FK
79
80/*-----------------------------------------------------------------------
81 * Initial RAM & stack pointer (placed in internal SRAM)
82 *----------------------------------------------------------------------*/
6d0f6bcf
JCPV
83#define CONFIG_SYS_TEMP_STACK_OCM 1
84#define CONFIG_SYS_OCM_DATA_ADDR CONFIG_SYS_ISRAM_BASE
85#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_ISRAM_BASE /* Initial RAM address */
86#define CONFIG_SYS_INIT_RAM_END 0x2000 /* End of used area in RAM */
87#define CONFIG_SYS_GBL_DATA_SIZE 128 /* num bytes initial data */
96e5fc0e 88
6d0f6bcf 89#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
800eb096 90#define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
96e5fc0e
FK
91
92/*-----------------------------------------------------------------------
93 * DDR SDRAM
94 *----------------------------------------------------------------------*/
95#define CONFIG_SPD_EEPROM 1 /* Use SPD EEPROM for setup */
96#define CONFIG_DDR_ECC 1 /* with ECC support */
97
6d0f6bcf 98#define CONFIG_SYS_SPD_MAX_DIMMS 2
96e5fc0e
FK
99
100/* SPD i2c spd addresses */
101#define SPD_EEPROM_ADDRESS {IIC0_DIMM0_ADDR, IIC0_DIMM1_ADDR}
8f2b457e
HS
102#define IIC0_DIMM0_ADDR 0x53
103#define IIC0_DIMM1_ADDR 0x52
96e5fc0e
FK
104
105/*-----------------------------------------------------------------------
106 * I2C
107 *----------------------------------------------------------------------*/
6d0f6bcf 108#define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed */
96e5fc0e
FK
109
110#define IIC0_BOOTPROM_ADDR 0x50
111#define IIC0_ALT_BOOTPROM_ADDR 0x54
112
113/* Don't probe these addrs */
6d0f6bcf 114#define CONFIG_SYS_I2C_NOPROBES {0x50, 0x52, 0x53, 0x54}
96e5fc0e 115
6d0f6bcf 116#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 /* Bytes of address */
96e5fc0e
FK
117
118/*-----------------------------------------------------------------------
119 * Environment
120 *----------------------------------------------------------------------*/
9314cee6 121#undef CONFIG_ENV_IS_IN_NVRAM /* ... not in NVRAM */
5a1aceb0 122#define CONFIG_ENV_IS_IN_FLASH 1 /* Environment uses flash */
bb1f8b4f 123#undef CONFIG_ENV_IS_IN_EEPROM /* ... not in EEPROM */
96e5fc0e
FK
124
125#define CONFIG_PREBOOT "echo;" \
126 "echo Type \"run flash_nfs\" to mount root filesystem over NFS;" \
127 "echo"
128
129#undef CONFIG_BOOTARGS
130
131#define CONFIG_EXTRA_ENV_SETTINGS \
8f2b457e
HS
132 CONFIG_AMCC_DEF_ENV \
133 CONFIG_AMCC_DEF_ENV_POWERPC \
134 CONFIG_AMCC_DEF_ENV_NOR_UPD \
135 CONFIG_AMCC_DEF_ENV_NAND_UPD \
136 "kernel_addr=fc000000\0" \
137 "fdt_addr=fc1e0000\0" \
138 "ramdisk_addr=fc200000\0" \
96e5fc0e
FK
139 ""
140
141/*----------------------------------------------------------------------------+
142| Commands in addition to amcc-common.h
143+----------------------------------------------------------------------------*/
144#define CONFIG_CMD_SDRAM
145
146#define CONFIG_BOOTCOMMAND "run flash_self"
147
148#define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
149
150#define CONFIG_IBM_EMAC4_V4 1
8f2b457e 151#define CONFIG_PHY_RESET 1 /* reset phy upon startup */
96e5fc0e
FK
152#define CONFIG_PHY_RESET_DELAY 1000
153#define CONFIG_M88E1141_PHY 1 /* Enable phy */
154#define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex detection */
155
156#define CONFIG_HAS_ETH0
157#define CONFIG_HAS_ETH1
158#define CONFIG_PHY_ADDR 0 /* PHY address, See schematics */
159#define CONFIG_PHY1_ADDR 1 /* PHY address, See schematics */
160
161#undef CONFIG_WATCHDOG /* watchdog disabled */
162
163/*-----------------------------------------------------------------------
164 * FLASH related
165 *----------------------------------------------------------------------*/
6d0f6bcf 166#define CONFIG_SYS_FLASH_CFI /* The flash is CFI compatible */
8f2b457e 167#define CONFIG_FLASH_CFI_DRIVER /* Use common CFI driver */
6d0f6bcf 168#define CONFIG_SYS_FLASH_CFI_AMD_RESET 1 /* Use AMD (Spansion) reset cmd */
96e5fc0e 169
6d0f6bcf
JCPV
170#define CONFIG_SYS_MAX_FLASH_BANKS 3 /* number of banks */
171#define CONFIG_SYS_MAX_FLASH_SECT 256 /* sectors per device */
96e5fc0e 172
6d0f6bcf
JCPV
173#undef CONFIG_SYS_FLASH_CHECKSUM
174#define CONFIG_SYS_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */
175#define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */
96e5fc0e 176
5a1aceb0 177#ifdef CONFIG_ENV_IS_IN_FLASH
0e8d1586
JCPV
178#define CONFIG_ENV_SECT_SIZE 0x10000 /* size of one complete sector */
179#define CONFIG_ENV_ADDR 0xfffa0000
180#define CONFIG_ENV_SIZE 0x10000 /* Size of Environment vars */
5a1aceb0 181#endif /* CONFIG_ENV_IS_IN_FLASH */
96e5fc0e
FK
182
183/*---------------------------------------------------------------------------*/
184
185#endif /* __CONFIG_H */