wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2004 Paul Reynolds <PaulReynolds@lhsolutions.com> |
| 3 | * |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 4 | * (C) Copyright 2005 |
| 5 | * Stefan Roese, DENX Software Engineering, sr@denx.de. |
| 6 | * |
Wolfgang Denk | 3765b3e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | /************************************************************************ |
wdenk | 42dfe7a | 2004-03-14 22:25:36 +0000 | [diff] [blame] | 11 | * 1 March 2004 Travis B. Sawyer <tsawyer@sandburst.com> |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 12 | * Adapted to current Das U-Boot source |
| 13 | ***********************************************************************/ |
| 14 | |
| 15 | |
| 16 | /************************************************************************ |
Wolfgang Denk | 0c8721a | 2005-09-23 11:05:55 +0200 | [diff] [blame] | 17 | * OCOTEA.h - configuration for AMCC 440GX Ref (Ocotea) |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 18 | ***********************************************************************/ |
| 19 | |
| 20 | #ifndef __CONFIG_H |
| 21 | #define __CONFIG_H |
| 22 | |
| 23 | /*----------------------------------------------------------------------- |
| 24 | * High Level Configuration Options |
| 25 | *----------------------------------------------------------------------*/ |
| 26 | #define CONFIG_OCOTEA 1 /* Board is ebony */ |
Stefan Roese | 846b0dd | 2005-08-08 12:42:22 +0200 | [diff] [blame] | 27 | #define CONFIG_440GX 1 /* Specifc GX support */ |
Grzegorz Bernacki | efa35cf | 2007-06-15 11:19:28 +0200 | [diff] [blame] | 28 | #define CONFIG_440 1 /* ... PPC440 family */ |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 29 | #define CONFIG_4xx 1 /* ... PPC4xx family */ |
| 30 | #define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_pre_init */ |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 31 | #define CONFIG_SYS_CLK_FREQ 33333333 /* external freq to pll */ |
| 32 | |
Wolfgang Denk | 2ae1824 | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 33 | #define CONFIG_SYS_TEXT_BASE 0xFFFC0000 |
| 34 | |
Stefan Roese | 72675dc | 2008-06-06 15:55:21 +0200 | [diff] [blame] | 35 | /* |
| 36 | * Include common defines/options for all AMCC eval boards |
| 37 | */ |
| 38 | #define CONFIG_HOSTNAME ocotea |
| 39 | #include "amcc-common.h" |
| 40 | |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 41 | /*----------------------------------------------------------------------- |
| 42 | * Base addresses -- Note these are effective addresses where the |
| 43 | * actual resources get mapped (not physical addresses) |
| 44 | *----------------------------------------------------------------------*/ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 45 | #define CONFIG_SYS_FLASH_BASE 0xff800000 /* start of FLASH */ |
| 46 | #define CONFIG_SYS_PCI_MEMBASE 0x80000000 /* mapped pci memory */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 47 | #define CONFIG_SYS_ISRAM_BASE 0xc0000000 /* internal SRAM */ |
| 48 | #define CONFIG_SYS_PCI_BASE 0xd0000000 /* internal PCI regs */ |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 49 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 50 | #define CONFIG_SYS_FPGA_BASE (CONFIG_SYS_PERIPHERAL_BASE + 0x08300000) |
| 51 | #define CONFIG_SYS_NVRAM_BASE_ADDR (CONFIG_SYS_PERIPHERAL_BASE + 0x08000000) |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 52 | |
| 53 | /*----------------------------------------------------------------------- |
| 54 | * Initial RAM & stack pointer (placed in internal SRAM) |
| 55 | *----------------------------------------------------------------------*/ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 56 | #define CONFIG_SYS_TEMP_STACK_OCM 1 |
| 57 | #define CONFIG_SYS_OCM_DATA_ADDR CONFIG_SYS_ISRAM_BASE |
| 58 | #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_ISRAM_BASE /* Initial RAM address */ |
Wolfgang Denk | 553f098 | 2010-10-26 13:32:32 +0200 | [diff] [blame] | 59 | #define CONFIG_SYS_INIT_RAM_SIZE 0x2000 /* Size of used area in RAM */ |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 60 | |
Wolfgang Denk | 25ddd1f | 2010-10-26 14:34:52 +0200 | [diff] [blame] | 61 | #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) |
Michael Zaidman | 800eb09 | 2010-09-20 08:51:53 +0200 | [diff] [blame] | 62 | #define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_GBL_DATA_OFFSET - 0x4) |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 63 | |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 64 | /*----------------------------------------------------------------------- |
| 65 | * Serial Port |
| 66 | *----------------------------------------------------------------------*/ |
Stefan Roese | 550650d | 2010-09-20 16:05:31 +0200 | [diff] [blame] | 67 | #define CONFIG_CONS_INDEX 1 /* Use UART0 */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 68 | #define CONFIG_SYS_EXT_SERIAL_CLOCK (1843200 * 6) /* Ext clk @ 11.059 MHz */ |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 69 | |
| 70 | /*----------------------------------------------------------------------- |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 71 | * Environment |
| 72 | *----------------------------------------------------------------------*/ |
| 73 | /* |
| 74 | * Define here the location of the environment variables (FLASH or NVRAM). |
| 75 | * Note: DENX encourages to use redundant environment in FLASH. NVRAM is only |
| 76 | * supported for backward compatibility. |
| 77 | */ |
| 78 | #if 1 |
Jean-Christophe PLAGNIOL-VILLARD | 5a1aceb | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 79 | #define CONFIG_ENV_IS_IN_FLASH 1 /* use FLASH for environment vars */ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 80 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 9314cee | 2008-09-10 22:47:59 +0200 | [diff] [blame] | 81 | #define CONFIG_ENV_IS_IN_NVRAM 1 /* use NVRAM for environment vars */ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 82 | #endif |
| 83 | |
| 84 | |
| 85 | /*----------------------------------------------------------------------- |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 86 | * NVRAM/RTC |
| 87 | * |
| 88 | * NOTE: Upper 8 bytes of NVRAM is where the RTC registers are located. |
| 89 | * The DS1743 code assumes this condition (i.e. -- it assumes the base |
| 90 | * address for the RTC registers is: |
| 91 | * |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 92 | * CONFIG_SYS_NVRAM_BASE_ADDR + CONFIG_SYS_NVRAM_SIZE |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 93 | * |
| 94 | *----------------------------------------------------------------------*/ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 95 | #define CONFIG_SYS_NVRAM_SIZE (0x2000 - 8) /* NVRAM size(8k)- RTC regs */ |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 96 | #define CONFIG_RTC_DS174x 1 /* DS1743 RTC */ |
| 97 | |
Jean-Christophe PLAGNIOL-VILLARD | 9314cee | 2008-09-10 22:47:59 +0200 | [diff] [blame] | 98 | #ifdef CONFIG_ENV_IS_IN_NVRAM |
Jean-Christophe PLAGNIOL-VILLARD | 0e8d158 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 99 | #define CONFIG_ENV_SIZE 0x1000 /* Size of Environment vars */ |
| 100 | #define CONFIG_ENV_ADDR \ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 101 | (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE) |
Jean-Christophe PLAGNIOL-VILLARD | 9314cee | 2008-09-10 22:47:59 +0200 | [diff] [blame] | 102 | #endif /* CONFIG_ENV_IS_IN_NVRAM */ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 103 | |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 104 | /*----------------------------------------------------------------------- |
| 105 | * FLASH related |
| 106 | *----------------------------------------------------------------------*/ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 107 | #define CONFIG_SYS_MAX_FLASH_BANKS 3 /* number of banks */ |
| 108 | #define CONFIG_SYS_MAX_FLASH_SECT 64 /* sectors per device */ |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 109 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 110 | #undef CONFIG_SYS_FLASH_CHECKSUM |
| 111 | #define CONFIG_SYS_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */ |
| 112 | #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */ |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 113 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 114 | #define CONFIG_SYS_FLASH_ADDR0 0x5555 |
| 115 | #define CONFIG_SYS_FLASH_ADDR1 0x2aaa |
| 116 | #define CONFIG_SYS_FLASH_WORD_SIZE unsigned char |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 117 | |
Jean-Christophe PLAGNIOL-VILLARD | 5a1aceb | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 118 | #ifdef CONFIG_ENV_IS_IN_FLASH |
Jean-Christophe PLAGNIOL-VILLARD | 0e8d158 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 119 | #define CONFIG_ENV_SECT_SIZE 0x10000 /* size of one complete sector */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 120 | #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE) |
Jean-Christophe PLAGNIOL-VILLARD | 0e8d158 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 121 | #define CONFIG_ENV_SIZE 0x4000 /* Total Size of Environment Sector */ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 122 | |
| 123 | /* Address and size of Redundant Environment Sector */ |
Jean-Christophe PLAGNIOL-VILLARD | 0e8d158 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 124 | #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR-CONFIG_ENV_SECT_SIZE) |
| 125 | #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE) |
Jean-Christophe PLAGNIOL-VILLARD | 5a1aceb | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 126 | #endif /* CONFIG_ENV_IS_IN_FLASH */ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 127 | |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 128 | /*----------------------------------------------------------------------- |
| 129 | * DDR SDRAM |
| 130 | *----------------------------------------------------------------------*/ |
Stefan Roese | fa1aef1 | 2007-03-07 16:43:00 +0100 | [diff] [blame] | 131 | #define CONFIG_SPD_EEPROM 1 /* Use SPD EEPROM for setup */ |
wdenk | 42dfe7a | 2004-03-14 22:25:36 +0000 | [diff] [blame] | 132 | #define SPD_EEPROM_ADDRESS {0x53,0x52} /* SPD i2c spd addresses */ |
Stefan Roese | fa1aef1 | 2007-03-07 16:43:00 +0100 | [diff] [blame] | 133 | #define CONFIG_PROG_SDRAM_TLB 1 /* setup SDRAM TLB's dynamically*/ |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 134 | |
| 135 | /*----------------------------------------------------------------------- |
| 136 | * I2C |
| 137 | *----------------------------------------------------------------------*/ |
Dirk Eibach | 880540d | 2013-04-25 02:40:01 +0000 | [diff] [blame] | 138 | #define CONFIG_SYS_I2C_PPC4XX_SPEED_0 400000 |
Stefan Roese | 4f92ed5 | 2006-08-07 14:33:32 +0200 | [diff] [blame] | 139 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 140 | #define CONFIG_SYS_I2C_MULTI_EEPROMS |
| 141 | #define CONFIG_SYS_I2C_EEPROM_ADDR (0xa8>>1) |
| 142 | #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 |
| 143 | #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 |
| 144 | #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10 |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 145 | |
Stefan Roese | 72675dc | 2008-06-06 15:55:21 +0200 | [diff] [blame] | 146 | /* |
| 147 | * Default environment variables |
| 148 | */ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 149 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
Stefan Roese | 72675dc | 2008-06-06 15:55:21 +0200 | [diff] [blame] | 150 | CONFIG_AMCC_DEF_ENV \ |
| 151 | CONFIG_AMCC_DEF_ENV_PPC \ |
| 152 | CONFIG_AMCC_DEF_ENV_NOR_UPD \ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 153 | "kernel_addr=fff00000\0" \ |
| 154 | "ramdisk_addr=fff10000\0" \ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 155 | "" |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 156 | |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 157 | #define CONFIG_PHY_ADDR 1 /* PHY address, See schematics */ |
wdenk | 42dfe7a | 2004-03-14 22:25:36 +0000 | [diff] [blame] | 158 | #define CONFIG_PHY1_ADDR 2 |
| 159 | #define CONFIG_PHY2_ADDR 0x10 |
| 160 | #define CONFIG_PHY3_ADDR 0x18 |
Stefan Roese | d6c61aa | 2005-08-16 18:18:00 +0200 | [diff] [blame] | 161 | #define CONFIG_HAS_ETH0 |
| 162 | #define CONFIG_HAS_ETH1 |
| 163 | #define CONFIG_HAS_ETH2 |
| 164 | #define CONFIG_HAS_ETH3 |
wdenk | 42dfe7a | 2004-03-14 22:25:36 +0000 | [diff] [blame] | 165 | #define CONFIG_CIS8201_PHY 1 /* Enable 'special' RGMII mode for Cicada phy */ |
wdenk | 6fb6af6 | 2004-03-23 23:20:24 +0000 | [diff] [blame] | 166 | #define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex detection */ |
Stefan Roese | d6c61aa | 2005-08-16 18:18:00 +0200 | [diff] [blame] | 167 | #define CONFIG_PHY_RESET 1 /* reset phy upon startup */ |
| 168 | #define CONFIG_PHY_RESET_DELAY 1000 |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 169 | |
Jon Loeliger | a5cb230 | 2007-07-04 22:33:13 -0500 | [diff] [blame] | 170 | /* |
Stefan Roese | 72675dc | 2008-06-06 15:55:21 +0200 | [diff] [blame] | 171 | * Commands additional to the ones defined in amcc-common.h |
Jon Loeliger | 7f5c015 | 2007-07-10 09:38:02 -0500 | [diff] [blame] | 172 | */ |
Jon Loeliger | a5cb230 | 2007-07-04 22:33:13 -0500 | [diff] [blame] | 173 | #define CONFIG_CMD_DATE |
Jon Loeliger | a5cb230 | 2007-07-04 22:33:13 -0500 | [diff] [blame] | 174 | #define CONFIG_CMD_PCI |
Jon Loeliger | a5cb230 | 2007-07-04 22:33:13 -0500 | [diff] [blame] | 175 | #define CONFIG_CMD_SDRAM |
| 176 | #define CONFIG_CMD_SNTP |
| 177 | |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 178 | /*----------------------------------------------------------------------- |
| 179 | * PCI stuff |
| 180 | *----------------------------------------------------------------------- |
| 181 | */ |
| 182 | /* General PCI */ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 183 | #define CONFIG_PCI /* include pci support */ |
Gabor Juhos | 842033e | 2013-05-30 07:06:12 +0000 | [diff] [blame] | 184 | #define CONFIG_PCI_INDIRECT_BRIDGE /* indirect PCI bridge support */ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 185 | #define CONFIG_PCI_PNP /* do pci plug-and-play */ |
wdenk | 42dfe7a | 2004-03-14 22:25:36 +0000 | [diff] [blame] | 186 | #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 187 | #define CONFIG_SYS_PCI_TARGBASE 0x80000000 /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */ |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 188 | |
| 189 | /* Board-specific PCI */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 190 | #define CONFIG_SYS_PCI_TARGET_INIT /* let board init pci target */ |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 191 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 192 | #define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */ |
| 193 | #define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe /* Whatever */ |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 194 | |
wdenk | 0e6d798 | 2004-03-14 00:07:33 +0000 | [diff] [blame] | 195 | #endif /* __CONFIG_H */ |