tqm85xx.c 15 KB

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