tqm85xx.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. /*
  2. * (C) Copyright 2005
  3. * Stefan Roese, DENX Software Engineering, sr@denx.de.
  4. *
  5. * Copyright 2004 Freescale Semiconductor.
  6. * (C) Copyright 2002,2003, Motorola Inc.
  7. * Xianghua Xiao, (X.Xiao@motorola.com)
  8. *
  9. * (C) Copyright 2002 Scott McNutt <smcnutt@artesyncp.com>
  10. *
  11. * See file CREDITS for list of people who contributed to this
  12. * project.
  13. *
  14. * This program is free software; you can redistribute it and/or
  15. * modify it under the terms of the GNU General Public License as
  16. * published by the Free Software Foundation; either version 2 of
  17. * the License, or (at your option) any later version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program; if not, write to the Free Software
  26. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  27. * MA 02111-1307 USA
  28. */
  29. #include <common.h>
  30. #include <pci.h>
  31. #include <asm/processor.h>
  32. #include <asm/immap_85xx.h>
  33. #include <ioports.h>
  34. #include <spd.h>
  35. #include <flash.h>
  36. DECLARE_GLOBAL_DATA_PTR;
  37. extern flash_info_t flash_info[]; /* FLASH chips info */
  38. void local_bus_init (void);
  39. long int fixed_sdram (void);
  40. ulong flash_get_size (ulong base, int banknum);
  41. #ifdef CONFIG_PS2MULT
  42. void ps2mult_early_init(void);
  43. #endif
  44. #ifdef CONFIG_CPM2
  45. /*
  46. * I/O Port configuration table
  47. *
  48. * if conf is 1, then that port pin will be configured at boot time
  49. * according to the five values podr/pdir/ppar/psor/pdat for that entry
  50. */
  51. const iop_conf_t iop_conf_tab[4][32] = {
  52. /* Port A configuration */
  53. { /* conf ppar psor pdir podr pdat */
  54. /* PA31 */ { 1, 1, 1, 0, 0, 0 }, /* FCC1 MII COL */
  55. /* PA30 */ { 1, 1, 1, 0, 0, 0 }, /* FCC1 MII CRS */
  56. /* PA29 */ { 1, 1, 1, 1, 0, 0 }, /* FCC1 MII TX_ER */
  57. /* PA28 */ { 1, 1, 1, 1, 0, 0 }, /* FCC1 MII TX_EN */
  58. /* PA27 */ { 1, 1, 1, 0, 0, 0 }, /* FCC1 MII RX_DV */
  59. /* PA26 */ { 1, 1, 1, 0, 0, 0 }, /* FCC1 MII RX_ER */
  60. /* PA25 */ { 0, 1, 0, 1, 0, 0 }, /* FCC1 ATMTXD[0] */
  61. /* PA24 */ { 0, 1, 0, 1, 0, 0 }, /* FCC1 ATMTXD[1] */
  62. /* PA23 */ { 0, 1, 0, 1, 0, 0 }, /* FCC1 ATMTXD[2] */
  63. /* PA22 */ { 0, 1, 0, 1, 0, 0 }, /* FCC1 ATMTXD[3] */
  64. /* PA21 */ { 1, 1, 0, 1, 0, 0 }, /* FCC1 MII TxD[3] */
  65. /* PA20 */ { 1, 1, 0, 1, 0, 0 }, /* FCC1 MII TxD[2] */
  66. /* PA19 */ { 1, 1, 0, 1, 0, 0 }, /* FCC1 MII TxD[1] */
  67. /* PA18 */ { 1, 1, 0, 1, 0, 0 }, /* FCC1 MII TxD[0] */
  68. /* PA17 */ { 1, 1, 0, 0, 0, 0 }, /* FCC1 MII RxD[0] */
  69. /* PA16 */ { 1, 1, 0, 0, 0, 0 }, /* FCC1 MII RxD[1] */
  70. /* PA15 */ { 1, 1, 0, 0, 0, 0 }, /* FCC1 MII RxD[2] */
  71. /* PA14 */ { 1, 1, 0, 0, 0, 0 }, /* FCC1 MII RxD[3] */
  72. /* PA13 */ { 0, 1, 0, 0, 0, 0 }, /* FCC1 ATMRXD[3] */
  73. /* PA12 */ { 0, 1, 0, 0, 0, 0 }, /* FCC1 ATMRXD[2] */
  74. /* PA11 */ { 0, 1, 0, 0, 0, 0 }, /* FCC1 ATMRXD[1] */
  75. /* PA10 */ { 0, 1, 0, 0, 0, 0 }, /* FCC1 ATMRXD[0] */
  76. /* PA9 */ { 0, 1, 1, 1, 0, 0 }, /* FCC1 L1TXD */
  77. /* PA8 */ { 0, 1, 1, 0, 0, 0 }, /* FCC1 L1RXD */
  78. /* PA7 */ { 0, 0, 0, 1, 0, 0 }, /* PA7 */
  79. /* PA6 */ { 0, 1, 1, 1, 0, 0 }, /* TDM A1 L1RSYNC */
  80. /* PA5 */ { 0, 0, 0, 1, 0, 0 }, /* PA5 */
  81. /* PA4 */ { 0, 0, 0, 1, 0, 0 }, /* PA4 */
  82. /* PA3 */ { 0, 0, 0, 1, 0, 0 }, /* PA3 */
  83. /* PA2 */ { 0, 0, 0, 1, 0, 0 }, /* PA2 */
  84. /* PA1 */ { 0, 0, 0, 0, 0, 0 }, /* FREERUN */
  85. /* PA0 */ { 0, 0, 0, 1, 0, 0 } /* PA0 */
  86. },
  87. /* Port B configuration */
  88. { /* conf ppar psor pdir podr pdat */
  89. /* PB31 */ { 1, 1, 0, 1, 0, 0 }, /* FCC2 MII TX_ER */
  90. /* PB30 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII RX_DV */
  91. /* PB29 */ { 1, 1, 1, 1, 0, 0 }, /* FCC2 MII TX_EN */
  92. /* PB28 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII RX_ER */
  93. /* PB27 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII COL */
  94. /* PB26 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII CRS */
  95. /* PB25 */ { 1, 1, 0, 1, 0, 0 }, /* FCC2 MII TxD[3] */
  96. /* PB24 */ { 1, 1, 0, 1, 0, 0 }, /* FCC2 MII TxD[2] */
  97. /* PB23 */ { 1, 1, 0, 1, 0, 0 }, /* FCC2 MII TxD[1] */
  98. /* PB22 */ { 1, 1, 0, 1, 0, 0 }, /* FCC2 MII TxD[0] */
  99. /* PB21 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII RxD[0] */
  100. /* PB20 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII RxD[1] */
  101. /* PB19 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII RxD[2] */
  102. /* PB18 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII RxD[3] */
  103. /* PB17 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3:RX_DIV */
  104. /* PB16 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3:RX_ERR */
  105. /* PB15 */ { 1, 1, 0, 1, 0, 0 }, /* FCC3:TX_ERR */
  106. /* PB14 */ { 1, 1, 0, 1, 0, 0 }, /* FCC3:TX_EN */
  107. /* PB13 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3:COL */
  108. /* PB12 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3:CRS */
  109. /* PB11 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3:RXD */
  110. /* PB10 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3:RXD */
  111. /* PB9 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3:RXD */
  112. /* PB8 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3:RXD */
  113. /* PB7 */ { 1, 1, 0, 1, 0, 0 }, /* FCC3:TXD */
  114. /* PB6 */ { 1, 1, 0, 1, 0, 0 }, /* FCC3:TXD */
  115. /* PB5 */ { 1, 1, 0, 1, 0, 0 }, /* FCC3:TXD */
  116. /* PB4 */ { 1, 1, 0, 1, 0, 0 }, /* FCC3:TXD */
  117. /* PB3 */ { 0, 0, 0, 0, 0, 0 }, /* pin doesn't exist */
  118. /* PB2 */ { 0, 0, 0, 0, 0, 0 }, /* pin doesn't exist */
  119. /* PB1 */ { 0, 0, 0, 0, 0, 0 }, /* pin doesn't exist */
  120. /* PB0 */ { 0, 0, 0, 0, 0, 0 } /* pin doesn't exist */
  121. },
  122. /* Port C */
  123. { /* conf ppar psor pdir podr pdat */
  124. /* PC31 */ { 0, 0, 0, 1, 0, 0 }, /* PC31 */
  125. /* PC30 */ { 0, 0, 0, 1, 0, 0 }, /* PC30 */
  126. /* PC29 */ { 0, 1, 1, 0, 0, 0 }, /* SCC1 EN *CLSN */
  127. /* PC28 */ { 0, 0, 0, 1, 0, 0 }, /* PC28 */
  128. /* PC27 */ { 0, 0, 0, 1, 0, 0 }, /* UART Clock in */
  129. /* PC26 */ { 0, 0, 0, 1, 0, 0 }, /* PC26 */
  130. /* PC25 */ { 0, 0, 0, 1, 0, 0 }, /* PC25 */
  131. /* PC24 */ { 0, 0, 0, 1, 0, 0 }, /* PC24 */
  132. /* PC23 */ { 0, 1, 0, 1, 0, 0 }, /* ATMTFCLK */
  133. /* PC22 */ { 0, 1, 0, 0, 0, 0 }, /* ATMRFCLK */
  134. /* PC21 */ { 1, 1, 0, 0, 0, 0 }, /* SCC1 EN RXCLK */
  135. /* PC20 */ { 1, 1, 0, 0, 0, 0 }, /* SCC1 EN TXCLK */
  136. /* PC19 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII RX_CLK CLK13 */
  137. /* PC18 */ { 1, 1, 0, 0, 0, 0 }, /* FCC Tx Clock (CLK14) */
  138. /* PC17 */ { 1, 1, 0, 0, 0, 0 }, /* PC17 */
  139. /* PC16 */ { 1, 1, 0, 0, 0, 0 }, /* FCC Tx Clock (CLK16) */
  140. /* PC15 */ { 0, 1, 0, 0, 0, 0 }, /* PC15 */
  141. /* PC14 */ { 0, 1, 0, 0, 0, 0 }, /* SCC1 EN *CD */
  142. /* PC13 */ { 0, 1, 0, 0, 0, 0 }, /* PC13 */
  143. /* PC12 */ { 0, 1, 0, 1, 0, 0 }, /* PC12 */
  144. /* PC11 */ { 0, 0, 0, 1, 0, 0 }, /* LXT971 transmit control */
  145. /* PC10 */ { 0, 0, 0, 1, 0, 0 }, /* FETHMDC */
  146. /* PC9 */ { 0, 0, 0, 0, 0, 0 }, /* FETHMDIO */
  147. /* PC8 */ { 0, 0, 0, 1, 0, 0 }, /* PC8 */
  148. /* PC7 */ { 0, 0, 0, 1, 0, 0 }, /* PC7 */
  149. /* PC6 */ { 0, 0, 0, 1, 0, 0 }, /* PC6 */
  150. /* PC5 */ { 0, 0, 0, 1, 0, 0 }, /* PC5 */
  151. /* PC4 */ { 0, 0, 0, 1, 0, 0 }, /* PC4 */
  152. /* PC3 */ { 0, 0, 0, 1, 0, 0 }, /* PC3 */
  153. /* PC2 */ { 0, 0, 0, 1, 0, 1 }, /* ENET FDE */
  154. /* PC1 */ { 0, 0, 0, 1, 0, 0 }, /* ENET DSQE */
  155. /* PC0 */ { 0, 0, 0, 1, 0, 0 }, /* ENET LBK */
  156. },
  157. /* Port D */
  158. { /* conf ppar psor pdir podr pdat */
  159. /* PD31 */ { 1, 1, 0, 0, 0, 0 }, /* SCC1 EN RxD */
  160. /* PD30 */ { 1, 1, 1, 1, 0, 0 }, /* SCC1 EN TxD */
  161. /* PD29 */ { 1, 1, 0, 1, 0, 0 }, /* SCC1 EN TENA */
  162. /* PD28 */ { 1, 1, 0, 0, 0, 0 }, /* PD28 */
  163. /* PD27 */ { 1, 1, 0, 1, 0, 0 }, /* PD27 */
  164. /* PD26 */ { 1, 1, 0, 1, 0, 0 }, /* PD26 */
  165. /* PD25 */ { 0, 0, 0, 1, 0, 0 }, /* PD25 */
  166. /* PD24 */ { 0, 0, 0, 1, 0, 0 }, /* PD24 */
  167. /* PD23 */ { 0, 0, 0, 1, 0, 0 }, /* PD23 */
  168. /* PD22 */ { 0, 0, 0, 1, 0, 0 }, /* PD22 */
  169. /* PD21 */ { 0, 0, 0, 1, 0, 0 }, /* PD21 */
  170. /* PD20 */ { 0, 0, 0, 1, 0, 0 }, /* PD20 */
  171. /* PD19 */ { 0, 0, 0, 1, 0, 0 }, /* PD19 */
  172. /* PD18 */ { 0, 0, 0, 1, 0, 0 }, /* PD18 */
  173. /* PD17 */ { 0, 1, 0, 0, 0, 0 }, /* FCC1 ATMRXPRTY */
  174. /* PD16 */ { 0, 1, 0, 1, 0, 0 }, /* FCC1 ATMTXPRTY */
  175. /* PD15 */ { 0, 1, 1, 0, 1, 0 }, /* I2C SDA */
  176. /* PD14 */ { 0, 0, 0, 1, 0, 0 }, /* LED */
  177. /* PD13 */ { 0, 0, 0, 0, 0, 0 }, /* PD13 */
  178. /* PD12 */ { 0, 0, 0, 0, 0, 0 }, /* PD12 */
  179. /* PD11 */ { 0, 0, 0, 0, 0, 0 }, /* PD11 */
  180. /* PD10 */ { 0, 0, 0, 0, 0, 0 }, /* PD10 */
  181. /* PD9 */ { 0, 1, 0, 1, 0, 0 }, /* SMC1 TXD */
  182. /* PD8 */ { 0, 1, 0, 0, 0, 0 }, /* SMC1 RXD */
  183. /* PD7 */ { 0, 0, 0, 1, 0, 1 }, /* PD7 */
  184. /* PD6 */ { 0, 0, 0, 1, 0, 1 }, /* PD6 */
  185. /* PD5 */ { 0, 0, 0, 1, 0, 1 }, /* PD5 */
  186. /* PD4 */ { 0, 0, 0, 1, 0, 1 }, /* PD4 */
  187. /* PD3 */ { 0, 0, 0, 0, 0, 0 }, /* pin doesn't exist */
  188. /* PD2 */ { 0, 0, 0, 0, 0, 0 }, /* pin doesn't exist */
  189. /* PD1 */ { 0, 0, 0, 0, 0, 0 }, /* pin doesn't exist */
  190. /* PD0 */ { 0, 0, 0, 0, 0, 0 } /* pin doesn't exist */
  191. }
  192. };
  193. #endif /* CONFIG_CPM2 */
  194. #define CASL_STRING1 "casl=xx"
  195. #define CASL_STRING2 "casl="
  196. static const int casl_table[] = { 20, 25, 30 };
  197. #define N_CASL (sizeof(casl_table) / sizeof(casl_table[0]))
  198. int cas_latency(void)
  199. {
  200. char *s = getenv("serial#");
  201. int casl;
  202. int val;
  203. int i;
  204. casl = CONFIG_DDR_DEFAULT_CL;
  205. if (s != NULL) {
  206. if (strncmp(s + strlen(s) - strlen(CASL_STRING1), CASL_STRING2,
  207. strlen(CASL_STRING2)) == 0) {
  208. val = simple_strtoul(s + strlen(s) - 2, NULL, 10);
  209. for (i=0; i<N_CASL; ++i) {
  210. if (val == casl_table[i]) {
  211. return val;
  212. }
  213. }
  214. }
  215. }
  216. return casl;
  217. }
  218. int checkboard (void)
  219. {
  220. char *s = getenv("serial#");
  221. printf("Board: %s", CONFIG_BOARDNAME);
  222. if (s != NULL) {
  223. puts(", serial# ");
  224. puts(s);
  225. }
  226. putc('\n');
  227. #ifdef CONFIG_PCI
  228. printf ("PCI1: 32 bit, %d MHz (compiled)\n",
  229. CONFIG_SYS_CLK_FREQ / 1000000);
  230. #else
  231. printf ("PCI1: disabled\n");
  232. #endif
  233. /*
  234. * Initialize local bus.
  235. */
  236. local_bus_init ();
  237. return 0;
  238. }
  239. int misc_init_r (void)
  240. {
  241. volatile immap_t *immap = (immap_t *)CFG_IMMR;
  242. volatile ccsr_lbc_t *memctl = &immap->im_lbc;
  243. /*
  244. * Adjust flash start and offset to detected values
  245. */
  246. gd->bd->bi_flashstart = 0 - gd->bd->bi_flashsize;
  247. gd->bd->bi_flashoffset = 0;
  248. /*
  249. * Check if boot FLASH isn't max size
  250. */
  251. if (gd->bd->bi_flashsize < (0 - CFG_FLASH0)) {
  252. memctl->or0 = gd->bd->bi_flashstart | (CFG_OR0_PRELIM & 0x00007fff);
  253. memctl->br0 = gd->bd->bi_flashstart | (CFG_BR0_PRELIM & 0x00007fff);
  254. /*
  255. * Re-check to get correct base address
  256. */
  257. flash_get_size(gd->bd->bi_flashstart, CFG_MAX_FLASH_BANKS - 1);
  258. }
  259. /*
  260. * Check if only one FLASH bank is available
  261. */
  262. if (gd->bd->bi_flashsize != CFG_MAX_FLASH_BANKS * (0 - CFG_FLASH0)) {
  263. memctl->or1 = 0;
  264. memctl->br1 = 0;
  265. /*
  266. * Re-do flash protection upon new addresses
  267. */
  268. flash_protect (FLAG_PROTECT_CLEAR,
  269. gd->bd->bi_flashstart, 0xffffffff,
  270. &flash_info[CFG_MAX_FLASH_BANKS - 1]);
  271. /* Monitor protection ON by default */
  272. flash_protect (FLAG_PROTECT_SET,
  273. CFG_MONITOR_BASE, CFG_MONITOR_BASE + monitor_flash_len - 1,
  274. &flash_info[CFG_MAX_FLASH_BANKS - 1]);
  275. /* Environment protection ON by default */
  276. flash_protect (FLAG_PROTECT_SET,
  277. CFG_ENV_ADDR,
  278. CFG_ENV_ADDR + CFG_ENV_SECT_SIZE - 1,
  279. &flash_info[CFG_MAX_FLASH_BANKS - 1]);
  280. /* Redundant environment protection ON by default */
  281. flash_protect (FLAG_PROTECT_SET,
  282. CFG_ENV_ADDR_REDUND,
  283. CFG_ENV_ADDR_REDUND + CFG_ENV_SIZE_REDUND - 1,
  284. &flash_info[CFG_MAX_FLASH_BANKS - 1]);
  285. }
  286. return 0;
  287. }
  288. /*
  289. * Initialize Local Bus
  290. */
  291. void local_bus_init (void)
  292. {
  293. volatile immap_t *immap = (immap_t *) CFG_IMMR;
  294. volatile ccsr_gur_t *gur = &immap->im_gur;
  295. volatile ccsr_lbc_t *lbc = &immap->im_lbc;
  296. uint clkdiv;
  297. uint lbc_hz;
  298. sys_info_t sysinfo;
  299. /*
  300. * Errata LBC11.
  301. * Fix Local Bus clock glitch when DLL is enabled.
  302. *
  303. * If localbus freq is < 66Mhz, DLL bypass mode must be used.
  304. * If localbus freq is > 133Mhz, DLL can be safely enabled.
  305. * Between 66 and 133, the DLL is enabled with an override workaround.
  306. */
  307. get_sys_info (&sysinfo);
  308. clkdiv = lbc->lcrr & 0x0f;
  309. lbc_hz = sysinfo.freqSystemBus / 1000000 / clkdiv;
  310. if (lbc_hz < 66) {
  311. lbc->lcrr = CFG_LBC_LCRR | 0x80000000; /* DLL Bypass */
  312. lbc->ltedr = 0xa4c80000; /* DK: !!! */
  313. } else if (lbc_hz >= 133) {
  314. lbc->lcrr = CFG_LBC_LCRR & (~0x80000000); /* DLL Enabled */
  315. } else {
  316. /*
  317. * On REV1 boards, need to change CLKDIV before enable DLL.
  318. * Default CLKDIV is 8, change it to 4 temporarily.
  319. */
  320. uint pvr = get_pvr ();
  321. uint temp_lbcdll = 0;
  322. if (pvr == PVR_85xx_REV1) {
  323. /* FIXME: Justify the high bit here. */
  324. lbc->lcrr = 0x10000004;
  325. }
  326. lbc->lcrr = CFG_LBC_LCRR & (~0x80000000); /* DLL Enabled */
  327. udelay (200);
  328. /*
  329. * Sample LBC DLL ctrl reg, upshift it to set the
  330. * override bits.
  331. */
  332. temp_lbcdll = gur->lbcdllcr;
  333. gur->lbcdllcr = (((temp_lbcdll & 0xff) << 16) | 0x80000000);
  334. asm ("sync;isync;msync");
  335. }
  336. }
  337. #if defined(CONFIG_PCI)
  338. /*
  339. * Initialize PCI Devices, report devices found.
  340. */
  341. #ifndef CONFIG_PCI_PNP
  342. static struct pci_config_table pci_mpc85xxads_config_table[] = {
  343. {PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
  344. PCI_IDSEL_NUMBER, PCI_ANY_ID,
  345. pci_cfgfunc_config_device, {PCI_ENET0_IOADDR,
  346. PCI_ENET0_MEMADDR,
  347. PCI_COMMAND_MEMORY |
  348. PCI_COMMAND_MASTER}},
  349. {}
  350. };
  351. #endif
  352. static struct pci_controller hose = {
  353. #ifndef CONFIG_PCI_PNP
  354. config_table:pci_mpc85xxads_config_table,
  355. #endif
  356. };
  357. #endif /* CONFIG_PCI */
  358. void pci_init_board (void)
  359. {
  360. #ifdef CONFIG_PCI
  361. extern void pci_mpc85xx_init (struct pci_controller *hose);
  362. pci_mpc85xx_init (&hose);
  363. #endif /* CONFIG_PCI */
  364. }
  365. #ifdef CONFIG_BOARD_EARLY_INIT_R
  366. int board_early_init_r (void)
  367. {
  368. #ifdef CONFIG_PS2MULT
  369. ps2mult_early_init();
  370. #endif /* CONFIG_PS2MULT */
  371. return (0);
  372. }
  373. #endif /* CONFIG_BOARD_EARLY_INIT_R */