X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Ftqm85xx%2Ftqm85xx.c;h=256c076c7ddf2ee26ea9a1ffdbffc2ae2f587ce1;hb=8ce16f55c7b9752af3d8bed84521aec5337e2de1;hp=c03b60d11a7ab01652413dcdfe4c81407c307052;hpb=e4558768aef99fe03557ebd2cbdc222467b1e131;p=u-boot diff --git a/board/tqm85xx/tqm85xx.c b/board/tqm85xx/tqm85xx.c index c03b60d11a..256c076c7d 100644 --- a/board/tqm85xx/tqm85xx.c +++ b/board/tqm85xx/tqm85xx.c @@ -27,7 +27,6 @@ * MA 02111-1307 USA */ - #include #include #include @@ -36,12 +35,18 @@ #include #include +DECLARE_GLOBAL_DATA_PTR; + extern flash_info_t flash_info[]; /* FLASH chips info */ void local_bus_init (void); long int fixed_sdram (void); ulong flash_get_size (ulong base, int banknum); +#ifdef CONFIG_PS2MULT +void ps2mult_early_init(void); +#endif + #ifdef CONFIG_CPM2 /* * I/O Port configuration table @@ -257,7 +262,6 @@ int checkboard (void) int misc_init_r (void) { - DECLARE_GLOBAL_DATA_PTR; volatile immap_t *immap = (immap_t *)CFG_IMMR; volatile ccsr_lbc_t *memctl = &immap->im_lbc; @@ -404,8 +408,16 @@ static struct pci_controller hose = { void pci_init_board (void) { #ifdef CONFIG_PCI - extern void pci_mpc85xx_init (struct pci_controller *hose); - pci_mpc85xx_init (&hose); #endif /* CONFIG_PCI */ } + +#ifdef CONFIG_BOARD_EARLY_INIT_R +int board_early_init_r (void) +{ +#ifdef CONFIG_PS2MULT + ps2mult_early_init(); +#endif /* CONFIG_PS2MULT */ + return (0); +} +#endif /* CONFIG_BOARD_EARLY_INIT_R */