2 * Aerohive HiveAP-330 Board Setup
4 * Copyright (C) 2017 Chris Blake <chrisrblake93@gmail.com>
8 * MPC85xx RDB Board Setup
9 * Copyright 2013 Freescale Semiconductor Inc.
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by the
13 * Free Software Foundation; either version 2 of the License, or (at your
14 * option) any later version.
17 #include <linux/stddef.h>
18 #include <linux/kernel.h>
19 #include <linux/delay.h>
20 #include <linux/interrupt.h>
21 #include <linux/of_platform.h>
24 #include <asm/machdep.h>
25 #include <asm/pci-bridge.h>
26 #include <mm/mmu_decl.h>
31 #include <sysdev/fsl_soc.h>
32 #include <sysdev/fsl_pci.h>
37 void __init
hiveap_330_pic_init(void)
41 mpic
= mpic_alloc(NULL
, 0,
51 * Setup the architecture
53 static void __init
hiveap_330_setup_arch(void)
56 ppc_md
.progress("hiveap_330_setup_arch()", 0);
60 fsl_pci_assign_primary();
62 printk(KERN_INFO
"HiveAP-330 board from Aerohive\n");
65 machine_arch_initcall(hiveap_330
, mpc85xx_common_publish_devices
);
68 * Called very early, device-tree isn't unflattened
70 static int __init
hiveap_330_probe(void)
72 if (of_machine_is_compatible("aerohive,hiveap-330"))
77 define_machine(hiveap_330
) {
79 .probe
= hiveap_330_probe
,
80 .setup_arch
= hiveap_330_setup_arch
,
81 .init_IRQ
= hiveap_330_pic_init
,
83 .pcibios_fixup_bus
= fsl_pcibios_fixup_bus
,
84 .pcibios_fixup_phb
= fsl_pcibios_fixup_phb
,
86 .get_irq
= mpic_get_irq
,
87 .calibrate_decr
= generic_calibrate_decr
,
88 .progress
= udbg_progress
,