13 #include <generated/utsrelease.h>
14 #include <linux/pci.h>
18 #include <asm/machdep.h>
22 #define EFIKA_PLATFORM_NAME "Efika"
38 unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8)
40 | (hose->global_number << 24);
53 unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8)
55 | (hose->global_number << 24);
63 static struct pci_ops rtas_pci_ops = {
69 static void __init efika_pcisetup(
void)
80 ": Unable to find the root node\n");
84 for (pcictrl =
NULL;;) {
92 if (pcictrl ==
NULL) {
94 ": Unable to find the PCI bridge node\n");
99 if (bus_range ==
NULL || len < 2 *
sizeof(
int)) {
101 ": Can't get bus-range for %s\n", pcictrl->
full_name);
105 if (bus_range[1] == bus_range[0])
110 bus_range[0], bus_range[1]);
117 ": Can't allocate PCI controller structure for %s\n",
124 hose->
ops = &rtas_pci_ops;
129 of_node_put(pcictrl);
133 static void __init efika_pcisetup(
void)
143 static void efika_show_cpuinfo(
struct seq_file *
m)
147 const char *codegendescription;
148 const char *codegenvendor;
158 if (codegendescription)
159 seq_printf(m,
"machine\t\t: %s\n", codegendescription);
167 seq_printf(m,
"vendor\t\t: %s\n", codegenvendor);
173 static void efika_suspend_prepare(
void __iomem *mbar)
182 static void __init efika_setup_arch(
void)
197 ppc_md.progress(
"Linux/PPC " UTS_RELEASE
" running on Efika ;-)\n", 0x0);
200 static int __init efika_probe(
void)
202 char *
model = of_get_flat_dt_prop(of_get_flat_dt_root(),
207 if (
strcmp(model,
"EFIKA5K2"))
220 .probe = efika_probe,
221 .setup_arch = efika_setup_arch,
223 .show_cpuinfo = efika_show_cpuinfo,