WIP FPC-III support
[linux/fpc-iii.git] / arch / powerpc / platforms / 86xx / sbc8641d.c
blobdc23dd383d6ef89b4fbca31edd0adada759bc7aa
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * SBC8641D board specific routines
5 * Copyright 2008 Wind River Systems Inc.
7 * By Paul Gortmaker (see MAINTAINERS for contact information)
9 * Based largely on the 8641 HPCN support by Freescale Semiconductor Inc.
12 #include <linux/stddef.h>
13 #include <linux/kernel.h>
14 #include <linux/pci.h>
15 #include <linux/kdev_t.h>
16 #include <linux/delay.h>
17 #include <linux/seq_file.h>
18 #include <linux/of_platform.h>
20 #include <asm/time.h>
21 #include <asm/machdep.h>
22 #include <asm/pci-bridge.h>
23 #include <asm/prom.h>
24 #include <mm/mmu_decl.h>
25 #include <asm/udbg.h>
27 #include <asm/mpic.h>
29 #include <sysdev/fsl_pci.h>
30 #include <sysdev/fsl_soc.h>
32 #include "mpc86xx.h"
34 static void __init
35 sbc8641_setup_arch(void)
37 if (ppc_md.progress)
38 ppc_md.progress("sbc8641_setup_arch()", 0);
40 printk("SBC8641 board from Wind River\n");
42 #ifdef CONFIG_SMP
43 mpc86xx_smp_init();
44 #endif
46 fsl_pci_assign_primary();
50 static void
51 sbc8641_show_cpuinfo(struct seq_file *m)
53 uint svid = mfspr(SPRN_SVR);
55 seq_printf(m, "Vendor\t\t: Wind River Systems\n");
57 seq_printf(m, "SVR\t\t: 0x%x\n", svid);
62 * Called very early, device-tree isn't unflattened
64 static int __init sbc8641_probe(void)
66 if (of_machine_is_compatible("wind,sbc8641"))
67 return 1; /* Looks good */
69 return 0;
72 machine_arch_initcall(sbc8641, mpc86xx_common_publish_devices);
74 define_machine(sbc8641) {
75 .name = "SBC8641D",
76 .probe = sbc8641_probe,
77 .setup_arch = sbc8641_setup_arch,
78 .init_IRQ = mpc86xx_init_irq,
79 .show_cpuinfo = sbc8641_show_cpuinfo,
80 .get_irq = mpic_get_irq,
81 .time_init = mpc86xx_time_init,
82 .calibrate_decr = generic_calibrate_decr,
83 .progress = udbg_progress,
84 #ifdef CONFIG_PCI
85 .pcibios_fixup_bus = fsl_pcibios_fixup_bus,
86 #endif