wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2002 Scott McNutt <smcnutt@artesyncp.com> |
| 3 | * |
Wolfgang Denk | 3765b3e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | /************************************************************************ |
Wolfgang Denk | 0c8721a | 2005-09-23 11:05:55 +0200 | [diff] [blame] | 8 | * board/config_EBONY.h - configuration for AMCC 440GP Ref (Ebony) |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 9 | ***********************************************************************/ |
| 10 | |
| 11 | #ifndef __CONFIG_H |
| 12 | #define __CONFIG_H |
| 13 | |
| 14 | /*----------------------------------------------------------------------- |
| 15 | * High Level Configuration Options |
| 16 | *----------------------------------------------------------------------*/ |
| 17 | #define CONFIG_EBONY 1 /* Board is ebony */ |
Stefan Roese | 4a3cd9e | 2005-09-07 16:21:12 +0200 | [diff] [blame] | 18 | #define CONFIG_440GP 1 /* Specifc GP support */ |
Grzegorz Bernacki | efa35cf | 2007-06-15 11:19:28 +0200 | [diff] [blame] | 19 | #define CONFIG_440 1 /* ... PPC440 family */ |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 20 | #define CONFIG_4xx 1 /* ... PPC4xx family */ |
wdenk | c837dcb | 2004-01-20 23:12:12 +0000 | [diff] [blame] | 21 | #define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */ |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 22 | #define CONFIG_SYS_CLK_FREQ 33333333 /* external freq to pll */ |
| 23 | |
Wolfgang Denk | 2ae1824 | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 24 | #define CONFIG_SYS_TEXT_BASE 0xFFFC0000 |
| 25 | |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 26 | /* |
Stefan Roese | 490f204 | 2008-06-06 15:55:03 +0200 | [diff] [blame] | 27 | * Include common defines/options for all AMCC eval boards |
| 28 | */ |
| 29 | #define CONFIG_HOSTNAME ebony |
| 30 | #include "amcc-common.h" |
| 31 | |
| 32 | /* |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 33 | * Define here the location of the environment variables (FLASH or NVRAM). |
| 34 | * Note: DENX encourages to use redundant environment in FLASH. NVRAM is only |
| 35 | * supported for backward compatibility. |
| 36 | */ |
| 37 | #if 1 |
Jean-Christophe PLAGNIOL-VILLARD | 5a1aceb | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 38 | #define CONFIG_ENV_IS_IN_FLASH 1 /* use FLASH for environment vars */ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 39 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 9314cee | 2008-09-10 22:47:59 +0200 | [diff] [blame] | 40 | #define CONFIG_ENV_IS_IN_NVRAM 1 /* use NVRAM for environment vars */ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 41 | #endif |
| 42 | |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 43 | /*----------------------------------------------------------------------- |
| 44 | * Base addresses -- Note these are effective addresses where the |
| 45 | * actual resources get mapped (not physical addresses) |
| 46 | *----------------------------------------------------------------------*/ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 47 | #define CONFIG_SYS_SDRAM_BASE 0x00000000 /* _must_ be 0 */ |
| 48 | #define CONFIG_SYS_FLASH_BASE 0xff800000 /* start of FLASH */ |
| 49 | #define CONFIG_SYS_PCI_MEMBASE 0x80000000 /* mapped pci memory */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 50 | #define CONFIG_SYS_ISRAM_BASE 0xc0000000 /* internal SRAM */ |
| 51 | #define CONFIG_SYS_PCI_BASE 0xd0000000 /* internal PCI regs */ |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 52 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 53 | #define CONFIG_SYS_NVRAM_BASE_ADDR (CONFIG_SYS_PERIPHERAL_BASE + 0x08000000) |
| 54 | #define CONFIG_SYS_FPGA_BASE (CONFIG_SYS_PERIPHERAL_BASE + 0x08300000) |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 55 | |
| 56 | /*----------------------------------------------------------------------- |
| 57 | * Initial RAM & stack pointer (placed in internal SRAM) |
| 58 | *----------------------------------------------------------------------*/ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 59 | #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] | 60 | #define CONFIG_SYS_INIT_RAM_SIZE 0x2000 /* Size of used area in RAM */ |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 61 | |
Wolfgang Denk | 25ddd1f | 2010-10-26 14:34:52 +0200 | [diff] [blame] | 62 | #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 63 | #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 64 | |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 65 | /*----------------------------------------------------------------------- |
| 66 | * Serial Port |
| 67 | *----------------------------------------------------------------------*/ |
Stefan Roese | 550650d | 2010-09-20 16:05:31 +0200 | [diff] [blame] | 68 | #define CONFIG_CONS_INDEX 1 /* Use UART0 */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 69 | #define CONFIG_SYS_EXT_SERIAL_CLOCK (1843200 * 6) /* Ext clk @ 11.059 MHz */ |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 70 | |
| 71 | /*----------------------------------------------------------------------- |
| 72 | * NVRAM/RTC |
| 73 | * |
| 74 | * NOTE: Upper 8 bytes of NVRAM is where the RTC registers are located. |
| 75 | * The DS1743 code assumes this condition (i.e. -- it assumes the base |
| 76 | * address for the RTC registers is: |
| 77 | * |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 78 | * CONFIG_SYS_NVRAM_BASE_ADDR + CONFIG_SYS_NVRAM_SIZE |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 79 | * |
| 80 | *----------------------------------------------------------------------*/ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 81 | #define CONFIG_SYS_NVRAM_SIZE (0x2000 - 8) /* NVRAM size(8k)- RTC regs */ |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 82 | #define CONFIG_RTC_DS174x 1 /* DS1743 RTC */ |
| 83 | |
Jean-Christophe PLAGNIOL-VILLARD | 9314cee | 2008-09-10 22:47:59 +0200 | [diff] [blame] | 84 | #ifdef CONFIG_ENV_IS_IN_NVRAM |
Jean-Christophe PLAGNIOL-VILLARD | 0e8d158 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 85 | #define CONFIG_ENV_SIZE 0x1000 /* Size of Environment vars */ |
| 86 | #define CONFIG_ENV_ADDR \ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 87 | (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] | 88 | #endif /* CONFIG_ENV_IS_IN_NVRAM */ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 89 | |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 90 | /*----------------------------------------------------------------------- |
| 91 | * FLASH related |
| 92 | *----------------------------------------------------------------------*/ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 93 | #define CONFIG_SYS_MAX_FLASH_BANKS 3 /* number of banks */ |
| 94 | #define CONFIG_SYS_MAX_FLASH_SECT 32 /* sectors per device */ |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 95 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 96 | #define CONFIG_SYS_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */ |
| 97 | #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */ |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 98 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 99 | #define CONFIG_SYS_FLASH_EMPTY_INFO /* print 'E' for empty sector on flinfo */ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 100 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 101 | #define CONFIG_SYS_FLASH_ADDR0 0x5555 |
| 102 | #define CONFIG_SYS_FLASH_ADDR1 0x2aaa |
| 103 | #define CONFIG_SYS_FLASH_WORD_SIZE unsigned char |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 104 | |
Jean-Christophe PLAGNIOL-VILLARD | 5a1aceb | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 105 | #ifdef CONFIG_ENV_IS_IN_FLASH |
Jean-Christophe PLAGNIOL-VILLARD | 0e8d158 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 106 | #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] | 107 | #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] | 108 | #define CONFIG_ENV_SIZE 0x4000 /* Total Size of Environment Sector */ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 109 | |
| 110 | /* Address and size of Redundant Environment Sector */ |
Jean-Christophe PLAGNIOL-VILLARD | 0e8d158 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 111 | #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR-CONFIG_ENV_SECT_SIZE) |
| 112 | #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE) |
Jean-Christophe PLAGNIOL-VILLARD | 5a1aceb | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 113 | #endif /* CONFIG_ENV_IS_IN_FLASH */ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 114 | |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 115 | /*----------------------------------------------------------------------- |
| 116 | * DDR SDRAM |
| 117 | *----------------------------------------------------------------------*/ |
Stefan Roese | 8423e5e | 2007-03-16 21:11:42 +0100 | [diff] [blame] | 118 | #define CONFIG_SPD_EEPROM 1 /* Use SPD EEPROM for setup */ |
| 119 | #define SPD_EEPROM_ADDRESS {0x53,0x52} /* SPD i2c spd addresses */ |
| 120 | #define CONFIG_PROG_SDRAM_TLB 1 /* setup SDRAM TLB's dynamically*/ |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 121 | |
| 122 | /*----------------------------------------------------------------------- |
| 123 | * I2C |
| 124 | *----------------------------------------------------------------------*/ |
Dirk Eibach | 880540d | 2013-04-25 02:40:01 +0000 | [diff] [blame] | 125 | #define CONFIG_SYS_I2C_PPC4XX_SPEED_0 400000 |
Stefan Roese | 4f92ed5 | 2006-08-07 14:33:32 +0200 | [diff] [blame] | 126 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 127 | #define CONFIG_SYS_I2C_MULTI_EEPROMS |
| 128 | #define CONFIG_SYS_I2C_EEPROM_ADDR (0xa8>>1) |
| 129 | #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 |
| 130 | #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 |
| 131 | #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10 |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 132 | |
Stefan Roese | 490f204 | 2008-06-06 15:55:03 +0200 | [diff] [blame] | 133 | /* |
| 134 | * Default environment variables |
| 135 | */ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 136 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
Stefan Roese | 490f204 | 2008-06-06 15:55:03 +0200 | [diff] [blame] | 137 | CONFIG_AMCC_DEF_ENV \ |
| 138 | CONFIG_AMCC_DEF_ENV_POWERPC \ |
| 139 | CONFIG_AMCC_DEF_ENV_PPC_OLD \ |
| 140 | CONFIG_AMCC_DEF_ENV_NOR_UPD \ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 141 | "kernel_addr=ff800000\0" \ |
| 142 | "ramdisk_addr=ff810000\0" \ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 143 | "" |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 144 | |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 145 | #define CONFIG_PHY_ADDR 8 /* PHY address */ |
Stefan Roese | a00eccf | 2008-05-08 11:05:15 +0200 | [diff] [blame] | 146 | #define CONFIG_HAS_ETH0 |
Stefan Roese | 4a3cd9e | 2005-09-07 16:21:12 +0200 | [diff] [blame] | 147 | #define CONFIG_HAS_ETH1 |
| 148 | #define CONFIG_PHY1_ADDR 9 /* EMAC1 PHY address */ |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 149 | |
Jon Loeliger | 1bec3d3 | 2007-07-04 22:32:10 -0500 | [diff] [blame] | 150 | /* |
Stefan Roese | 490f204 | 2008-06-06 15:55:03 +0200 | [diff] [blame] | 151 | * Commands additional to the ones defined in amcc-common.h |
Jon Loeliger | 80ff4f9 | 2007-07-10 09:29:01 -0500 | [diff] [blame] | 152 | */ |
Jon Loeliger | 1bec3d3 | 2007-07-04 22:32:10 -0500 | [diff] [blame] | 153 | #define CONFIG_CMD_DATE |
Jon Loeliger | 1bec3d3 | 2007-07-04 22:32:10 -0500 | [diff] [blame] | 154 | #define CONFIG_CMD_PCI |
Jon Loeliger | 1bec3d3 | 2007-07-04 22:32:10 -0500 | [diff] [blame] | 155 | #define CONFIG_CMD_SDRAM |
| 156 | #define CONFIG_CMD_SNTP |
| 157 | |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 158 | /*----------------------------------------------------------------------- |
| 159 | * PCI stuff |
| 160 | *----------------------------------------------------------------------- |
| 161 | */ |
| 162 | /* General PCI */ |
| 163 | #define CONFIG_PCI /* include pci support */ |
Gabor Juhos | 842033e | 2013-05-30 07:06:12 +0000 | [diff] [blame] | 164 | #define CONFIG_PCI_INDIRECT_BRIDGE /* indirect PCI bridge support */ |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 165 | #define CONFIG_PCI_PNP /* do pci plug-and-play */ |
| 166 | #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 167 | #define CONFIG_SYS_PCI_TARGBASE 0x80000000 /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */ |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 168 | |
| 169 | /* Board-specific PCI */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 170 | #define CONFIG_SYS_PCI_TARGET_INIT /* let board init pci target */ |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 171 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 172 | #define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */ |
| 173 | #define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe /* Whatever */ |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 174 | |
wdenk | acea76a | 2002-09-20 09:17:33 +0000 | [diff] [blame] | 175 | #endif /* __CONFIG_H */ |