Kumar Gala | 9617c8d | 2008-06-06 13:12:18 -0500 | [diff] [blame] | 1 | /* |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 2 | * Copyright 2004 Freescale Semiconductor. |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 3 | * (C) Copyright 2002,2003, Motorola Inc. |
| 4 | * Xianghua Xiao, (X.Xiao@motorola.com) |
| 5 | * |
| 6 | * (C) Copyright 2002 Scott McNutt <smcnutt@artesyncp.com> |
| 7 | * |
| 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 | |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 28 | #include <common.h> |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 29 | #include <pci.h> |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 30 | #include <asm/processor.h> |
Kumar Gala | 9617c8d | 2008-06-06 13:12:18 -0500 | [diff] [blame] | 31 | #include <asm/mmu.h> |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 32 | #include <asm/immap_85xx.h> |
Kumar Gala | 9617c8d | 2008-06-06 13:12:18 -0500 | [diff] [blame] | 33 | #include <asm/fsl_ddr_sdram.h> |
Kumar Gala | 0fd5ec6 | 2007-11-28 22:54:27 -0600 | [diff] [blame] | 34 | #include <libfdt.h> |
| 35 | #include <fdt_support.h> |
Matthew McClintock | 40d5fa3 | 2006-06-28 10:43:36 -0500 | [diff] [blame] | 36 | |
Jon Loeliger | d9b94f2 | 2005-07-25 14:05:07 -0500 | [diff] [blame] | 37 | #if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER) |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 38 | extern void ddr_enable_ecc(unsigned int dram_size); |
wdenk | 97d80fc | 2004-06-09 00:34:46 +0000 | [diff] [blame] | 39 | #endif |
| 40 | |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 41 | void local_bus_init(void); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 42 | |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 43 | int checkboard (void) |
| 44 | { |
wdenk | 97d80fc | 2004-06-09 00:34:46 +0000 | [diff] [blame] | 45 | puts("Board: ADS\n"); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 46 | |
| 47 | #ifdef CONFIG_PCI |
Peter Tyser | 8ca78f2 | 2010-10-29 17:59:24 -0500 | [diff] [blame] | 48 | printf("PCI1: 32 bit, %d MHz (compiled)\n", |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 49 | CONFIG_SYS_CLK_FREQ / 1000000); |
| 50 | #else |
Peter Tyser | 8ca78f2 | 2010-10-29 17:59:24 -0500 | [diff] [blame] | 51 | printf("PCI1: disabled\n"); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 52 | #endif |
| 53 | |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 54 | /* |
| 55 | * Initialize local bus. |
| 56 | */ |
| 57 | local_bus_init(); |
| 58 | |
wdenk | 97d80fc | 2004-06-09 00:34:46 +0000 | [diff] [blame] | 59 | return 0; |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 60 | } |
| 61 | |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 62 | /* |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 63 | * Initialize Local Bus |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 64 | */ |
| 65 | |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 66 | void |
| 67 | local_bus_init(void) |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 68 | { |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 69 | volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR); |
Becky Bruce | f51cdaf | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 70 | volatile fsl_lbc_t *lbc = LBC_BASE_ADDR; |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 71 | |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 72 | uint clkdiv; |
| 73 | uint lbc_hz; |
| 74 | sys_info_t sysinfo; |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 75 | |
| 76 | /* |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 77 | * Errata LBC11. |
| 78 | * Fix Local Bus clock glitch when DLL is enabled. |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 79 | * |
Wolfgang Denk | 8ed44d9 | 2008-10-19 02:35:50 +0200 | [diff] [blame] | 80 | * If localbus freq is < 66MHz, DLL bypass mode must be used. |
| 81 | * If localbus freq is > 133MHz, DLL can be safely enabled. |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 82 | * Between 66 and 133, the DLL is enabled with an override workaround. |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 83 | */ |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 84 | |
| 85 | get_sys_info(&sysinfo); |
Trent Piepho | a5d212a | 2008-12-03 15:16:34 -0800 | [diff] [blame] | 86 | clkdiv = lbc->lcrr & LCRR_CLKDIV; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 87 | lbc_hz = sysinfo.freqSystemBus / 1000000 / clkdiv; |
| 88 | |
| 89 | if (lbc_hz < 66) { |
Paul Gortmaker | a2af6a7 | 2012-08-13 13:48:57 +0000 | [diff] [blame] | 90 | lbc->lcrr = CONFIG_SYS_LBC_LCRR | LCRR_DBYP; /* DLL Bypass */ |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 91 | |
| 92 | } else if (lbc_hz >= 133) { |
Paul Gortmaker | a2af6a7 | 2012-08-13 13:48:57 +0000 | [diff] [blame] | 93 | lbc->lcrr = CONFIG_SYS_LBC_LCRR & (~LCRR_DBYP); /* DLL Enabled */ |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 94 | |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 95 | } else { |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 96 | /* |
| 97 | * On REV1 boards, need to change CLKDIV before enable DLL. |
| 98 | * Default CLKDIV is 8, change it to 4 temporarily. |
| 99 | */ |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 100 | uint pvr = get_pvr(); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 101 | uint temp_lbcdll = 0; |
wdenk | 97d80fc | 2004-06-09 00:34:46 +0000 | [diff] [blame] | 102 | |
| 103 | if (pvr == PVR_85xx_REV1) { |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 104 | /* FIXME: Justify the high bit here. */ |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 105 | lbc->lcrr = 0x10000004; |
wdenk | 97d80fc | 2004-06-09 00:34:46 +0000 | [diff] [blame] | 106 | } |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 107 | |
Paul Gortmaker | a2af6a7 | 2012-08-13 13:48:57 +0000 | [diff] [blame] | 108 | lbc->lcrr = CONFIG_SYS_LBC_LCRR & (~LCRR_DBYP); /* DLL Enabled */ |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 109 | udelay(200); |
| 110 | |
| 111 | /* |
| 112 | * Sample LBC DLL ctrl reg, upshift it to set the |
| 113 | * override bits. |
| 114 | */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 115 | temp_lbcdll = gur->lbcdllcr; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 116 | gur->lbcdllcr = (((temp_lbcdll & 0xff) << 16) | 0x80000000); |
| 117 | asm("sync;isync;msync"); |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 118 | } |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 119 | } |
| 120 | |
| 121 | |
| 122 | /* |
| 123 | * Initialize SDRAM memory on the Local Bus. |
| 124 | */ |
Becky Bruce | 70961ba | 2010-12-17 17:17:57 -0600 | [diff] [blame] | 125 | void lbc_sdram_init(void) |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 126 | { |
Becky Bruce | f51cdaf | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 127 | volatile fsl_lbc_t *lbc = LBC_BASE_ADDR; |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 128 | uint *sdram_addr = (uint *)CONFIG_SYS_LBC_SDRAM_BASE; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 129 | |
Becky Bruce | 7ea3871 | 2010-12-17 17:17:59 -0600 | [diff] [blame] | 130 | puts("LBC SDRAM: "); |
| 131 | print_size(CONFIG_SYS_LBC_SDRAM_SIZE * 1024 * 1024, |
| 132 | "\n "); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 133 | |
| 134 | /* |
| 135 | * Setup SDRAM Base and Option Registers |
| 136 | */ |
Becky Bruce | f51cdaf | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 137 | set_lbc_or(2, CONFIG_SYS_OR2_PRELIM); |
| 138 | set_lbc_br(2, CONFIG_SYS_BR2_PRELIM); |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 139 | lbc->lbcr = CONFIG_SYS_LBC_LBCR; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 140 | asm("msync"); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 141 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 142 | lbc->lsrt = CONFIG_SYS_LBC_LSRT; |
| 143 | lbc->mrtpr = CONFIG_SYS_LBC_MRTPR; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 144 | asm("sync"); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 145 | |
| 146 | /* |
| 147 | * Configure the SDRAM controller. |
| 148 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 149 | lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_1; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 150 | asm("sync"); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 151 | *sdram_addr = 0xff; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 152 | ppcDcbf((unsigned long) sdram_addr); |
| 153 | udelay(100); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 154 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 155 | lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_2; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 156 | asm("sync"); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 157 | *sdram_addr = 0xff; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 158 | ppcDcbf((unsigned long) sdram_addr); |
| 159 | udelay(100); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 160 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 161 | lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_3; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 162 | asm("sync"); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 163 | *sdram_addr = 0xff; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 164 | ppcDcbf((unsigned long) sdram_addr); |
| 165 | udelay(100); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 166 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 167 | lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_4; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 168 | asm("sync"); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 169 | *sdram_addr = 0xff; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 170 | ppcDcbf((unsigned long) sdram_addr); |
| 171 | udelay(100); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 172 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 173 | lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_5; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 174 | asm("sync"); |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 175 | *sdram_addr = 0xff; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 176 | ppcDcbf((unsigned long) sdram_addr); |
| 177 | udelay(100); |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 178 | } |
| 179 | |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 180 | #if !defined(CONFIG_SPD_EEPROM) |
| 181 | /************************************************************************* |
| 182 | * fixed sdram init -- doesn't use serial presence detect. |
| 183 | ************************************************************************/ |
Becky Bruce | 38dba0c | 2010-12-17 17:17:56 -0600 | [diff] [blame] | 184 | phys_size_t fixed_sdram(void) |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 185 | { |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 186 | #ifndef CONFIG_SYS_RAMBOOT |
Andy Fleming | e76cd5d | 2012-10-23 19:03:46 -0500 | [diff] [blame^] | 187 | volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC8xxx_DDR_ADDR); |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 188 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 189 | ddr->cs0_bnds = CONFIG_SYS_DDR_CS0_BNDS; |
| 190 | ddr->cs0_config = CONFIG_SYS_DDR_CS0_CONFIG; |
| 191 | ddr->timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1; |
| 192 | ddr->timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2; |
| 193 | ddr->sdram_mode = CONFIG_SYS_DDR_MODE; |
| 194 | ddr->sdram_interval = CONFIG_SYS_DDR_INTERVAL; |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 195 | #if defined (CONFIG_DDR_ECC) |
| 196 | ddr->err_disable = 0x0000000D; |
| 197 | ddr->err_sbe = 0x00ff0000; |
| 198 | #endif |
| 199 | asm("sync;isync;msync"); |
| 200 | udelay(500); |
| 201 | #if defined (CONFIG_DDR_ECC) |
| 202 | /* Enable ECC checking */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 203 | ddr->sdram_cfg = (CONFIG_SYS_DDR_CONTROL | 0x20000000); |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 204 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 205 | ddr->sdram_cfg = CONFIG_SYS_DDR_CONTROL; |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 206 | #endif |
| 207 | asm("sync; isync; msync"); |
| 208 | udelay(500); |
| 209 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 210 | return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024; |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 211 | } |
| 212 | #endif /* !defined(CONFIG_SPD_EEPROM) */ |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 213 | |
| 214 | |
| 215 | #if defined(CONFIG_PCI) |
| 216 | /* |
| 217 | * Initialize PCI Devices, report devices found. |
| 218 | */ |
| 219 | |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 220 | |
Matthew McClintock | 52c7a68 | 2006-06-28 10:45:41 -0500 | [diff] [blame] | 221 | static struct pci_controller hose; |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 222 | |
| 223 | #endif /* CONFIG_PCI */ |
| 224 | |
| 225 | |
| 226 | void |
| 227 | pci_init_board(void) |
| 228 | { |
| 229 | #ifdef CONFIG_PCI |
wdenk | 9aea953 | 2004-08-01 23:02:45 +0000 | [diff] [blame] | 230 | pci_mpc85xx_init(&hose); |
| 231 | #endif /* CONFIG_PCI */ |
| 232 | } |
Matthew McClintock | 40d5fa3 | 2006-06-28 10:43:36 -0500 | [diff] [blame] | 233 | |
| 234 | |
Kumar Gala | 0fd5ec6 | 2007-11-28 22:54:27 -0600 | [diff] [blame] | 235 | #if defined(CONFIG_OF_BOARD_SETUP) |
Matthew McClintock | 40d5fa3 | 2006-06-28 10:43:36 -0500 | [diff] [blame] | 236 | void |
| 237 | ft_board_setup(void *blob, bd_t *bd) |
| 238 | { |
Kumar Gala | 0fd5ec6 | 2007-11-28 22:54:27 -0600 | [diff] [blame] | 239 | int node, tmp[2]; |
| 240 | const char *path; |
Matthew McClintock | 40d5fa3 | 2006-06-28 10:43:36 -0500 | [diff] [blame] | 241 | |
| 242 | ft_cpu_setup(blob, bd); |
| 243 | |
Kumar Gala | 0fd5ec6 | 2007-11-28 22:54:27 -0600 | [diff] [blame] | 244 | node = fdt_path_offset(blob, "/aliases"); |
| 245 | tmp[0] = 0; |
| 246 | if (node >= 0) { |
| 247 | #ifdef CONFIG_PCI |
| 248 | path = fdt_getprop(blob, node, "pci0", NULL); |
| 249 | if (path) { |
| 250 | tmp[1] = hose.last_busno - hose.first_busno; |
| 251 | do_fixup_by_path(blob, path, "bus-range", &tmp, 8, 1); |
| 252 | } |
| 253 | #endif |
Matthew McClintock | 40d5fa3 | 2006-06-28 10:43:36 -0500 | [diff] [blame] | 254 | } |
| 255 | } |
| 256 | #endif |