3 * Rob Taylor, Flying Pig Systems. robt@flyingpig.com.
5 * SPDX-License-Identifier: GPL-2.0+
15 ulong busfreq = get_bus_freq(0);
18 printf("Board: MUSENKI Local Bus at %s MHz\n", strmhz(buf, busfreq));
26 /* TODO: XXX XXX XXX */
27 printf ("## Test not implemented yet ##\n");
33 phys_size_t initdram (int board_type)
40 size = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MAX_RAM_SIZE);
42 new_bank0_end = size - 1;
43 mear1 = mpc824x_mpc107_getreg(MEAR1);
44 emear1 = mpc824x_mpc107_getreg(EMEAR1);
45 mear1 = (mear1 & 0xFFFFFF00) |
46 ((new_bank0_end & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT);
47 emear1 = (emear1 & 0xFFFFFF00) |
48 ((new_bank0_end & MICR_ADDR_MASK) >> MICR_EADDR_SHIFT);
49 mpc824x_mpc107_setreg(MEAR1, mear1);
50 mpc824x_mpc107_setreg(EMEAR1, emear1);
56 * Initialize PCI Devices
58 #ifndef CONFIG_PCI_PNP
59 static struct pci_config_table pci_sandpoint_config_table[] = {
61 { PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
62 0x0, 0x0, 0x0, /* unknown eth0 divice */
63 pci_cfgfunc_config_device, { PCI_ENET0_IOADDR,
67 PCI_COMMAND_MASTER }},
68 { PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
69 0x0, 0x0, 0x0, /* unknown eth1 device */
70 pci_cfgfunc_config_device, { PCI_ENET1_IOADDR,
74 PCI_COMMAND_MASTER }},
80 struct pci_controller hose = {
81 #ifndef CONFIG_PCI_PNP
82 config_table: pci_sandpoint_config_table,
86 void pci_init_board(void)
88 pci_mpc824x_init(&hose);
91 int board_eth_init(bd_t *bis)
93 return pci_eth_init(bis);