wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2003 |
| 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 5 | * (C) Copyright 2004 |
| 6 | * Mark Jonas, Freescale Semiconductor, mark.jonas@motorola.com. |
| 7 | * |
wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 8 | * See file CREDITS for list of people who contributed to this |
| 9 | * project. |
| 10 | * |
| 11 | * This program is free software; you can redistribute it and/or |
| 12 | * modify it under the terms of the GNU General Public License as |
| 13 | * published by the Free Software Foundation; either version 2 of |
| 14 | * the License, or (at your option) any later version. |
| 15 | * |
| 16 | * This program is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public License |
| 22 | * along with this program; if not, write to the Free Software |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 24 | * MA 02111-1307 USA |
| 25 | */ |
| 26 | |
| 27 | #include <common.h> |
| 28 | #include <mpc5xxx.h> |
wdenk | 96e48cf | 2003-08-05 18:22:44 +0000 | [diff] [blame] | 29 | #include <pci.h> |
wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 30 | |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 31 | #if defined(CONFIG_MPC5200_DDR) |
| 32 | #include "mt46v16m16-75.h" |
| 33 | #else |
| 34 | #include "mt48lc16m16a2-75.h" |
| 35 | #endif |
| 36 | |
wdenk | d94f92c | 2003-08-28 09:41:22 +0000 | [diff] [blame] | 37 | #ifndef CFG_RAMBOOT |
wdenk | e0ac62d | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 38 | static void sdram_start (int hi_addr) |
| 39 | { |
| 40 | long hi_addr_bit = hi_addr ? 0x01000000 : 0; |
| 41 | |
wdenk | b2001f2 | 2003-12-20 22:45:10 +0000 | [diff] [blame] | 42 | /* unlock mode register */ |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 43 | *(vu_long *)MPC5XXX_SDRAM_CTRL = SDRAM_CONTROL | 0x80000000 | hi_addr_bit; |
| 44 | __asm__ volatile ("sync"); |
wdenk | 5cf91d6 | 2004-04-23 20:32:05 +0000 | [diff] [blame] | 45 | |
wdenk | b2001f2 | 2003-12-20 22:45:10 +0000 | [diff] [blame] | 46 | /* precharge all banks */ |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 47 | *(vu_long *)MPC5XXX_SDRAM_CTRL = SDRAM_CONTROL | 0x80000002 | hi_addr_bit; |
| 48 | __asm__ volatile ("sync"); |
| 49 | |
| 50 | #if SDRAM_DDR |
wdenk | b2001f2 | 2003-12-20 22:45:10 +0000 | [diff] [blame] | 51 | /* set mode register: extended mode */ |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 52 | *(vu_long *)MPC5XXX_SDRAM_MODE = SDRAM_EMODE; |
| 53 | __asm__ volatile ("sync"); |
| 54 | |
wdenk | b2001f2 | 2003-12-20 22:45:10 +0000 | [diff] [blame] | 55 | /* set mode register: reset DLL */ |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 56 | *(vu_long *)MPC5XXX_SDRAM_MODE = SDRAM_MODE | 0x04000000; |
| 57 | __asm__ volatile ("sync"); |
wdenk | e0ac62d | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 58 | #endif |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 59 | |
| 60 | /* precharge all banks */ |
| 61 | *(vu_long *)MPC5XXX_SDRAM_CTRL = SDRAM_CONTROL | 0x80000002 | hi_addr_bit; |
| 62 | __asm__ volatile ("sync"); |
| 63 | |
wdenk | f8d813e | 2004-03-02 14:05:39 +0000 | [diff] [blame] | 64 | /* auto refresh */ |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 65 | *(vu_long *)MPC5XXX_SDRAM_CTRL = SDRAM_CONTROL | 0x80000004 | hi_addr_bit; |
| 66 | __asm__ volatile ("sync"); |
| 67 | |
wdenk | e0ac62d | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 68 | /* set mode register */ |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 69 | *(vu_long *)MPC5XXX_SDRAM_MODE = SDRAM_MODE; |
| 70 | __asm__ volatile ("sync"); |
wdenk | 5cf91d6 | 2004-04-23 20:32:05 +0000 | [diff] [blame] | 71 | |
wdenk | e0ac62d | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 72 | /* normal operation */ |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 73 | *(vu_long *)MPC5XXX_SDRAM_CTRL = SDRAM_CONTROL | hi_addr_bit; |
| 74 | __asm__ volatile ("sync"); |
wdenk | e0ac62d | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 75 | } |
wdenk | d94f92c | 2003-08-28 09:41:22 +0000 | [diff] [blame] | 76 | #endif |
wdenk | e0ac62d | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 77 | |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 78 | /* |
| 79 | * ATTENTION: Although partially referenced initdram does NOT make real use |
| 80 | * use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE |
| 81 | * is something else than 0x00000000. |
| 82 | */ |
| 83 | |
| 84 | #if defined(CONFIG_MPC5200) |
wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 85 | long int initdram (int board_type) |
| 86 | { |
wdenk | d94f92c | 2003-08-28 09:41:22 +0000 | [diff] [blame] | 87 | ulong dramsize = 0; |
wdenk | b2001f2 | 2003-12-20 22:45:10 +0000 | [diff] [blame] | 88 | ulong dramsize2 = 0; |
wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 89 | #ifndef CFG_RAMBOOT |
wdenk | d94f92c | 2003-08-28 09:41:22 +0000 | [diff] [blame] | 90 | ulong test1, test2; |
wdenk | 5cf91d6 | 2004-04-23 20:32:05 +0000 | [diff] [blame] | 91 | |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 92 | /* setup SDRAM chip selects */ |
wdenk | e0ac62d | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 93 | *(vu_long *)MPC5XXX_SDRAM_CS0CFG = 0x0000001e;/* 2G at 0x0 */ |
| 94 | *(vu_long *)MPC5XXX_SDRAM_CS1CFG = 0x80000000;/* disabled */ |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 95 | __asm__ volatile ("sync"); |
wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 96 | |
wdenk | b2001f2 | 2003-12-20 22:45:10 +0000 | [diff] [blame] | 97 | /* setup config registers */ |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 98 | *(vu_long *)MPC5XXX_SDRAM_CONFIG1 = SDRAM_CONFIG1; |
| 99 | *(vu_long *)MPC5XXX_SDRAM_CONFIG2 = SDRAM_CONFIG2; |
| 100 | __asm__ volatile ("sync"); |
wdenk | d4ca31c | 2004-01-02 14:00:00 +0000 | [diff] [blame] | 101 | |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 102 | #if SDRAM_DDR |
| 103 | /* set tap delay */ |
| 104 | *(vu_long *)MPC5XXX_CDM_PORCFG = SDRAM_TAPDELAY; |
| 105 | __asm__ volatile ("sync"); |
wdenk | b2001f2 | 2003-12-20 22:45:10 +0000 | [diff] [blame] | 106 | #endif |
wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 107 | |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 108 | /* find RAM size using SDRAM CS0 only */ |
wdenk | e0ac62d | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 109 | sdram_start(0); |
wdenk | c83bf6a | 2004-01-06 22:38:14 +0000 | [diff] [blame] | 110 | test1 = get_ram_size((ulong *)CFG_SDRAM_BASE, 0x80000000); |
wdenk | e0ac62d | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 111 | sdram_start(1); |
wdenk | c83bf6a | 2004-01-06 22:38:14 +0000 | [diff] [blame] | 112 | test2 = get_ram_size((ulong *)CFG_SDRAM_BASE, 0x80000000); |
wdenk | e0ac62d | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 113 | if (test1 > test2) { |
| 114 | sdram_start(0); |
| 115 | dramsize = test1; |
| 116 | } else { |
| 117 | dramsize = test2; |
| 118 | } |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 119 | |
| 120 | /* memory smaller than 1MB is impossible */ |
| 121 | if (dramsize < (1 << 20)) { |
| 122 | dramsize = 0; |
| 123 | } |
wdenk | 5cf91d6 | 2004-04-23 20:32:05 +0000 | [diff] [blame] | 124 | |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 125 | /* set SDRAM CS0 size according to the amount of RAM found */ |
| 126 | if (dramsize > 0) { |
| 127 | *(vu_long *)MPC5XXX_SDRAM_CS0CFG = 0x13 + __builtin_ffs(dramsize >> 20) - 1; |
| 128 | } else { |
| 129 | *(vu_long *)MPC5XXX_SDRAM_CS0CFG = 0; /* disabled */ |
| 130 | } |
| 131 | |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 132 | /* let SDRAM CS1 start right after CS0 */ |
wdenk | b2001f2 | 2003-12-20 22:45:10 +0000 | [diff] [blame] | 133 | *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize + 0x0000001e;/* 2G */ |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 134 | |
| 135 | /* find RAM size using SDRAM CS1 only */ |
wdenk | a631092 | 2005-04-21 21:10:22 +0000 | [diff] [blame] | 136 | if (!dramsize) |
| 137 | sdram_start(0); |
| 138 | test2 = test1 = get_ram_size((ulong *)(CFG_SDRAM_BASE + dramsize), 0x80000000); |
| 139 | if (!dramsize) { |
| 140 | sdram_start(1); |
| 141 | test2 = get_ram_size((ulong *)(CFG_SDRAM_BASE + dramsize), 0x80000000); |
| 142 | } |
wdenk | b2001f2 | 2003-12-20 22:45:10 +0000 | [diff] [blame] | 143 | if (test1 > test2) { |
| 144 | sdram_start(0); |
| 145 | dramsize2 = test1; |
| 146 | } else { |
| 147 | dramsize2 = test2; |
| 148 | } |
wdenk | 5cf91d6 | 2004-04-23 20:32:05 +0000 | [diff] [blame] | 149 | |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 150 | /* memory smaller than 1MB is impossible */ |
| 151 | if (dramsize2 < (1 << 20)) { |
| 152 | dramsize2 = 0; |
| 153 | } |
wdenk | 5cf91d6 | 2004-04-23 20:32:05 +0000 | [diff] [blame] | 154 | |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 155 | /* set SDRAM CS1 size according to the amount of RAM found */ |
| 156 | if (dramsize2 > 0) { |
| 157 | *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize |
| 158 | | (0x13 + __builtin_ffs(dramsize2 >> 20) - 1); |
| 159 | } else { |
| 160 | *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize; /* disabled */ |
| 161 | } |
wdenk | e0ac62d | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 162 | |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 163 | #else /* CFG_RAMBOOT */ |
| 164 | |
| 165 | /* retrieve size of memory connected to SDRAM CS0 */ |
| 166 | dramsize = *(vu_long *)MPC5XXX_SDRAM_CS0CFG & 0xFF; |
| 167 | if (dramsize >= 0x13) { |
| 168 | dramsize = (1 << (dramsize - 0x13)) << 20; |
| 169 | } else { |
| 170 | dramsize = 0; |
| 171 | } |
| 172 | |
| 173 | /* retrieve size of memory connected to SDRAM CS1 */ |
| 174 | dramsize2 = *(vu_long *)MPC5XXX_SDRAM_CS1CFG & 0xFF; |
| 175 | if (dramsize2 >= 0x13) { |
| 176 | dramsize2 = (1 << (dramsize2 - 0x13)) << 20; |
| 177 | } else { |
| 178 | dramsize2 = 0; |
| 179 | } |
| 180 | |
wdenk | d94f92c | 2003-08-28 09:41:22 +0000 | [diff] [blame] | 181 | #endif /* CFG_RAMBOOT */ |
wdenk | b2001f2 | 2003-12-20 22:45:10 +0000 | [diff] [blame] | 182 | |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 183 | return dramsize + dramsize2; |
| 184 | } |
| 185 | |
| 186 | #elif defined(CONFIG_MGT5100) |
| 187 | |
| 188 | long int initdram (int board_type) |
| 189 | { |
| 190 | ulong dramsize = 0; |
| 191 | #ifndef CFG_RAMBOOT |
| 192 | ulong test1, test2; |
wdenk | 5cf91d6 | 2004-04-23 20:32:05 +0000 | [diff] [blame] | 193 | |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 194 | /* setup and enable SDRAM chip selects */ |
| 195 | *(vu_long *)MPC5XXX_SDRAM_START = 0x00000000; |
| 196 | *(vu_long *)MPC5XXX_SDRAM_STOP = 0x0000ffff;/* 2G */ |
| 197 | *(vu_long *)MPC5XXX_ADDECR |= (1 << 22); /* Enable SDRAM */ |
| 198 | __asm__ volatile ("sync"); |
| 199 | |
| 200 | /* setup config registers */ |
| 201 | *(vu_long *)MPC5XXX_SDRAM_CONFIG1 = SDRAM_CONFIG1; |
| 202 | *(vu_long *)MPC5XXX_SDRAM_CONFIG2 = SDRAM_CONFIG2; |
| 203 | |
| 204 | /* address select register */ |
| 205 | *(vu_long *)MPC5XXX_SDRAM_XLBSEL = SDRAM_ADDRSEL; |
| 206 | __asm__ volatile ("sync"); |
| 207 | |
| 208 | /* find RAM size */ |
| 209 | sdram_start(0); |
| 210 | test1 = get_ram_size((ulong *)CFG_SDRAM_BASE, 0x80000000); |
| 211 | sdram_start(1); |
| 212 | test2 = get_ram_size((ulong *)CFG_SDRAM_BASE, 0x80000000); |
| 213 | if (test1 > test2) { |
| 214 | sdram_start(0); |
| 215 | dramsize = test1; |
| 216 | } else { |
| 217 | dramsize = test2; |
| 218 | } |
| 219 | |
| 220 | /* set SDRAM end address according to size */ |
| 221 | *(vu_long *)MPC5XXX_SDRAM_STOP = ((dramsize - 1) >> 15); |
wdenk | 5cf91d6 | 2004-04-23 20:32:05 +0000 | [diff] [blame] | 222 | |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 223 | #else /* CFG_RAMBOOT */ |
| 224 | |
| 225 | /* Retrieve amount of SDRAM available */ |
| 226 | dramsize = ((*(vu_long *)MPC5XXX_SDRAM_STOP + 1) << 15); |
| 227 | |
| 228 | #endif /* CFG_RAMBOOT */ |
| 229 | |
wdenk | e0ac62d | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 230 | return dramsize; |
wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 231 | } |
| 232 | |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 233 | #else |
| 234 | #error Neither CONFIG_MPC5200 or CONFIG_MGT5100 defined |
| 235 | #endif |
| 236 | |
wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 237 | int checkboard (void) |
| 238 | { |
| 239 | #if defined(CONFIG_MPC5200) |
| 240 | puts ("Board: Motorola MPC5200 (IceCube)\n"); |
| 241 | #elif defined(CONFIG_MGT5100) |
| 242 | puts ("Board: Motorola MGT5100 (IceCube)\n"); |
| 243 | #endif |
| 244 | return 0; |
| 245 | } |
| 246 | |
| 247 | void flash_preinit(void) |
| 248 | { |
| 249 | /* |
| 250 | * Now, when we are in RAM, enable flash write |
| 251 | * access for detection process. |
| 252 | * Note that CS_BOOT cannot be cleared when |
| 253 | * executing in flash. |
| 254 | */ |
| 255 | #if defined(CONFIG_MGT5100) |
| 256 | *(vu_long *)MPC5XXX_ADDECR &= ~(1 << 25); /* disable CS_BOOT */ |
| 257 | *(vu_long *)MPC5XXX_ADDECR |= (1 << 16); /* enable CS0 */ |
| 258 | #endif |
| 259 | *(vu_long *)MPC5XXX_BOOTCS_CFG &= ~0x1; /* clear RO */ |
| 260 | } |
wdenk | 96e48cf | 2003-08-05 18:22:44 +0000 | [diff] [blame] | 261 | |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 262 | void flash_afterinit(ulong size) |
| 263 | { |
| 264 | if (size == 0x800000) { /* adjust mapping */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 265 | *(vu_long *)MPC5XXX_BOOTCS_START = *(vu_long *)MPC5XXX_CS0_START = |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 266 | START_REG(CFG_BOOTCS_START | size); |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 267 | *(vu_long *)MPC5XXX_BOOTCS_STOP = *(vu_long *)MPC5XXX_CS0_STOP = |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 268 | STOP_REG(CFG_BOOTCS_START | size, size); |
| 269 | } |
| 270 | } |
| 271 | |
wdenk | 96e48cf | 2003-08-05 18:22:44 +0000 | [diff] [blame] | 272 | #ifdef CONFIG_PCI |
| 273 | static struct pci_controller hose; |
| 274 | |
| 275 | extern void pci_mpc5xxx_init(struct pci_controller *); |
| 276 | |
| 277 | void pci_init_board(void) |
| 278 | { |
| 279 | pci_mpc5xxx_init(&hose); |
| 280 | } |
| 281 | #endif |
wdenk | c3f9d49 | 2004-03-14 00:59:59 +0000 | [diff] [blame] | 282 | |
| 283 | #if defined (CFG_CMD_IDE) && defined (CONFIG_IDE_RESET) |
| 284 | |
wdenk | 4d13cba | 2004-03-14 14:09:05 +0000 | [diff] [blame] | 285 | #define GPIO_PSC1_4 0x01000000UL |
wdenk | c3f9d49 | 2004-03-14 00:59:59 +0000 | [diff] [blame] | 286 | |
| 287 | void init_ide_reset (void) |
| 288 | { |
wdenk | 4d13cba | 2004-03-14 14:09:05 +0000 | [diff] [blame] | 289 | debug ("init_ide_reset\n"); |
wdenk | 42dfe7a | 2004-03-14 22:25:36 +0000 | [diff] [blame] | 290 | |
wdenk | c3f9d49 | 2004-03-14 00:59:59 +0000 | [diff] [blame] | 291 | /* Configure PSC1_4 as GPIO output for ATA reset */ |
wdenk | c3f9d49 | 2004-03-14 00:59:59 +0000 | [diff] [blame] | 292 | *(vu_long *) MPC5XXX_WU_GPIO_ENABLE |= GPIO_PSC1_4; |
wdenk | 4d13cba | 2004-03-14 14:09:05 +0000 | [diff] [blame] | 293 | *(vu_long *) MPC5XXX_WU_GPIO_DIR |= GPIO_PSC1_4; |
wdenk | 64f70be | 2004-09-28 20:34:50 +0000 | [diff] [blame] | 294 | /* Deassert reset */ |
| 295 | *(vu_long *) MPC5XXX_WU_GPIO_DATA |= GPIO_PSC1_4; |
wdenk | c3f9d49 | 2004-03-14 00:59:59 +0000 | [diff] [blame] | 296 | } |
| 297 | |
| 298 | void ide_set_reset (int idereset) |
| 299 | { |
wdenk | 4d13cba | 2004-03-14 14:09:05 +0000 | [diff] [blame] | 300 | debug ("ide_reset(%d)\n", idereset); |
| 301 | |
wdenk | c3f9d49 | 2004-03-14 00:59:59 +0000 | [diff] [blame] | 302 | if (idereset) { |
| 303 | *(vu_long *) MPC5XXX_WU_GPIO_DATA &= ~GPIO_PSC1_4; |
wdenk | 64f70be | 2004-09-28 20:34:50 +0000 | [diff] [blame] | 304 | /* Make a delay. MPC5200 spec says 25 usec min */ |
| 305 | udelay(500000); |
wdenk | c3f9d49 | 2004-03-14 00:59:59 +0000 | [diff] [blame] | 306 | } else { |
wdenk | 4d13cba | 2004-03-14 14:09:05 +0000 | [diff] [blame] | 307 | *(vu_long *) MPC5XXX_WU_GPIO_DATA |= GPIO_PSC1_4; |
wdenk | c3f9d49 | 2004-03-14 00:59:59 +0000 | [diff] [blame] | 308 | } |
| 309 | } |
| 310 | #endif /* defined (CFG_CMD_IDE) && defined (CONFIG_IDE_RESET) */ |