Path: blob/master/arch/powerpc/platforms/85xx/mvme2500.c
26481 views
// SPDX-License-Identifier: GPL-2.0-or-later1/*2* Board setup routines for the Emerson/Artesyn MVME25003*4* Copyright 2014 Elettra-Sincrotrone Trieste S.C.p.A.5*6* Based on earlier code by:7*8* Xianghua Xiao ([email protected])9* Tom Armistead ([email protected])10* Copyright 2012 Emerson11*12* Author Alessio Igor Bogani <[email protected]>13*/1415#include <linux/pci.h>16#include <asm/udbg.h>17#include <asm/mpic.h>18#include <sysdev/fsl_soc.h>19#include <sysdev/fsl_pci.h>2021#include "mpc85xx.h"2223static void __init mvme2500_pic_init(void)24{25struct mpic *mpic = mpic_alloc(NULL, 0,26MPIC_BIG_ENDIAN | MPIC_SINGLE_DEST_CPU,270, 256, " OpenPIC ");28BUG_ON(mpic == NULL);29mpic_init(mpic);30}3132/*33* Setup the architecture34*/35static void __init mvme2500_setup_arch(void)36{37if (ppc_md.progress)38ppc_md.progress("mvme2500_setup_arch()", 0);39fsl_pci_assign_primary();40pr_info("MVME2500 board from Artesyn\n");41}4243machine_arch_initcall(mvme2500, mpc85xx_common_publish_devices);4445define_machine(mvme2500) {46.name = "MVME2500",47.compatible = "artesyn,MVME2500",48.setup_arch = mvme2500_setup_arch,49.init_IRQ = mvme2500_pic_init,50#ifdef CONFIG_PCI51.pcibios_fixup_bus = fsl_pcibios_fixup_bus,52.pcibios_fixup_phb = fsl_pcibios_fixup_phb,53#endif54.get_irq = mpic_get_irq,55.progress = udbg_progress,56};575859