Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 |
| 3 | * Matthias Fuchs, esd gmbh germany, matthias.fuchs@esd.eu |
| 4 | * |
Wolfgang Denk | bd8ec7e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __CONFIG_H |
| 9 | #define __CONFIG_H |
| 10 | |
| 11 | #define CONFIG_405EP 1 /* This is a PPC405 CPU */ |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 12 | #define CONFIG_PMC405DE 1 /* ...on a PMC405DE board */ |
| 13 | |
Wolfgang Denk | 291ba1b | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 14 | #define CONFIG_SYS_TEXT_BASE 0xFFFC0000 |
Matthias Fuchs | 7a9021b | 2015-01-12 22:47:34 +0100 | [diff] [blame] | 15 | #define CONFIG_DISPLAY_BOARDINFO |
Wolfgang Denk | 291ba1b | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 16 | |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 17 | #define CONFIG_BOARD_EARLY_INIT_F 1 /* call board_early_init_f() */ |
| 18 | #define CONFIG_MISC_INIT_R 1 /* call misc_init_r() */ |
| 19 | #define CONFIG_BOARD_TYPES 1 /* support board types */ |
| 20 | |
| 21 | #define CONFIG_SYS_CLK_FREQ 33330000 /* external frequency to pll */ |
| 22 | |
| 23 | #define CONFIG_BAUDRATE 115200 |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 24 | |
| 25 | #undef CONFIG_BOOTARGS |
| 26 | #undef CONFIG_BOOTCOMMAND |
| 27 | |
| 28 | #define CONFIG_PREBOOT /* enable preboot variable */ |
| 29 | |
| 30 | #define CONFIG_SYS_LOADS_BAUD_CHANGE 1 /* allow baudrate change*/ |
| 31 | |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 32 | #define CONFIG_HAS_ETH1 |
| 33 | |
| 34 | #define CONFIG_PPC4xx_EMAC |
| 35 | #define CONFIG_MII 1 /* MII PHY management */ |
| 36 | #define CONFIG_PHY_ADDR 1 /* PHY address */ |
| 37 | #define CONFIG_PHY1_ADDR 2 /* 2nd PHY address */ |
| 38 | |
| 39 | #define CONFIG_SYS_RX_ETH_BUFFER 16 /* use 16 rx buffer on 405 emac */ |
| 40 | |
| 41 | /* |
| 42 | * BOOTP options |
| 43 | */ |
| 44 | #define CONFIG_BOOTP_SUBNETMASK |
| 45 | #define CONFIG_BOOTP_GATEWAY |
| 46 | #define CONFIG_BOOTP_HOSTNAME |
| 47 | #define CONFIG_BOOTP_BOOTPATH |
| 48 | #define CONFIG_BOOTP_DNS |
| 49 | #define CONFIG_BOOTP_DNS2 |
| 50 | #define CONFIG_BOOTP_SEND_HOSTNAME |
| 51 | |
| 52 | /* |
| 53 | * Command line configuration. |
| 54 | */ |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 55 | #define CONFIG_CMD_BSP |
| 56 | #define CONFIG_CMD_CHIP_CONFIG |
| 57 | #define CONFIG_CMD_DATE |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 58 | #define CONFIG_CMD_EEPROM |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 59 | #define CONFIG_CMD_IRQ |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 60 | #define CONFIG_CMD_PCI |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 61 | |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 62 | #undef CONFIG_WATCHDOG /* watchdog disabled */ |
| 63 | #define CONFIG_SDRAM_BANK0 1 /* init onboard SDRAM bank 0 */ |
| 64 | #define CONFIG_PRAM 0 |
| 65 | |
| 66 | /* |
| 67 | * Miscellaneous configurable options |
| 68 | */ |
| 69 | #define CONFIG_SYS_LONGHELP |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 70 | |
| 71 | #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ |
| 72 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) |
| 73 | #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ |
| 74 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Args Buffer Size */ |
| 75 | |
| 76 | #define CONFIG_SYS_DEVICE_NULLDEV 1 /* include nulldev device */ |
| 77 | #define CONFIG_SYS_CONSOLE_INFO_QUIET 1 /* don't print console info */ |
| 78 | |
| 79 | #define CONFIG_SYS_MEMTEST_START 0x0100000 /* memtest works on */ |
| 80 | #define CONFIG_SYS_MEMTEST_END 0x3000000 /* 1 ... 48 MB in DRAM */ |
| 81 | |
Stefan Roese | 3ddce57 | 2010-09-20 16:05:31 +0200 | [diff] [blame] | 82 | #define CONFIG_CONS_INDEX 2 /* Use UART1 */ |
Stefan Roese | 3ddce57 | 2010-09-20 16:05:31 +0200 | [diff] [blame] | 83 | #define CONFIG_SYS_NS16550_SERIAL |
| 84 | #define CONFIG_SYS_NS16550_REG_SIZE 1 |
| 85 | #define CONFIG_SYS_NS16550_CLK get_serial_clock() |
| 86 | |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 87 | #undef CONFIG_SYS_EXT_SERIAL_CLOCK |
| 88 | #define CONFIG_SYS_BASE_BAUD 691200 |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 89 | |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 90 | #define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */ |
| 91 | #define CONFIG_SYS_EXTBDINFO 1 /* To use extended board_into (bd_t) */ |
| 92 | |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 93 | #define CONFIG_CMDLINE_EDITING 1 /* add command line history */ |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 94 | #define CONFIG_MX_CYCLIC 1 /* enable mdc/mwc commands */ |
| 95 | #define CONFIG_ZERO_BOOTDELAY_CHECK /* check for keypress on bootdelay==0 */ |
| 96 | #define CONFIG_VERSION_VARIABLE 1 /* include version env variable */ |
| 97 | |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 98 | /* |
| 99 | * PCI stuff |
| 100 | */ |
| 101 | #define PCI_HOST_ADAPTER 0 /* configure as pci adapter */ |
| 102 | #define PCI_HOST_FORCE 1 /* configure as pci host */ |
| 103 | #define PCI_HOST_AUTO 2 /* detected via arbiter enable */ |
| 104 | |
| 105 | #define CONFIG_PCI /* include pci support */ |
Gabor Juhos | b445873 | 2013-05-30 07:06:12 +0000 | [diff] [blame] | 106 | #define CONFIG_PCI_INDIRECT_BRIDGE /* indirect PCI bridge support */ |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 107 | #define CONFIG_PCI_HOST PCI_HOST_AUTO /* select pci host function */ |
| 108 | #define CONFIG_PCI_PNP /* do (not) pci plug-and-play */ |
| 109 | |
| 110 | #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ |
| 111 | |
| 112 | /* |
| 113 | * PCI identification |
| 114 | */ |
| 115 | #define CONFIG_SYS_PCI_SUBSYS_VENDORID PCI_VENDOR_ID_ESDGMBH |
| 116 | #define CONFIG_SYS_PCI_SUBSYS_ID_NONMONARCH 0x040e /* Dev ID: Non-Monarch */ |
| 117 | #define CONFIG_SYS_PCI_SUBSYS_ID_MONARCH 0x040f /* Dev ID: Monarch */ |
| 118 | #define CONFIG_SYS_PCI_CLASSCODE_NONMONARCH PCI_CLASS_PROCESSOR_POWERPC |
| 119 | #define CONFIG_SYS_PCI_CLASSCODE_MONARCH PCI_CLASS_BRIDGE_HOST |
| 120 | |
| 121 | #define CONFIG_SYS_PCI_CLASSCODE CONFIG_SYS_PCI_CLASSCODE_MONARCH |
| 122 | #define CONFIG_SYS_PCI_SUBSYS_DEVICEID CONFIG_SYS_PCI_SUBSYS_ID_MONARCH |
| 123 | |
| 124 | #define CONFIG_SYS_PCI_PTM1LA 0x00000000 /* point to sdram */ |
| 125 | #define CONFIG_SYS_PCI_PTM1MS 0xfc000001 /* 64MB, enable=1 */ |
| 126 | #define CONFIG_SYS_PCI_PTM1PCI 0x00000000 /* Host: use this pci address */ |
| 127 | #define CONFIG_SYS_PCI_PTM2LA 0xef000000 /* point to CPLD, GPIO */ |
| 128 | #define CONFIG_SYS_PCI_PTM2MS 0xff000001 /* 16MB, enable=1 */ |
| 129 | #define CONFIG_SYS_PCI_PTM2PCI 0x04000000 /* Host: use this pci address */ |
| 130 | |
Matthias Fuchs | a9d4799 | 2009-09-07 17:00:41 +0200 | [diff] [blame] | 131 | #define CONFIG_PCI_4xx_PTM_OVERWRITE 1 /* overwrite PTMx settings by env */ |
| 132 | |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 133 | /* |
| 134 | * For booting Linux, the board info and command line data |
| 135 | * have to be in the first 8 MB of memory, since this is |
| 136 | * the maximum mapped by the Linux kernel during initialization. |
| 137 | */ |
| 138 | #define CONFIG_SYS_BOOTMAPSZ (8 << 20) |
| 139 | /* |
| 140 | * FLASH organization |
| 141 | */ |
| 142 | #define CONFIG_SYS_FLASH_CFI 1 /* CFI compatible */ |
| 143 | #define CONFIG_FLASH_CFI_DRIVER 1 /* Use common CFI driver */ |
| 144 | |
| 145 | #define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE } |
| 146 | |
| 147 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max. no. memory banks */ |
| 148 | #define CONFIG_SYS_MAX_FLASH_SECT 512 /* max sectors per chip */ |
| 149 | |
| 150 | #define CONFIG_SYS_FLASH_ERASE_TOUT 120000 /* erase timeout (in ms) */ |
| 151 | #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* write timeout (in ms) */ |
| 152 | |
| 153 | #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1 /* buffered writes (faster) */ |
| 154 | #define CONFIG_SYS_FLASH_PROTECTION 1 /* hardware flash protection */ |
| 155 | |
| 156 | #define CONFIG_SYS_FLASH_EMPTY_INFO 1 /* 'E' for empty sector (flinfo) */ |
| 157 | #define CONFIG_SYS_FLASH_QUIET_TEST 1 /* don't warn upon unknown flash */ |
| 158 | |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 159 | /* |
| 160 | * Start addresses for the final memory configuration |
| 161 | * (Set up by the startup code) |
| 162 | * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0 |
| 163 | */ |
| 164 | #define CONFIG_SYS_SDRAM_BASE 0x00000000 |
| 165 | #define CONFIG_SYS_FLASH_BASE 0xfe000000 |
Wolfgang Denk | 0708bc6 | 2010-10-07 21:51:12 +0200 | [diff] [blame] | 166 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE |
| 167 | #define CONFIG_SYS_MONITOR_LEN (~(CONFIG_SYS_TEXT_BASE) + 1) |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 168 | #define CONFIG_SYS_MALLOC_LEN (256 * 1024) |
| 169 | |
| 170 | /* |
| 171 | * Environment in EEPROM setup |
| 172 | */ |
| 173 | #define CONFIG_ENV_IS_IN_EEPROM 1 |
| 174 | #define CONFIG_ENV_OFFSET 0x100 |
| 175 | #define CONFIG_ENV_SIZE 0x700 |
| 176 | |
| 177 | /* |
| 178 | * I2C EEPROM (24W16) for environment |
| 179 | */ |
Dirk Eibach | 42b204f | 2013-04-25 02:40:01 +0000 | [diff] [blame] | 180 | #define CONFIG_SYS_I2C |
| 181 | #define CONFIG_SYS_I2C_PPC4XX |
| 182 | #define CONFIG_SYS_I2C_PPC4XX_CH0 |
| 183 | #define CONFIG_SYS_I2C_PPC4XX_SPEED_0 400000 |
| 184 | #define CONFIG_SYS_I2C_PPC4XX_SLAVE_0 0x7F |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 185 | |
| 186 | #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 /* EEPROM 24W16 */ |
| 187 | #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 /* Bytes of address */ |
| 188 | /* mask of address bits that overflow into the "EEPROM chip address" */ |
| 189 | #define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW 0x07 |
| 190 | #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4 /* The Catalyst CAT24WC08 has */ |
| 191 | /* 16 byte page write mode using*/ |
| 192 | /* last 4 bits of the address */ |
| 193 | #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10 /* and takes up to 10 msec */ |
| 194 | #define CONFIG_SYS_EEPROM_WREN 1 |
| 195 | |
| 196 | #define CONFIG_4xx_CONFIG_I2C_EEPROM_ADDR 0x50 |
| 197 | #define CONFIG_4xx_CONFIG_I2C_EEPROM_OFFSET 0x40 |
| 198 | #define CONFIG_4xx_CONFIG_BLOCKSIZE 0x20 |
| 199 | |
| 200 | /* |
| 201 | * RTC |
| 202 | */ |
| 203 | #define CONFIG_RTC_RX8025 |
| 204 | |
| 205 | /* |
| 206 | * External Bus Controller (EBC) Setup |
| 207 | * (max. 55MHZ EBC clock) |
| 208 | */ |
| 209 | /* Memory Bank 0 (NOR flash) BAS=0xFE0,BS=32MB,BU=R/W,BW=16bit */ |
| 210 | #define CONFIG_SYS_EBC_PB0AP 0x03017200 |
| 211 | #define CONFIG_SYS_EBC_PB0CR (CONFIG_SYS_FLASH_BASE | 0xba000) |
| 212 | |
| 213 | /* Memory Bank 1 (CPLD) BAS=0xEF0,BS=16MB,BU=R/W,BW=16bit */ |
| 214 | #define CONFIG_SYS_CPLD_BASE 0xef000000 |
| 215 | #define CONFIG_SYS_EBC_PB1AP 0x00800000 |
| 216 | #define CONFIG_SYS_EBC_PB1CR (CONFIG_SYS_CPLD_BASE | 0x18000) |
| 217 | |
| 218 | /* |
| 219 | * Definitions for initial stack pointer and data area (in data cache) |
| 220 | */ |
| 221 | /* use on chip memory ( OCM ) for temperary stack until sdram is tested */ |
| 222 | #define CONFIG_SYS_TEMP_STACK_OCM 1 |
| 223 | |
| 224 | /* On Chip Memory location */ |
| 225 | #define CONFIG_SYS_OCM_DATA_ADDR 0xF8000000 |
| 226 | #define CONFIG_SYS_OCM_DATA_SIZE 0x1000 |
| 227 | /* inside SDRAM */ |
| 228 | #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_OCM_DATA_ADDR |
| 229 | /* End of used area in RAM */ |
Wolfgang Denk | 1c2e98e | 2010-10-26 13:32:32 +0200 | [diff] [blame] | 230 | #define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_OCM_DATA_SIZE |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 231 | |
Wolfgang Denk | 1c2e98e | 2010-10-26 13:32:32 +0200 | [diff] [blame] | 232 | #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - \ |
Wolfgang Denk | 0191e47 | 2010-10-26 14:34:52 +0200 | [diff] [blame] | 233 | GENERATED_GBL_DATA_SIZE) |
Matthias Fuchs | 1df4d25 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 234 | #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET |
| 235 | |
| 236 | /* |
| 237 | * GPIO Configuration |
| 238 | */ |
| 239 | #define CONFIG_SYS_4xx_GPIO_TABLE { /* GPIO Alt1 */ \ |
| 240 | { \ |
| 241 | /* GPIO Core 0 */ \ |
| 242 | { GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO0 PerBLast */ \ |
| 243 | { GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO1 TS1E */ \ |
| 244 | { GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO2 TS2E */ \ |
| 245 | { GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO3 TS1O */ \ |
| 246 | { GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO4 TS2O */ \ |
| 247 | { GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_1 }, /* GPIO5 TS3 */ \ |
| 248 | { GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_1 }, /* GPIO6 TS4 */ \ |
| 249 | { GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_1 }, /* GPIO7 TS5 */ \ |
| 250 | { GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO8 TS6 */ \ |
| 251 | { GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_1 }, /* GPIO9 TrcClk */ \ |
| 252 | { GPIO_BASE, GPIO_OUT, GPIO_ALT1, GPIO_OUT_NO_CHG }, /* GPIO10 PerCS1 */ \ |
| 253 | { GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO11 PerCS2 */ \ |
| 254 | { GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO12 PerCS3 */ \ |
| 255 | { GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO13 PerCS4 */ \ |
| 256 | { GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO14 PerAddr03 */ \ |
| 257 | { GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO15 PerAddr04 */ \ |
| 258 | { GPIO_BASE, GPIO_OUT, GPIO_ALT1, GPIO_OUT_NO_CHG }, /* GPIO16 PerAddr05 */ \ |
| 259 | { GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, /* GPIO17 IRQ0 */ \ |
| 260 | { GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, /* GPIO18 IRQ1 */ \ |
| 261 | { GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, /* GPIO19 IRQ2 */ \ |
| 262 | { GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, /* GPIO20 IRQ3 */ \ |
| 263 | { GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, /* GPIO21 IRQ4 */ \ |
| 264 | { GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, /* GPIO22 IRQ5 */ \ |
| 265 | { GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, /* GPIO23 IRQ6 */ \ |
| 266 | { GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, /* GPIO24 UART0_DCD */ \ |
| 267 | { GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO25 UART0_DSR */ \ |
| 268 | { GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO26 UART0_RI */ \ |
| 269 | { GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO27 UART0_DTR */ \ |
| 270 | { GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, /* GPIO28 UART1_Rx */ \ |
| 271 | { GPIO_BASE, GPIO_OUT, GPIO_ALT1, GPIO_OUT_NO_CHG }, /* GPIO29 UART1_Tx */ \ |
| 272 | { GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO30 RejectPkt0 */ \ |
| 273 | { GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_NO_CHG }, /* GPIO31 RejectPkt1 */ \ |
| 274 | } \ |
| 275 | } |
| 276 | |
| 277 | #define CONFIG_SYS_GPIO_HWREV_MASK (0xf0000000 >> 1) /* GPIO1..4 */ |
| 278 | #define CONFIG_SYS_GPIO_HWREV_SHIFT 27 |
| 279 | #define CONFIG_SYS_GPIO_LEDRUN_N (0x80000000 >> 5) /* GPIO5 */ |
| 280 | #define CONFIG_SYS_GPIO_LEDA_N (0x80000000 >> 6) /* GPIO6 */ |
| 281 | #define CONFIG_SYS_GPIO_LEDB_N (0x80000000 >> 7) /* GPIO7 */ |
| 282 | #define CONFIG_SYS_GPIO_SELFRST_N (0x80000000 >> 8) /* GPIO8 */ |
| 283 | #define CONFIG_SYS_GPIO_EEPROM_WP (0x80000000 >> 9) /* GPIO9 */ |
| 284 | #define CONFIG_SYS_GPIO_MONARCH_N (0x80000000 >> 11) /* GPIO11 */ |
| 285 | #define CONFIG_SYS_GPIO_EREADY (0x80000000 >> 12) /* GPIO12 */ |
| 286 | #define CONFIG_SYS_GPIO_M66EN (0x80000000 >> 13) /* GPIO13 */ |
| 287 | |
| 288 | /* |
| 289 | * Default speed selection (cpu_plb_opb_ebc) in mhz. |
| 290 | * This value will be set if iic boot eprom is disabled. |
| 291 | */ |
| 292 | #undef CONFIG_SYS_FCPU333MHZ |
| 293 | #define CONFIG_SYS_FCPU266MHZ |
| 294 | #undef CONFIG_SYS_FCPU133MHZ |
| 295 | |
| 296 | #if defined(CONFIG_SYS_FCPU333MHZ) |
| 297 | /* |
| 298 | * CPU: 333MHz |
| 299 | * PLB/SDRAM/MAL: 111MHz |
| 300 | * OPB: 55MHz |
| 301 | * EBC: 55MHz |
| 302 | * PCI: 55MHz (111MHz on M66EN=1) |
| 303 | */ |
| 304 | #define PLLMR0_DEFAULT (PLL_CPUDIV_1 | PLL_PLBDIV_3 | \ |
| 305 | PLL_OPBDIV_2 | PLL_EXTBUSDIV_2 | \ |
| 306 | PLL_MALDIV_1 | PLL_PCIDIV_2) |
| 307 | #define PLLMR1_DEFAULT (PLL_FBKDIV_10 | \ |
| 308 | PLL_FWDDIVA_3 | PLL_FWDDIVB_3 | \ |
| 309 | PLL_TUNE_15_M_40 | PLL_TUNE_VCO_HI) |
| 310 | #endif |
| 311 | |
| 312 | #if defined(CONFIG_SYS_FCPU266MHZ) |
| 313 | /* |
| 314 | * CPU: 266MHz |
| 315 | * PLB/SDRAM/MAL: 133MHz |
| 316 | * OPB: 66MHz |
| 317 | * EBC: 44MHz |
| 318 | * PCI: 44MHz (66MHz on M66EN=1) |
| 319 | */ |
| 320 | #define PLLMR0_DEFAULT (PLL_CPUDIV_1 | PLL_PLBDIV_2 | \ |
| 321 | PLL_OPBDIV_2 | PLL_EXTBUSDIV_3 | \ |
| 322 | PLL_MALDIV_1 | PLL_PCIDIV_3) |
| 323 | #define PLLMR1_DEFAULT (PLL_FBKDIV_8 | \ |
| 324 | PLL_FWDDIVA_3 | PLL_FWDDIVB_3 | \ |
| 325 | PLL_TUNE_15_M_40 | PLL_TUNE_VCO_LOW) |
| 326 | #endif |
| 327 | |
| 328 | #if defined(CONFIG_SYS_FCPU133MHZ) |
| 329 | /* |
| 330 | * CPU: 133MHz |
| 331 | * PLB/SDRAM/MAL: 133MHz |
| 332 | * OPB: 66MHz |
| 333 | * EBC: 44MHz |
| 334 | * PCI: 44MHz (66MHz on M66EN=1) |
| 335 | */ |
| 336 | #define PLLMR0_DEFAULT (PLL_CPUDIV_1 | PLL_PLBDIV_1 | \ |
| 337 | PLL_OPBDIV_2 | PLL_EXTBUSDIV_3 | \ |
| 338 | PLL_MALDIV_1 | PLL_PCIDIV_3) |
| 339 | #define PLLMR1_DEFAULT (PLL_FBKDIV_4 | \ |
| 340 | PLL_FWDDIVA_6 | PLL_FWDDIVB_6 | \ |
| 341 | PLL_TUNE_15_M_40 | PLL_TUNE_VCO_LOW) |
| 342 | #endif |
| 343 | |
| 344 | #endif /* __CONFIG_H */ |