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

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

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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  * P1010RDB Board Setup
  4  *
  5  * Copyright 2011 Freescale Semiconductor Inc.
  6  */
  7 
  8 #include <linux/stddef.h>
  9 #include <linux/kernel.h>
 10 #include <linux/pci.h>
 11 #include <linux/delay.h>
 12 #include <linux/interrupt.h>
 13 #include <linux/of.h>
 14 
 15 #include <asm/time.h>
 16 #include <asm/machdep.h>
 17 #include <asm/pci-bridge.h>
 18 #include <mm/mmu_decl.h>
 19 #include <asm/udbg.h>
 20 #include <asm/mpic.h>
 21 
 22 #include <sysdev/fsl_soc.h>
 23 #include <sysdev/fsl_pci.h>
 24 
 25 #include "mpc85xx.h"
 26 
 27 static void __init p1010_rdb_pic_init(void)
 28 {
 29         struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN |
 30           MPIC_SINGLE_DEST_CPU,
 31           0, 256, " OpenPIC  ");
 32 
 33         BUG_ON(mpic == NULL);
 34 
 35         mpic_init(mpic);
 36 }
 37 
 38 
 39 /*
 40  * Setup the architecture
 41  */
 42 static void __init p1010_rdb_setup_arch(void)
 43 {
 44         if (ppc_md.progress)
 45                 ppc_md.progress("p1010_rdb_setup_arch()", 0);
 46 
 47         fsl_pci_assign_primary();
 48 
 49         printk(KERN_INFO "P1010 RDB board from Freescale Semiconductor\n");
 50 }
 51 
 52 machine_arch_initcall(p1010_rdb, mpc85xx_common_publish_devices);
 53 
 54 /*
 55  * Called very early, device-tree isn't unflattened
 56  */
 57 static int __init p1010_rdb_probe(void)
 58 {
 59         if (of_machine_is_compatible("fsl,P1010RDB"))
 60                 return 1;
 61         if (of_machine_is_compatible("fsl,P1010RDB-PB"))
 62                 return 1;
 63         return 0;
 64 }
 65 
 66 define_machine(p1010_rdb) {
 67         .name                   = "P1010 RDB",
 68         .probe                  = p1010_rdb_probe,
 69         .setup_arch             = p1010_rdb_setup_arch,
 70         .init_IRQ               = p1010_rdb_pic_init,
 71 #ifdef CONFIG_PCI
 72         .pcibios_fixup_bus      = fsl_pcibios_fixup_bus,
 73         .pcibios_fixup_phb      = fsl_pcibios_fixup_phb,
 74 #endif
 75         .get_irq                = mpic_get_irq,
 76         .progress               = udbg_progress,
 77 };
 78 

~ [ 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