~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/powerpc/platforms/85xx/socrates.c

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-or-later
  2 /*
  3  * Copyright (c) 2008 Emcraft Systems
  4  * Sergei Poselenov <sposelenov@emcraft.com>
  5  *
  6  * Based on MPC8560 ADS and arch/ppc tqm85xx ports
  7  *
  8  * Maintained by Kumar Gala (see MAINTAINERS for contact information)
  9  *
 10  * Copyright 2008 Freescale Semiconductor Inc.
 11  *
 12  * Copyright (c) 2005-2006 DENX Software Engineering
 13  * Stefan Roese <sr@denx.de>
 14  *
 15  * Based on original work by
 16  *      Kumar Gala <kumar.gala@freescale.com>
 17  *      Copyright 2004 Freescale Semiconductor Inc.
 18  */
 19 
 20 #include <linux/stddef.h>
 21 #include <linux/kernel.h>
 22 #include <linux/pci.h>
 23 #include <linux/kdev_t.h>
 24 #include <linux/delay.h>
 25 #include <linux/seq_file.h>
 26 #include <linux/of.h>
 27 
 28 #include <asm/time.h>
 29 #include <asm/machdep.h>
 30 #include <asm/pci-bridge.h>
 31 #include <asm/mpic.h>
 32 #include <mm/mmu_decl.h>
 33 #include <asm/udbg.h>
 34 
 35 #include <sysdev/fsl_soc.h>
 36 #include <sysdev/fsl_pci.h>
 37 
 38 #include "mpc85xx.h"
 39 #include "socrates_fpga_pic.h"
 40 
 41 static void __init socrates_pic_init(void)
 42 {
 43         struct device_node *np;
 44 
 45         struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN,
 46                         0, 256, " OpenPIC  ");
 47         BUG_ON(mpic == NULL);
 48         mpic_init(mpic);
 49 
 50         np = of_find_compatible_node(NULL, NULL, "abb,socrates-fpga-pic");
 51         if (!np) {
 52                 printk(KERN_ERR "Could not find socrates-fpga-pic node\n");
 53                 return;
 54         }
 55         socrates_fpga_pic_init(np);
 56         of_node_put(np);
 57 }
 58 
 59 /*
 60  * Setup the architecture
 61  */
 62 static void __init socrates_setup_arch(void)
 63 {
 64         if (ppc_md.progress)
 65                 ppc_md.progress("socrates_setup_arch()", 0);
 66 
 67         fsl_pci_assign_primary();
 68 }
 69 
 70 machine_arch_initcall(socrates, mpc85xx_common_publish_devices);
 71 
 72 define_machine(socrates) {
 73         .name                   = "Socrates",
 74         .compatible             = "abb,socrates",
 75         .setup_arch             = socrates_setup_arch,
 76         .init_IRQ               = socrates_pic_init,
 77         .get_irq                = mpic_get_irq,
 78         .progress               = udbg_progress,
 79 };
 80 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php