Path: blob/master/arch/powerpc/platforms/85xx/bsc913x_qds.c
26481 views
// SPDX-License-Identifier: GPL-2.0-or-later1/*2* BSC913xQDS Board Setup3*4* Author:5* Harninder Rai <[email protected]>6* Priyanka Jain <[email protected]>7*8* Copyright 2014 Freescale Semiconductor Inc.9*/1011#include <linux/of.h>12#include <linux/pci.h>13#include <asm/mpic.h>14#include <sysdev/fsl_soc.h>15#include <sysdev/fsl_pci.h>16#include <asm/udbg.h>1718#include "mpc85xx.h"19#include "smp.h"2021static void __init bsc913x_qds_pic_init(void)22{23struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN |24MPIC_SINGLE_DEST_CPU,250, 256, " OpenPIC ");2627if (!mpic)28pr_err("bsc913x: Failed to allocate MPIC structure\n");29else30mpic_init(mpic);31}3233/*34* Setup the architecture35*/36static void __init bsc913x_qds_setup_arch(void)37{38if (ppc_md.progress)39ppc_md.progress("bsc913x_qds_setup_arch()", 0);4041#if defined(CONFIG_SMP)42mpc85xx_smp_init();43#endif4445fsl_pci_assign_primary();4647pr_info("bsc913x board from Freescale Semiconductor\n");48}4950machine_arch_initcall(bsc9132_qds, mpc85xx_common_publish_devices);5152define_machine(bsc9132_qds) {53.name = "BSC9132 QDS",54.compatible = "fsl,bsc9132qds",55.setup_arch = bsc913x_qds_setup_arch,56.init_IRQ = bsc913x_qds_pic_init,57#ifdef CONFIG_PCI58.pcibios_fixup_bus = fsl_pcibios_fixup_bus,59#endif60.get_irq = mpic_get_irq,61.progress = udbg_progress,62};636465