mpc52xx.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. /*
  2. * include/asm-ppc/mpc52xx.h
  3. *
  4. * Prototypes, etc. for the Freescale MPC52xx embedded cpu chips
  5. * May need to be cleaned as the port goes on ...
  6. *
  7. *
  8. * Maintainer : Sylvain Munaut <tnt@246tNt.com>
  9. *
  10. * Originally written by Dale Farnsworth <dfarnsworth@mvista.com>
  11. * for the 2.4 kernel.
  12. *
  13. * Copyright (C) 2004-2005 Sylvain Munaut <tnt@246tNt.com>
  14. * Copyright (C) 2003 MontaVista, Software, Inc.
  15. *
  16. * This file is licensed under the terms of the GNU General Public License
  17. * version 2. This program is licensed "as is" without any warranty of any
  18. * kind, whether express or implied.
  19. */
  20. #ifndef __ASM_MPC52xx_H__
  21. #define __ASM_MPC52xx_H__
  22. #ifndef __ASSEMBLY__
  23. #include <asm/ppcboot.h>
  24. #include <asm/types.h>
  25. struct pt_regs;
  26. #endif /* __ASSEMBLY__ */
  27. #ifdef CONFIG_PCI
  28. #define _IO_BASE isa_io_base
  29. #define _ISA_MEM_BASE isa_mem_base
  30. #define PCI_DRAM_OFFSET pci_dram_offset
  31. #else
  32. #define _IO_BASE 0
  33. #define _ISA_MEM_BASE 0
  34. #define PCI_DRAM_OFFSET 0
  35. #endif
  36. /* ======================================================================== */
  37. /* PPC Sys devices definition */
  38. /* ======================================================================== */
  39. enum ppc_sys_devices {
  40. MPC52xx_MSCAN1,
  41. MPC52xx_MSCAN2,
  42. MPC52xx_SPI,
  43. MPC52xx_USB,
  44. MPC52xx_BDLC,
  45. MPC52xx_PSC1,
  46. MPC52xx_PSC2,
  47. MPC52xx_PSC3,
  48. MPC52xx_PSC4,
  49. MPC52xx_PSC5,
  50. MPC52xx_PSC6,
  51. MPC52xx_FEC,
  52. MPC52xx_ATA,
  53. MPC52xx_I2C1,
  54. MPC52xx_I2C2,
  55. NUM_PPC_SYS_DEVS,
  56. };
  57. /* ======================================================================== */
  58. /* Main registers/struct addresses */
  59. /* ======================================================================== */
  60. /* MBAR position */
  61. #define MPC52xx_MBAR 0xf0000000 /* Phys address */
  62. #define MPC52xx_MBAR_VIRT 0xf0000000 /* Virt address */
  63. #define MPC52xx_MBAR_SIZE 0x00010000
  64. #define MPC52xx_PA(x) ((phys_addr_t)(MPC52xx_MBAR + (x)))
  65. #define MPC52xx_VA(x) ((void __iomem *)(MPC52xx_MBAR_VIRT + (x)))
  66. /* Registers zone offset/size */
  67. #define MPC52xx_MMAP_CTL_OFFSET 0x0000
  68. #define MPC52xx_MMAP_CTL_SIZE 0x068
  69. #define MPC52xx_SDRAM_OFFSET 0x0100
  70. #define MPC52xx_SDRAM_SIZE 0x010
  71. #define MPC52xx_CDM_OFFSET 0x0200
  72. #define MPC52xx_CDM_SIZE 0x038
  73. #define MPC52xx_INTR_OFFSET 0x0500
  74. #define MPC52xx_INTR_SIZE 0x04c
  75. #define MPC52xx_GPTx_OFFSET(x) (0x0600 + ((x)<<4))
  76. #define MPC52xx_GPT_SIZE 0x010
  77. #define MPC52xx_RTC_OFFSET 0x0800
  78. #define MPC52xx_RTC_SIZE 0x024
  79. #define MPC52xx_GPIO_OFFSET 0x0b00
  80. #define MPC52xx_GPIO_SIZE 0x040
  81. #define MPC52xx_GPIO_WKUP_OFFSET 0x0c00
  82. #define MPC52xx_GPIO_WKUP_SIZE 0x028
  83. #define MPC52xx_PCI_OFFSET 0x0d00
  84. #define MPC52xx_PCI_SIZE 0x100
  85. #define MPC52xx_SDMA_OFFSET 0x1200
  86. #define MPC52xx_SDMA_SIZE 0x100
  87. #define MPC52xx_XLB_OFFSET 0x1f00
  88. #define MPC52xx_XLB_SIZE 0x100
  89. #define MPC52xx_PSCx_OFFSET(x) (((x)!=6)?(0x1e00+((x)<<9)):0x2c00)
  90. #define MPC52xx_PSC_SIZE 0x0a0
  91. /* SRAM used for SDMA */
  92. #define MPC52xx_SRAM_OFFSET 0x8000
  93. #define MPC52xx_SRAM_SIZE 0x4000
  94. /* ======================================================================== */
  95. /* IRQ mapping */
  96. /* ======================================================================== */
  97. /* Be sure to look at mpc52xx_pic.h if you wish for whatever reason to change
  98. * this
  99. */
  100. #define MPC52xx_CRIT_IRQ_NUM 4
  101. #define MPC52xx_MAIN_IRQ_NUM 17
  102. #define MPC52xx_SDMA_IRQ_NUM 17
  103. #define MPC52xx_PERP_IRQ_NUM 23
  104. #define MPC52xx_CRIT_IRQ_BASE 1
  105. #define MPC52xx_MAIN_IRQ_BASE (MPC52xx_CRIT_IRQ_BASE + MPC52xx_CRIT_IRQ_NUM)
  106. #define MPC52xx_SDMA_IRQ_BASE (MPC52xx_MAIN_IRQ_BASE + MPC52xx_MAIN_IRQ_NUM)
  107. #define MPC52xx_PERP_IRQ_BASE (MPC52xx_SDMA_IRQ_BASE + MPC52xx_SDMA_IRQ_NUM)
  108. #define MPC52xx_IRQ0 (MPC52xx_CRIT_IRQ_BASE + 0)
  109. #define MPC52xx_SLICE_TIMER_0_IRQ (MPC52xx_CRIT_IRQ_BASE + 1)
  110. #define MPC52xx_HI_INT_IRQ (MPC52xx_CRIT_IRQ_BASE + 2)
  111. #define MPC52xx_CCS_IRQ (MPC52xx_CRIT_IRQ_BASE + 3)
  112. #define MPC52xx_IRQ1 (MPC52xx_MAIN_IRQ_BASE + 1)
  113. #define MPC52xx_IRQ2 (MPC52xx_MAIN_IRQ_BASE + 2)
  114. #define MPC52xx_IRQ3 (MPC52xx_MAIN_IRQ_BASE + 3)
  115. #define MPC52xx_SDMA_IRQ (MPC52xx_PERP_IRQ_BASE + 0)
  116. #define MPC52xx_PSC1_IRQ (MPC52xx_PERP_IRQ_BASE + 1)
  117. #define MPC52xx_PSC2_IRQ (MPC52xx_PERP_IRQ_BASE + 2)
  118. #define MPC52xx_PSC3_IRQ (MPC52xx_PERP_IRQ_BASE + 3)
  119. #define MPC52xx_PSC6_IRQ (MPC52xx_PERP_IRQ_BASE + 4)
  120. #define MPC52xx_IRDA_IRQ (MPC52xx_PERP_IRQ_BASE + 4)
  121. #define MPC52xx_FEC_IRQ (MPC52xx_PERP_IRQ_BASE + 5)
  122. #define MPC52xx_USB_IRQ (MPC52xx_PERP_IRQ_BASE + 6)
  123. #define MPC52xx_ATA_IRQ (MPC52xx_PERP_IRQ_BASE + 7)
  124. #define MPC52xx_PCI_CNTRL_IRQ (MPC52xx_PERP_IRQ_BASE + 8)
  125. #define MPC52xx_PCI_SCIRX_IRQ (MPC52xx_PERP_IRQ_BASE + 9)
  126. #define MPC52xx_PCI_SCITX_IRQ (MPC52xx_PERP_IRQ_BASE + 10)
  127. #define MPC52xx_PSC4_IRQ (MPC52xx_PERP_IRQ_BASE + 11)
  128. #define MPC52xx_PSC5_IRQ (MPC52xx_PERP_IRQ_BASE + 12)
  129. #define MPC52xx_SPI_MODF_IRQ (MPC52xx_PERP_IRQ_BASE + 13)
  130. #define MPC52xx_SPI_SPIF_IRQ (MPC52xx_PERP_IRQ_BASE + 14)
  131. #define MPC52xx_I2C1_IRQ (MPC52xx_PERP_IRQ_BASE + 15)
  132. #define MPC52xx_I2C2_IRQ (MPC52xx_PERP_IRQ_BASE + 16)
  133. #define MPC52xx_MSCAN1_IRQ (MPC52xx_PERP_IRQ_BASE + 17)
  134. #define MPC52xx_MSCAN2_IRQ (MPC52xx_PERP_IRQ_BASE + 18)
  135. #define MPC52xx_IR_RX_IRQ (MPC52xx_PERP_IRQ_BASE + 19)
  136. #define MPC52xx_IR_TX_IRQ (MPC52xx_PERP_IRQ_BASE + 20)
  137. #define MPC52xx_XLB_ARB_IRQ (MPC52xx_PERP_IRQ_BASE + 21)
  138. #define MPC52xx_BDLC_IRQ (MPC52xx_PERP_IRQ_BASE + 22)
  139. /* ======================================================================== */
  140. /* Structures mapping of some unit register set */
  141. /* ======================================================================== */
  142. #ifndef __ASSEMBLY__
  143. /* Memory Mapping Control */
  144. struct mpc52xx_mmap_ctl {
  145. u32 mbar; /* MMAP_CTRL + 0x00 */
  146. u32 cs0_start; /* MMAP_CTRL + 0x04 */
  147. u32 cs0_stop; /* MMAP_CTRL + 0x08 */
  148. u32 cs1_start; /* MMAP_CTRL + 0x0c */
  149. u32 cs1_stop; /* MMAP_CTRL + 0x10 */
  150. u32 cs2_start; /* MMAP_CTRL + 0x14 */
  151. u32 cs2_stop; /* MMAP_CTRL + 0x18 */
  152. u32 cs3_start; /* MMAP_CTRL + 0x1c */
  153. u32 cs3_stop; /* MMAP_CTRL + 0x20 */
  154. u32 cs4_start; /* MMAP_CTRL + 0x24 */
  155. u32 cs4_stop; /* MMAP_CTRL + 0x28 */
  156. u32 cs5_start; /* MMAP_CTRL + 0x2c */
  157. u32 cs5_stop; /* MMAP_CTRL + 0x30 */
  158. u32 sdram0; /* MMAP_CTRL + 0x34 */
  159. u32 sdram1; /* MMAP_CTRL + 0X38 */
  160. u32 reserved[4]; /* MMAP_CTRL + 0x3c .. 0x48 */
  161. u32 boot_start; /* MMAP_CTRL + 0x4c */
  162. u32 boot_stop; /* MMAP_CTRL + 0x50 */
  163. u32 ipbi_ws_ctrl; /* MMAP_CTRL + 0x54 */
  164. u32 cs6_start; /* MMAP_CTRL + 0x58 */
  165. u32 cs6_stop; /* MMAP_CTRL + 0x5c */
  166. u32 cs7_start; /* MMAP_CTRL + 0x60 */
  167. u32 cs7_stop; /* MMAP_CTRL + 0x64 */
  168. };
  169. /* SDRAM control */
  170. struct mpc52xx_sdram {
  171. u32 mode; /* SDRAM + 0x00 */
  172. u32 ctrl; /* SDRAM + 0x04 */
  173. u32 config1; /* SDRAM + 0x08 */
  174. u32 config2; /* SDRAM + 0x0c */
  175. };
  176. /* Interrupt controller */
  177. struct mpc52xx_intr {
  178. u32 per_mask; /* INTR + 0x00 */
  179. u32 per_pri1; /* INTR + 0x04 */
  180. u32 per_pri2; /* INTR + 0x08 */
  181. u32 per_pri3; /* INTR + 0x0c */
  182. u32 ctrl; /* INTR + 0x10 */
  183. u32 main_mask; /* INTR + 0x14 */
  184. u32 main_pri1; /* INTR + 0x18 */
  185. u32 main_pri2; /* INTR + 0x1c */
  186. u32 reserved1; /* INTR + 0x20 */
  187. u32 enc_status; /* INTR + 0x24 */
  188. u32 crit_status; /* INTR + 0x28 */
  189. u32 main_status; /* INTR + 0x2c */
  190. u32 per_status; /* INTR + 0x30 */
  191. u32 reserved2; /* INTR + 0x34 */
  192. u32 per_error; /* INTR + 0x38 */
  193. };
  194. /* SDMA */
  195. struct mpc52xx_sdma {
  196. u32 taskBar; /* SDMA + 0x00 */
  197. u32 currentPointer; /* SDMA + 0x04 */
  198. u32 endPointer; /* SDMA + 0x08 */
  199. u32 variablePointer;/* SDMA + 0x0c */
  200. u8 IntVect1; /* SDMA + 0x10 */
  201. u8 IntVect2; /* SDMA + 0x11 */
  202. u16 PtdCntrl; /* SDMA + 0x12 */
  203. u32 IntPend; /* SDMA + 0x14 */
  204. u32 IntMask; /* SDMA + 0x18 */
  205. u16 tcr[16]; /* SDMA + 0x1c .. 0x3a */
  206. u8 ipr[32]; /* SDMA + 0x3c .. 0x5b */
  207. u32 cReqSelect; /* SDMA + 0x5c */
  208. u32 task_size0; /* SDMA + 0x60 */
  209. u32 task_size1; /* SDMA + 0x64 */
  210. u32 MDEDebug; /* SDMA + 0x68 */
  211. u32 ADSDebug; /* SDMA + 0x6c */
  212. u32 Value1; /* SDMA + 0x70 */
  213. u32 Value2; /* SDMA + 0x74 */
  214. u32 Control; /* SDMA + 0x78 */
  215. u32 Status; /* SDMA + 0x7c */
  216. u32 PTDDebug; /* SDMA + 0x80 */
  217. };
  218. /* GPT */
  219. struct mpc52xx_gpt {
  220. u32 mode; /* GPTx + 0x00 */
  221. u32 count; /* GPTx + 0x04 */
  222. u32 pwm; /* GPTx + 0x08 */
  223. u32 status; /* GPTx + 0X0c */
  224. };
  225. /* RTC */
  226. struct mpc52xx_rtc {
  227. u32 time_set; /* RTC + 0x00 */
  228. u32 date_set; /* RTC + 0x04 */
  229. u32 stopwatch; /* RTC + 0x08 */
  230. u32 int_enable; /* RTC + 0x0c */
  231. u32 time; /* RTC + 0x10 */
  232. u32 date; /* RTC + 0x14 */
  233. u32 stopwatch_intr; /* RTC + 0x18 */
  234. u32 bus_error; /* RTC + 0x1c */
  235. u32 dividers; /* RTC + 0x20 */
  236. };
  237. /* GPIO */
  238. struct mpc52xx_gpio {
  239. u32 port_config; /* GPIO + 0x00 */
  240. u32 simple_gpioe; /* GPIO + 0x04 */
  241. u32 simple_ode; /* GPIO + 0x08 */
  242. u32 simple_ddr; /* GPIO + 0x0c */
  243. u32 simple_dvo; /* GPIO + 0x10 */
  244. u32 simple_ival; /* GPIO + 0x14 */
  245. u8 outo_gpioe; /* GPIO + 0x18 */
  246. u8 reserved1[3]; /* GPIO + 0x19 */
  247. u8 outo_dvo; /* GPIO + 0x1c */
  248. u8 reserved2[3]; /* GPIO + 0x1d */
  249. u8 sint_gpioe; /* GPIO + 0x20 */
  250. u8 reserved3[3]; /* GPIO + 0x21 */
  251. u8 sint_ode; /* GPIO + 0x24 */
  252. u8 reserved4[3]; /* GPIO + 0x25 */
  253. u8 sint_ddr; /* GPIO + 0x28 */
  254. u8 reserved5[3]; /* GPIO + 0x29 */
  255. u8 sint_dvo; /* GPIO + 0x2c */
  256. u8 reserved6[3]; /* GPIO + 0x2d */
  257. u8 sint_inten; /* GPIO + 0x30 */
  258. u8 reserved7[3]; /* GPIO + 0x31 */
  259. u16 sint_itype; /* GPIO + 0x34 */
  260. u16 reserved8; /* GPIO + 0x36 */
  261. u8 gpio_control; /* GPIO + 0x38 */
  262. u8 reserved9[3]; /* GPIO + 0x39 */
  263. u8 sint_istat; /* GPIO + 0x3c */
  264. u8 sint_ival; /* GPIO + 0x3d */
  265. u8 bus_errs; /* GPIO + 0x3e */
  266. u8 reserved10; /* GPIO + 0x3f */
  267. };
  268. #define MPC52xx_GPIO_PSC_CONFIG_UART_WITHOUT_CD 4
  269. #define MPC52xx_GPIO_PSC_CONFIG_UART_WITH_CD 5
  270. #define MPC52xx_GPIO_PCI_DIS (1<<15)
  271. /* GPIO with WakeUp*/
  272. struct mpc52xx_gpio_wkup {
  273. u8 wkup_gpioe; /* GPIO_WKUP + 0x00 */
  274. u8 reserved1[3]; /* GPIO_WKUP + 0x03 */
  275. u8 wkup_ode; /* GPIO_WKUP + 0x04 */
  276. u8 reserved2[3]; /* GPIO_WKUP + 0x05 */
  277. u8 wkup_ddr; /* GPIO_WKUP + 0x08 */
  278. u8 reserved3[3]; /* GPIO_WKUP + 0x09 */
  279. u8 wkup_dvo; /* GPIO_WKUP + 0x0C */
  280. u8 reserved4[3]; /* GPIO_WKUP + 0x0D */
  281. u8 wkup_inten; /* GPIO_WKUP + 0x10 */
  282. u8 reserved5[3]; /* GPIO_WKUP + 0x11 */
  283. u8 wkup_iinten; /* GPIO_WKUP + 0x14 */
  284. u8 reserved6[3]; /* GPIO_WKUP + 0x15 */
  285. u16 wkup_itype; /* GPIO_WKUP + 0x18 */
  286. u8 reserved7[2]; /* GPIO_WKUP + 0x1A */
  287. u8 wkup_maste; /* GPIO_WKUP + 0x1C */
  288. u8 reserved8[3]; /* GPIO_WKUP + 0x1D */
  289. u8 wkup_ival; /* GPIO_WKUP + 0x20 */
  290. u8 reserved9[3]; /* GPIO_WKUP + 0x21 */
  291. u8 wkup_istat; /* GPIO_WKUP + 0x24 */
  292. u8 reserved10[3]; /* GPIO_WKUP + 0x25 */
  293. };
  294. /* XLB Bus control */
  295. struct mpc52xx_xlb {
  296. u8 reserved[0x40];
  297. u32 config; /* XLB + 0x40 */
  298. u32 version; /* XLB + 0x44 */
  299. u32 status; /* XLB + 0x48 */
  300. u32 int_enable; /* XLB + 0x4c */
  301. u32 addr_capture; /* XLB + 0x50 */
  302. u32 bus_sig_capture; /* XLB + 0x54 */
  303. u32 addr_timeout; /* XLB + 0x58 */
  304. u32 data_timeout; /* XLB + 0x5c */
  305. u32 bus_act_timeout; /* XLB + 0x60 */
  306. u32 master_pri_enable; /* XLB + 0x64 */
  307. u32 master_priority; /* XLB + 0x68 */
  308. u32 base_address; /* XLB + 0x6c */
  309. u32 snoop_window; /* XLB + 0x70 */
  310. };
  311. #define MPC52xx_XLB_CFG_PLDIS (1 << 31)
  312. #define MPC52xx_XLB_CFG_SNOOP (1 << 15)
  313. /* Clock Distribution control */
  314. struct mpc52xx_cdm {
  315. u32 jtag_id; /* CDM + 0x00 reg0 read only */
  316. u32 rstcfg; /* CDM + 0x04 reg1 read only */
  317. u32 breadcrumb; /* CDM + 0x08 reg2 */
  318. u8 mem_clk_sel; /* CDM + 0x0c reg3 byte0 */
  319. u8 xlb_clk_sel; /* CDM + 0x0d reg3 byte1 read only */
  320. u8 ipb_clk_sel; /* CDM + 0x0e reg3 byte2 */
  321. u8 pci_clk_sel; /* CDM + 0x0f reg3 byte3 */
  322. u8 ext_48mhz_en; /* CDM + 0x10 reg4 byte0 */
  323. u8 fd_enable; /* CDM + 0x11 reg4 byte1 */
  324. u16 fd_counters; /* CDM + 0x12 reg4 byte2,3 */
  325. u32 clk_enables; /* CDM + 0x14 reg5 */
  326. u8 osc_disable; /* CDM + 0x18 reg6 byte0 */
  327. u8 reserved0[3]; /* CDM + 0x19 reg6 byte1,2,3 */
  328. u8 ccs_sleep_enable; /* CDM + 0x1c reg7 byte0 */
  329. u8 osc_sleep_enable; /* CDM + 0x1d reg7 byte1 */
  330. u8 reserved1; /* CDM + 0x1e reg7 byte2 */
  331. u8 ccs_qreq_test; /* CDM + 0x1f reg7 byte3 */
  332. u8 soft_reset; /* CDM + 0x20 u8 byte0 */
  333. u8 no_ckstp; /* CDM + 0x21 u8 byte0 */
  334. u8 reserved2[2]; /* CDM + 0x22 u8 byte1,2,3 */
  335. u8 pll_lock; /* CDM + 0x24 reg9 byte0 */
  336. u8 pll_looselock; /* CDM + 0x25 reg9 byte1 */
  337. u8 pll_sm_lockwin; /* CDM + 0x26 reg9 byte2 */
  338. u8 reserved3; /* CDM + 0x27 reg9 byte3 */
  339. u16 reserved4; /* CDM + 0x28 reg10 byte0,1 */
  340. u16 mclken_div_psc1; /* CDM + 0x2a reg10 byte2,3 */
  341. u16 reserved5; /* CDM + 0x2c reg11 byte0,1 */
  342. u16 mclken_div_psc2; /* CDM + 0x2e reg11 byte2,3 */
  343. u16 reserved6; /* CDM + 0x30 reg12 byte0,1 */
  344. u16 mclken_div_psc3; /* CDM + 0x32 reg12 byte2,3 */
  345. u16 reserved7; /* CDM + 0x34 reg13 byte0,1 */
  346. u16 mclken_div_psc6; /* CDM + 0x36 reg13 byte2,3 */
  347. };
  348. #endif /* __ASSEMBLY__ */
  349. /* ========================================================================= */
  350. /* Prototypes for MPC52xx syslib */
  351. /* ========================================================================= */
  352. #ifndef __ASSEMBLY__
  353. extern void mpc52xx_init_irq(void);
  354. extern int mpc52xx_get_irq(void);
  355. extern unsigned long mpc52xx_find_end_of_memory(void);
  356. extern void mpc52xx_set_bat(void);
  357. extern void mpc52xx_map_io(void);
  358. extern void mpc52xx_restart(char *cmd);
  359. extern void mpc52xx_halt(void);
  360. extern void mpc52xx_power_off(void);
  361. extern void mpc52xx_progress(char *s, unsigned short hex);
  362. extern void mpc52xx_calibrate_decr(void);
  363. extern void mpc52xx_find_bridges(void);
  364. extern void mpc52xx_setup_cpu(void);
  365. /* Matching of PSC function */
  366. struct mpc52xx_psc_func {
  367. int id;
  368. char *func;
  369. };
  370. extern int mpc52xx_match_psc_function(int psc_idx, const char *func);
  371. extern struct mpc52xx_psc_func mpc52xx_psc_functions[];
  372. /* This array is to be defined in platform file */
  373. #endif /* __ASSEMBLY__ */
  374. /* ========================================================================= */
  375. /* Platform configuration */
  376. /* ========================================================================= */
  377. /* The U-Boot platform information struct */
  378. extern bd_t __res;
  379. /* Platform options */
  380. #if defined(CONFIG_LITE5200)
  381. #include <platforms/lite5200.h>
  382. #endif
  383. #endif /* __ASM_MPC52xx_H__ */