atc.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. /*
  2. * (C) Copyright 2001
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. #include <common.h>
  24. #include <ioports.h>
  25. #include <mpc8260.h>
  26. #include <pci.h>
  27. /*
  28. * I/O Port configuration table
  29. *
  30. * if conf is 1, then that port pin will be configured at boot time
  31. * according to the five values podr/pdir/ppar/psor/pdat for that entry
  32. */
  33. const iop_conf_t iop_conf_tab[4][32] = {
  34. /* Port A configuration */
  35. { /* conf ppar psor pdir podr pdat */
  36. /* PA31 */ { 1, 1, 1, 0, 0, 0 }, /* FCC1 MII COL */
  37. /* PA30 */ { 1, 1, 1, 0, 0, 0 }, /* FCC1 MII CRS */
  38. /* PA29 */ { 1, 1, 1, 1, 0, 0 }, /* FCC1 MII TX_ER */
  39. /* PA28 */ { 1, 1, 1, 1, 0, 0 }, /* FCC1 MII TX_EN */
  40. /* PA27 */ { 1, 1, 1, 0, 0, 0 }, /* FCC1 MII RX_DV */
  41. /* PA26 */ { 1, 1, 1, 0, 0, 0 }, /* FCC1 MII RX_ER */
  42. /* PA25 */ { 1, 0, 0, 1, 0, 0 }, /* FCC2 MII MDIO */
  43. /* PA24 */ { 1, 0, 0, 1, 0, 0 }, /* FCC2 MII MDC */
  44. /* PA23 */ { 1, 0, 0, 1, 0, 0 }, /* FCC1 MII MDIO */
  45. /* PA22 */ { 1, 0, 0, 1, 0, 0 }, /* FCC1 MII MDC */
  46. /* PA21 */ { 1, 1, 0, 1, 0, 0 }, /* FCC1 MII TxD[3] */
  47. /* PA20 */ { 1, 1, 0, 1, 0, 0 }, /* FCC1 MII TxD[2] */
  48. /* PA19 */ { 1, 1, 0, 1, 0, 0 }, /* FCC1 MII TxD[1] */
  49. /* PA18 */ { 1, 1, 0, 1, 0, 0 }, /* FCC1 MII TxD[0] */
  50. /* PA17 */ { 1, 1, 0, 0, 0, 0 }, /* FCC1 MII RxD[0] */
  51. /* PA16 */ { 1, 1, 0, 0, 0, 0 }, /* FCC1 MII RxD[1] */
  52. /* PA15 */ { 1, 1, 0, 0, 0, 0 }, /* FCC1 MII RxD[2] */
  53. /* PA14 */ { 1, 1, 0, 0, 0, 0 }, /* FCC1 MII RxD[3] */
  54. /* PA13 */ { 1, 0, 0, 1, 0, 0 }, /* FCC2 MII TXSL1 */
  55. /* PA12 */ { 1, 0, 0, 1, 0, 1 }, /* FCC2 MII TXSL0 */
  56. /* PA11 */ { 1, 0, 0, 1, 0, 0 }, /* FCC1 MII TXSL1 */
  57. /* PA10 */ { 1, 0, 0, 1, 0, 1 }, /* FCC1 MII TXSL0 */
  58. #if 1
  59. /* PA9 */ { 0, 1, 0, 1, 0, 0 }, /* SMC2 TXD */
  60. /* PA8 */ { 0, 1, 0, 0, 0, 0 }, /* SMC2 RXD */
  61. #else
  62. /* PA9 */ { 1, 1, 0, 1, 0, 0 }, /* SMC2 TXD */
  63. /* PA8 */ { 1, 1, 0, 0, 0, 0 }, /* SMC2 RXD */
  64. #endif
  65. /* PA7 */ { 0, 0, 0, 0, 0, 0 }, /* PA7 */
  66. /* PA6 */ { 1, 0, 0, 1, 0, 1 }, /* FCC2 MII PAUSE */
  67. /* PA5 */ { 1, 0, 0, 1, 0, 1 }, /* FCC1 MII PAUSE */
  68. /* PA4 */ { 1, 0, 0, 1, 0, 0 }, /* FCC2 MII PWRDN */
  69. /* PA3 */ { 1, 0, 0, 1, 0, 0 }, /* FCC1 MII PWRDN */
  70. /* PA2 */ { 0, 0, 0, 0, 0, 0 }, /* PA2 */
  71. /* PA1 */ { 1, 0, 0, 0, 0, 0 }, /* FCC2 MII MDINT */
  72. /* PA0 */ { 1, 0, 0, 1, 0, 0 } /* FCC1 MII MDINT */
  73. },
  74. /* Port B configuration */
  75. { /* conf ppar psor pdir podr pdat */
  76. /* PB31 */ { 1, 1, 0, 1, 0, 0 }, /* FCC2 MII TX_ER */
  77. /* PB30 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII RX_DV */
  78. /* PB29 */ { 1, 1, 1, 1, 0, 0 }, /* FCC2 MII TX_EN */
  79. /* PB28 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII RX_ER */
  80. /* PB27 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII COL */
  81. /* PB26 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII CRS */
  82. /* PB25 */ { 1, 1, 0, 1, 0, 0 }, /* FCC2 MII TxD[3] */
  83. /* PB24 */ { 1, 1, 0, 1, 0, 0 }, /* FCC2 MII TxD[2] */
  84. /* PB23 */ { 1, 1, 0, 1, 0, 0 }, /* FCC2 MII TxD[1] */
  85. /* PB22 */ { 1, 1, 0, 1, 0, 0 }, /* FCC2 MII TxD[0] */
  86. /* PB21 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII RxD[0] */
  87. /* PB20 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII RxD[1] */
  88. /* PB19 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII RxD[2] */
  89. /* PB18 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII RxD[3] */
  90. /* PB17 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3 MII RX_DV */
  91. /* PB16 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3 MII RX_ER */
  92. /* PB15 */ { 1, 1, 0, 1, 0, 0 }, /* FCC3 MII TX_ER */
  93. /* PB14 */ { 1, 1, 0, 1, 0, 0 }, /* FCC3 MII TX_EN */
  94. /* PB13 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3 MII COL */
  95. /* PB12 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3 MII CRS */
  96. /* PB11 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3 MII RxD */
  97. /* PB10 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3 MII RxD */
  98. /* PB9 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3 MII RxD */
  99. /* PB8 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3 MII RxD */
  100. /* PB7 */ { 1, 1, 0, 1, 0, 0 }, /* FCC3 MII TxD */
  101. /* PB6 */ { 1, 1, 0, 1, 0, 0 }, /* FCC3 MII TxD */
  102. /* PB5 */ { 1, 1, 0, 1, 0, 0 }, /* FCC3 MII TxD */
  103. /* PB4 */ { 1, 1, 0, 1, 0, 0 }, /* FCC3 MII TxD */
  104. /* PB3 */ { 0, 0, 0, 0, 0, 0 }, /* PB3 */
  105. /* PB2 */ { 0, 0, 0, 0, 0, 0 }, /* PB2 */
  106. /* PB1 */ { 0, 0, 0, 0, 0, 0 }, /* PB1 */
  107. /* PB0 */ { 0, 0, 0, 0, 0, 0 } /* PB0 */
  108. },
  109. /* Port C */
  110. { /* conf ppar psor pdir podr pdat */
  111. /* PC31 */ { 0, 0, 0, 0, 0, 0 }, /* PC31 */
  112. /* PC30 */ { 0, 0, 0, 0, 0, 0 }, /* PC30 */
  113. /* PC29 */ { 1, 0, 0, 0, 0, 0 }, /* SCC1 CTS */
  114. /* PC28 */ { 1, 0, 0, 0, 0, 0 }, /* SCC2 CTS */
  115. /* PC27 */ { 0, 0, 0, 0, 0, 0 }, /* PC27 */
  116. /* PC26 */ { 0, 0, 0, 0, 0, 0 }, /* PC26 */
  117. /* PC25 */ { 0, 0, 0, 0, 0, 0 }, /* PC25 */
  118. /* PC24 */ { 0, 0, 0, 0, 0, 0 }, /* PC24 */
  119. /* PC23 */ { 0, 0, 0, 0, 0, 0 }, /* FDC37C78 DACFD */
  120. /* PC22 */ { 0, 0, 0, 0, 0, 0 }, /* FDC37C78 DNFD */
  121. /* PC21 */ { 1, 1, 0, 0, 0, 0 }, /* FCC1 MII RX_CLK */
  122. /* PC20 */ { 1, 1, 0, 0, 0, 0 }, /* FCC1 MII TX_CLK */
  123. /* PC19 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII RX_CLK */
  124. /* PC18 */ { 1, 1, 0, 0, 0, 0 }, /* FCC2 MII TX_CLK */
  125. /* PC17 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3 MII RX_CLK */
  126. /* PC16 */ { 1, 1, 0, 0, 0, 0 }, /* FCC3 MII TX_CLK */
  127. #if 0
  128. /* PC15 */ { 0, 0, 0, 0, 0, 0 }, /* PC15 */
  129. #else
  130. /* PC15 */ { 1, 1, 0, 1, 0, 0 }, /* PC15 */
  131. #endif
  132. /* PC14 */ { 0, 0, 0, 0, 0, 0 }, /* PC14 */
  133. /* PC13 */ { 0, 0, 0, 0, 0, 0 }, /* PC13 */
  134. /* PC12 */ { 0, 0, 0, 0, 0, 0 }, /* PC12 */
  135. /* PC11 */ { 0, 0, 0, 0, 0, 0 }, /* PC11 */
  136. /* PC10 */ { 0, 0, 0, 0, 0, 0 }, /* PC10 */
  137. /* PC9 */ { 0, 0, 0, 0, 0, 0 }, /* FC9 */
  138. /* PC8 */ { 0, 0, 0, 0, 0, 0 }, /* PC8 */
  139. /* PC7 */ { 0, 0, 0, 0, 0, 0 }, /* PC7 */
  140. /* PC6 */ { 0, 0, 0, 0, 0, 0 }, /* PC6 */
  141. /* PC5 */ { 0, 0, 0, 0, 0, 0 }, /* PC5 */
  142. /* PC4 */ { 0, 0, 0, 0, 0, 0 }, /* PC4 */
  143. /* PC3 */ { 0, 0, 0, 0, 0, 0 }, /* PC3 */
  144. /* PC2 */ { 0, 0, 0, 0, 0, 0 }, /* PC2 */
  145. /* PC1 */ { 0, 0, 0, 0, 0, 0 }, /* PC1 */
  146. /* PC0 */ { 0, 0, 0, 0, 0, 0 }, /* FDC37C78 DRQFD */
  147. },
  148. /* Port D */
  149. { /* conf ppar psor pdir podr pdat */
  150. /* PD31 */ { 1, 1, 0, 0, 0, 0 }, /* SCC1 RXD */
  151. /* PD30 */ { 1, 1, 1, 1, 0, 0 }, /* SCC1 TXD */
  152. /* PD29 */ { 1, 0, 0, 1, 0, 0 }, /* SCC1 RTS */
  153. /* PD28 */ { 1, 1, 0, 0, 0, 0 }, /* SCC2 RXD */
  154. /* PD27 */ { 1, 1, 0, 1, 0, 0 }, /* SCC2 TXD */
  155. /* PD26 */ { 1, 0, 0, 1, 0, 0 }, /* SCC2 RTS */
  156. /* PD25 */ { 0, 0, 0, 0, 0, 0 }, /* PD25 */
  157. /* PD24 */ { 0, 0, 0, 0, 0, 0 }, /* PD24 */
  158. /* PD23 */ { 0, 0, 0, 0, 0, 0 }, /* PD23 */
  159. /* PD22 */ { 0, 0, 0, 0, 0, 0 }, /* PD22 */
  160. /* PD21 */ { 0, 0, 0, 0, 0, 0 }, /* PD21 */
  161. /* PD20 */ { 0, 0, 0, 0, 0, 0 }, /* PD20 */
  162. /* PD19 */ { 0, 0, 0, 0, 0, 0 }, /* PD19 */
  163. /* PD18 */ { 0, 0, 0, 0, 0, 0 }, /* PD18 */
  164. /* PD17 */ { 0, 0, 0, 0, 0, 0 }, /* PD17 */
  165. /* PD16 */ { 0, 0, 0, 0, 0, 0 }, /* PD16 */
  166. #if defined(CONFIG_SOFT_I2C)
  167. /* PD15 */ { 1, 0, 0, 1, 1, 1 }, /* I2C SDA */
  168. /* PD14 */ { 1, 0, 0, 1, 1, 1 }, /* I2C SCL */
  169. #else
  170. #if defined(CONFIG_HARD_I2C)
  171. /* PD15 */ { 1, 1, 1, 0, 1, 0 }, /* I2C SDA */
  172. /* PD14 */ { 1, 1, 1, 0, 1, 0 }, /* I2C SCL */
  173. #else /* normal I/O port pins */
  174. /* PD15 */ { 1, 1, 1, 0, 1, 0 }, /* I2C SDA */
  175. /* PD14 */ { 1, 1, 1, 0, 1, 0 }, /* I2C SCL */
  176. #endif
  177. #endif
  178. /* PD13 */ { 0, 0, 0, 0, 0, 0 }, /* PD13 */
  179. /* PD12 */ { 0, 0, 0, 0, 0, 0 }, /* PD12 */
  180. /* PD11 */ { 0, 0, 0, 0, 0, 0 }, /* PD11 */
  181. /* PD10 */ { 0, 0, 0, 0, 0, 0 }, /* PD10 */
  182. /* PD9 */ { 1, 1, 0, 1, 0, 0 }, /* SMC1 TXD */
  183. /* PD8 */ { 1, 1, 0, 0, 0, 0 }, /* SMC1 RXD */
  184. /* PD7 */ { 0, 0, 0, 0, 0, 0 }, /* PD7 */
  185. /* PD6 */ { 0, 0, 0, 0, 0, 0 }, /* PD6 */
  186. /* PD5 */ { 0, 0, 0, 0, 0, 0 }, /* PD5 */
  187. #if 0
  188. /* PD4 */ { 0, 0, 0, 0, 0, 0 }, /* PD4 */
  189. #else
  190. /* PD4 */ { 1, 1, 1, 0, 0, 0 }, /* PD4 */
  191. #endif
  192. /* PD3 */ { 0, 0, 0, 0, 0, 0 }, /* PD3 */
  193. /* PD2 */ { 0, 0, 0, 0, 0, 0 }, /* PD2 */
  194. /* PD1 */ { 0, 0, 0, 0, 0, 0 }, /* PD1 */
  195. /* PD0 */ { 0, 0, 0, 0, 0, 0 } /* PD0 */
  196. }
  197. };
  198. /*
  199. * UPMB initialization table
  200. */
  201. #define _NOT_USED_ 0xFFFFFFFF
  202. static const uint rtc_table[] =
  203. {
  204. /*
  205. * Single Read. (Offset 0 in UPMA RAM)
  206. */
  207. 0xfffec00, 0xfffac00, 0xfff2d00, 0xfef2800,
  208. 0xfaf2080, 0xfaf2080, 0xfff2400, 0x1fff6c05, /* last */
  209. /*
  210. * Burst Read. (Offset 8 in UPMA RAM)
  211. */
  212. _NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,
  213. _NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,
  214. _NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,
  215. _NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,
  216. /*
  217. * Single Write. (Offset 18 in UPMA RAM)
  218. */
  219. 0xfffec00, 0xfffac00, 0xfff2d00, 0xfef2800,
  220. 0xfaf2080, 0xfaf2080, 0xfaf2400, 0x1fbf6c05, /* last */
  221. /*
  222. * Burst Write. (Offset 20 in UPMA RAM)
  223. */
  224. _NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,
  225. _NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,
  226. _NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,
  227. _NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,
  228. /*
  229. * Refresh (Offset 30 in UPMA RAM)
  230. */
  231. _NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,
  232. _NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,
  233. _NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,
  234. /*
  235. * Exception. (Offset 3c in UPMA RAM)
  236. */
  237. _NOT_USED_, _NOT_USED_, _NOT_USED_, _NOT_USED_,
  238. };
  239. /* ------------------------------------------------------------------------- */
  240. /* Check Board Identity:
  241. */
  242. int checkboard (void)
  243. {
  244. printf ("Board: ATC\n");
  245. return 0;
  246. }
  247. /* ------------------------------------------------------------------------- */
  248. /* Try SDRAM initialization with P/LSDMR=sdmr and ORx=orx
  249. *
  250. * This routine performs standard 8260 initialization sequence
  251. * and calculates the available memory size. It may be called
  252. * several times to try different SDRAM configurations on both
  253. * 60x and local buses.
  254. */
  255. static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
  256. ulong orx, volatile uchar * base)
  257. {
  258. volatile uchar c = 0xff;
  259. volatile uint *sdmr_ptr;
  260. volatile uint *orx_ptr;
  261. ulong maxsize, size;
  262. int i;
  263. /* We must be able to test a location outsize the maximum legal size
  264. * to find out THAT we are outside; but this address still has to be
  265. * mapped by the controller. That means, that the initial mapping has
  266. * to be (at least) twice as large as the maximum expected size.
  267. */
  268. maxsize = (1 + (~orx | 0x7fff)) / 2;
  269. /* Since CFG_SDRAM_BASE is always 0 (??), we assume that
  270. * we are configuring CS1 if base != 0
  271. */
  272. sdmr_ptr = &memctl->memc_psdmr;
  273. orx_ptr = &memctl->memc_or2;
  274. *orx_ptr = orx;
  275. /*
  276. * Quote from 8260 UM (10.4.2 SDRAM Power-On Initialization, 10-35):
  277. *
  278. * "At system reset, initialization software must set up the
  279. * programmable parameters in the memory controller banks registers
  280. * (ORx, BRx, P/LSDMR). After all memory parameters are configured,
  281. * system software should execute the following initialization sequence
  282. * for each SDRAM device.
  283. *
  284. * 1. Issue a PRECHARGE-ALL-BANKS command
  285. * 2. Issue eight CBR REFRESH commands
  286. * 3. Issue a MODE-SET command to initialize the mode register
  287. *
  288. * The initial commands are executed by setting P/LSDMR[OP] and
  289. * accessing the SDRAM with a single-byte transaction."
  290. *
  291. * The appropriate BRx/ORx registers have already been set when we
  292. * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
  293. */
  294. *sdmr_ptr = sdmr | PSDMR_OP_PREA;
  295. *base = c;
  296. *sdmr_ptr = sdmr | PSDMR_OP_CBRR;
  297. for (i = 0; i < 8; i++)
  298. *base = c;
  299. *sdmr_ptr = sdmr | PSDMR_OP_MRW;
  300. *(base + CFG_MRS_OFFS) = c; /* setting MR on address lines */
  301. *sdmr_ptr = sdmr | PSDMR_OP_NORM | PSDMR_RFEN;
  302. *base = c;
  303. size = get_ram_size((long *)base, maxsize);
  304. *orx_ptr = orx | ~(size - 1);
  305. return (size);
  306. }
  307. int misc_init_r(void)
  308. {
  309. volatile immap_t *immap = (immap_t *) CFG_IMMR;
  310. volatile memctl8260_t *memctl = &immap->im_memctl;
  311. upmconfig(UPMA, (uint *)rtc_table, sizeof(rtc_table) / sizeof(uint));
  312. memctl->memc_mamr = MxMR_RLFx_6X | MxMR_WLFx_6X | MxMR_OP_NORM;
  313. return (0);
  314. }
  315. long int initdram (int board_type)
  316. {
  317. volatile immap_t *immap = (immap_t *) CFG_IMMR;
  318. volatile memctl8260_t *memctl = &immap->im_memctl;
  319. #ifndef CFG_RAMBOOT
  320. ulong size8, size9;
  321. #endif
  322. long psize;
  323. psize = 8 * 1024 * 1024;
  324. memctl->memc_mptpr = CFG_MPTPR;
  325. memctl->memc_psrt = CFG_PSRT;
  326. #ifndef CFG_RAMBOOT
  327. /* 60x SDRAM setup:
  328. */
  329. size8 = try_init (memctl, CFG_PSDMR_8COL, CFG_OR2_8COL,
  330. (uchar *) CFG_SDRAM_BASE);
  331. size9 = try_init (memctl, CFG_PSDMR_9COL, CFG_OR2_9COL,
  332. (uchar *) CFG_SDRAM_BASE);
  333. if (size8 < size9) {
  334. psize = size9;
  335. printf ("(60x:9COL) ");
  336. } else {
  337. psize = try_init (memctl, CFG_PSDMR_8COL, CFG_OR2_8COL,
  338. (uchar *) CFG_SDRAM_BASE);
  339. printf ("(60x:8COL) ");
  340. }
  341. #endif /* CFG_RAMBOOT */
  342. icache_enable ();
  343. return (psize);
  344. }
  345. #if (CONFIG_COMMANDS & CFG_CMD_DOC)
  346. extern void doc_probe (ulong physadr);
  347. void doc_init (void)
  348. {
  349. doc_probe (CFG_DOC_BASE);
  350. }
  351. #endif
  352. #ifdef CONFIG_PCI
  353. struct pci_controller hose;
  354. extern void pci_mpc8250_init(struct pci_controller *);
  355. void pci_init_board(void)
  356. {
  357. pci_mpc8250_init(&hose);
  358. }
  359. #endif