3 * Rob Taylor, Flying Pig Systems. robt@flyingpig.com.
5 * SPDX-License-Identifier: GPL-2.0+
15 /*TODO: Check processor type */
17 puts ( "Board: Sandpoint "
24 " Unity ##Test not implemented yet##\n");
31 /* TODO: XXX XXX XXX */
32 printf ("## Test not implemented yet ##\n");
38 phys_size_t initdram (int board_type)
45 size = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MAX_RAM_SIZE);
47 new_bank0_end = size - 1;
48 mear1 = mpc824x_mpc107_getreg(MEAR1);
49 emear1 = mpc824x_mpc107_getreg(EMEAR1);
50 mear1 = (mear1 & 0xFFFFFF00) |
51 ((new_bank0_end & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT);
52 emear1 = (emear1 & 0xFFFFFF00) |
53 ((new_bank0_end & MICR_ADDR_MASK) >> MICR_EADDR_SHIFT);
54 mpc824x_mpc107_setreg(MEAR1, mear1);
55 mpc824x_mpc107_setreg(EMEAR1, emear1);
61 * Initialize PCI Devices, report devices found.
63 #ifndef CONFIG_PCI_PNP
64 static struct pci_config_table pci_sandpoint_config_table[] = {
65 { PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, 0x0f, PCI_ANY_ID,
66 pci_cfgfunc_config_device, { PCI_ENET0_IOADDR,
68 PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER }},
69 { PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, 0x10, PCI_ANY_ID,
70 pci_cfgfunc_config_device, { PCI_ENET1_IOADDR,
72 PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER }},
77 struct pci_controller hose = {
78 #ifndef CONFIG_PCI_PNP
79 config_table: pci_sandpoint_config_table,
83 void pci_init_board(void)
85 pci_mpc824x_init(&hose);
88 int board_eth_init(bd_t *bis)
90 return pci_eth_init(bis);