1 // SPDX-License-Identifier: GPL-2.0+
4 * OCEDO Panda Board Setup
6 * Copyright (C) 2019 David Bauer <mail@david-bauer.net>
10 * MPC85xx RDB Board Setup
11 * Copyright 2013 Freescale Semiconductor Inc.
13 * This program is free software; you can redistribute it and/or modify it
14 * under the terms of the GNU General Public License as published by the
15 * Free Software Foundation; either version 2 of the License, or (at your
16 * option) any later version.
19 #include <linux/stddef.h>
20 #include <linux/kernel.h>
21 #include <linux/delay.h>
22 #include <linux/interrupt.h>
23 #include <linux/of_platform.h>
26 #include <asm/machdep.h>
27 #include <asm/pci-bridge.h>
28 #include <mm/mmu_decl.h>
33 #include <sysdev/fsl_soc.h>
34 #include <sysdev/fsl_pci.h>
39 void __init
panda_pic_init(void)
43 mpic
= mpic_alloc(NULL
, 0,
53 * Setup the architecture
55 static void __init
panda_setup_arch(void)
58 ppc_md
.progress("panda_setup_arch()", 0);
62 fsl_pci_assign_primary();
64 pr_info("Panda board from OCEDO\n");
67 machine_arch_initcall(panda
, mpc85xx_common_publish_devices
);
70 * Called very early, device-tree isn't unflattened
72 static int __init
panda_probe(void)
74 if (of_machine_is_compatible("ocedo,panda"))
79 define_machine(panda
) {
82 .setup_arch
= panda_setup_arch
,
83 .init_IRQ
= panda_pic_init
,
85 .pcibios_fixup_bus
= fsl_pcibios_fixup_bus
,
86 .pcibios_fixup_phb
= fsl_pcibios_fixup_phb
,
88 .get_irq
= mpic_get_irq
,
89 .calibrate_decr
= generic_calibrate_decr
,
90 .progress
= udbg_progress
,