]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/configs/ebony.h
i2c, ppc4xx_i2c: switch to new multibus/multiadapter support
[people/ms/u-boot.git] / include / configs / ebony.h
CommitLineData
acea76a2
WD
1/*
2 * (C) Copyright 2002 Scott McNutt <smcnutt@artesyncp.com>
3 *
4 * See file CREDITS for list of people who contributed to this
5 * project.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 * MA 02111-1307 USA
21 */
22
23/************************************************************************
0c8721a4 24 * board/config_EBONY.h - configuration for AMCC 440GP Ref (Ebony)
acea76a2
WD
25 ***********************************************************************/
26
27#ifndef __CONFIG_H
28#define __CONFIG_H
29
30/*-----------------------------------------------------------------------
31 * High Level Configuration Options
32 *----------------------------------------------------------------------*/
33#define CONFIG_EBONY 1 /* Board is ebony */
4a3cd9e6 34#define CONFIG_440GP 1 /* Specifc GP support */
efa35cf1 35#define CONFIG_440 1 /* ... PPC440 family */
acea76a2 36#define CONFIG_4xx 1 /* ... PPC4xx family */
c837dcb1 37#define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */
acea76a2
WD
38#define CONFIG_SYS_CLK_FREQ 33333333 /* external freq to pll */
39
2ae18241
WD
40#define CONFIG_SYS_TEXT_BASE 0xFFFC0000
41
490f2040
SR
42/*
43 * Include common defines/options for all AMCC eval boards
44 */
45#define CONFIG_HOSTNAME ebony
46#include "amcc-common.h"
47
8a316c9b
SR
48/*
49 * Define here the location of the environment variables (FLASH or NVRAM).
50 * Note: DENX encourages to use redundant environment in FLASH. NVRAM is only
51 * supported for backward compatibility.
52 */
53#if 1
5a1aceb0 54#define CONFIG_ENV_IS_IN_FLASH 1 /* use FLASH for environment vars */
8a316c9b 55#else
9314cee6 56#define CONFIG_ENV_IS_IN_NVRAM 1 /* use NVRAM for environment vars */
8a316c9b
SR
57#endif
58
acea76a2
WD
59/*-----------------------------------------------------------------------
60 * Base addresses -- Note these are effective addresses where the
61 * actual resources get mapped (not physical addresses)
62 *----------------------------------------------------------------------*/
6d0f6bcf
JCPV
63#define CONFIG_SYS_SDRAM_BASE 0x00000000 /* _must_ be 0 */
64#define CONFIG_SYS_FLASH_BASE 0xff800000 /* start of FLASH */
65#define CONFIG_SYS_PCI_MEMBASE 0x80000000 /* mapped pci memory */
6d0f6bcf
JCPV
66#define CONFIG_SYS_ISRAM_BASE 0xc0000000 /* internal SRAM */
67#define CONFIG_SYS_PCI_BASE 0xd0000000 /* internal PCI regs */
acea76a2 68
6d0f6bcf
JCPV
69#define CONFIG_SYS_NVRAM_BASE_ADDR (CONFIG_SYS_PERIPHERAL_BASE + 0x08000000)
70#define CONFIG_SYS_FPGA_BASE (CONFIG_SYS_PERIPHERAL_BASE + 0x08300000)
acea76a2
WD
71
72/*-----------------------------------------------------------------------
73 * Initial RAM & stack pointer (placed in internal SRAM)
74 *----------------------------------------------------------------------*/
6d0f6bcf 75#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_ISRAM_BASE /* Initial RAM address */
553f0982 76#define CONFIG_SYS_INIT_RAM_SIZE 0x2000 /* Size of used area in RAM */
acea76a2 77
25ddd1fb 78#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
6d0f6bcf 79#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
acea76a2 80
acea76a2
WD
81/*-----------------------------------------------------------------------
82 * Serial Port
83 *----------------------------------------------------------------------*/
550650dd 84#define CONFIG_CONS_INDEX 1 /* Use UART0 */
6d0f6bcf 85#define CONFIG_SYS_EXT_SERIAL_CLOCK (1843200 * 6) /* Ext clk @ 11.059 MHz */
acea76a2
WD
86
87/*-----------------------------------------------------------------------
88 * NVRAM/RTC
89 *
90 * NOTE: Upper 8 bytes of NVRAM is where the RTC registers are located.
91 * The DS1743 code assumes this condition (i.e. -- it assumes the base
92 * address for the RTC registers is:
93 *
6d0f6bcf 94 * CONFIG_SYS_NVRAM_BASE_ADDR + CONFIG_SYS_NVRAM_SIZE
acea76a2
WD
95 *
96 *----------------------------------------------------------------------*/
6d0f6bcf 97#define CONFIG_SYS_NVRAM_SIZE (0x2000 - 8) /* NVRAM size(8k)- RTC regs */
acea76a2
WD
98#define CONFIG_RTC_DS174x 1 /* DS1743 RTC */
99
9314cee6 100#ifdef CONFIG_ENV_IS_IN_NVRAM
0e8d1586
JCPV
101#define CONFIG_ENV_SIZE 0x1000 /* Size of Environment vars */
102#define CONFIG_ENV_ADDR \
6d0f6bcf 103 (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE)
9314cee6 104#endif /* CONFIG_ENV_IS_IN_NVRAM */
8a316c9b 105
acea76a2
WD
106/*-----------------------------------------------------------------------
107 * FLASH related
108 *----------------------------------------------------------------------*/
6d0f6bcf
JCPV
109#define CONFIG_SYS_MAX_FLASH_BANKS 3 /* number of banks */
110#define CONFIG_SYS_MAX_FLASH_SECT 32 /* sectors per device */
acea76a2 111
6d0f6bcf
JCPV
112#define CONFIG_SYS_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */
113#define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */
acea76a2 114
6d0f6bcf 115#define CONFIG_SYS_FLASH_EMPTY_INFO /* print 'E' for empty sector on flinfo */
8a316c9b 116
6d0f6bcf
JCPV
117#define CONFIG_SYS_FLASH_ADDR0 0x5555
118#define CONFIG_SYS_FLASH_ADDR1 0x2aaa
119#define CONFIG_SYS_FLASH_WORD_SIZE unsigned char
8a316c9b 120
5a1aceb0 121#ifdef CONFIG_ENV_IS_IN_FLASH
0e8d1586 122#define CONFIG_ENV_SECT_SIZE 0x10000 /* size of one complete sector */
6d0f6bcf 123#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
0e8d1586 124#define CONFIG_ENV_SIZE 0x4000 /* Total Size of Environment Sector */
8a316c9b
SR
125
126/* Address and size of Redundant Environment Sector */
0e8d1586
JCPV
127#define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR-CONFIG_ENV_SECT_SIZE)
128#define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
5a1aceb0 129#endif /* CONFIG_ENV_IS_IN_FLASH */
8a316c9b 130
acea76a2
WD
131/*-----------------------------------------------------------------------
132 * DDR SDRAM
133 *----------------------------------------------------------------------*/
8423e5e3
SR
134#define CONFIG_SPD_EEPROM 1 /* Use SPD EEPROM for setup */
135#define SPD_EEPROM_ADDRESS {0x53,0x52} /* SPD i2c spd addresses */
136#define CONFIG_PROG_SDRAM_TLB 1 /* setup SDRAM TLB's dynamically*/
acea76a2
WD
137
138/*-----------------------------------------------------------------------
139 * I2C
140 *----------------------------------------------------------------------*/
880540de 141#define CONFIG_SYS_I2C_PPC4XX_SPEED_0 400000
4f92ed5f 142
6d0f6bcf
JCPV
143#define CONFIG_SYS_I2C_MULTI_EEPROMS
144#define CONFIG_SYS_I2C_EEPROM_ADDR (0xa8>>1)
145#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
146#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
147#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
acea76a2 148
490f2040
SR
149/*
150 * Default environment variables
151 */
8a316c9b 152#define CONFIG_EXTRA_ENV_SETTINGS \
490f2040
SR
153 CONFIG_AMCC_DEF_ENV \
154 CONFIG_AMCC_DEF_ENV_POWERPC \
155 CONFIG_AMCC_DEF_ENV_PPC_OLD \
156 CONFIG_AMCC_DEF_ENV_NOR_UPD \
8a316c9b
SR
157 "kernel_addr=ff800000\0" \
158 "ramdisk_addr=ff810000\0" \
8a316c9b 159 ""
8a316c9b 160
acea76a2 161#define CONFIG_PHY_ADDR 8 /* PHY address */
a00eccfe 162#define CONFIG_HAS_ETH0
4a3cd9e6
SR
163#define CONFIG_HAS_ETH1
164#define CONFIG_PHY1_ADDR 9 /* EMAC1 PHY address */
1bec3d30 165
80ff4f99 166/*
490f2040 167 * Commands additional to the ones defined in amcc-common.h
80ff4f99 168 */
1bec3d30 169#define CONFIG_CMD_DATE
1bec3d30 170#define CONFIG_CMD_PCI
1bec3d30
JL
171#define CONFIG_CMD_SDRAM
172#define CONFIG_CMD_SNTP
173
acea76a2
WD
174/*-----------------------------------------------------------------------
175 * PCI stuff
176 *-----------------------------------------------------------------------
177 */
178/* General PCI */
179#define CONFIG_PCI /* include pci support */
842033e6 180#define CONFIG_PCI_INDIRECT_BRIDGE /* indirect PCI bridge support */
acea76a2
WD
181#define CONFIG_PCI_PNP /* do pci plug-and-play */
182#define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */
6d0f6bcf 183#define CONFIG_SYS_PCI_TARGBASE 0x80000000 /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */
acea76a2
WD
184
185/* Board-specific PCI */
6d0f6bcf 186#define CONFIG_SYS_PCI_TARGET_INIT /* let board init pci target */
acea76a2 187
6d0f6bcf
JCPV
188#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */
189#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe /* Whatever */
acea76a2 190
acea76a2 191#endif /* __CONFIG_H */