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

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

Version: ~ [ linux-6.3-rc3 ] ~ [ linux-6.2.7 ] ~ [ linux-6.1.20 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.103 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.175 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.237 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.278 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.310 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ 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 /*
  2  * MPC8536 DS Board Setup
  3  *
  4  * Copyright 2008 Freescale Semiconductor, Inc.
  5  *
  6  * This program is free software; you can redistribute  it and/or modify it
  7  * under  the terms of  the GNU General  Public License as published by the
  8  * Free Software Foundation;  either version 2 of the  License, or (at your
  9  * option) any later version.
 10  */
 11 
 12 #include <linux/stddef.h>
 13 #include <linux/kernel.h>
 14 #include <linux/pci.h>
 15 #include <linux/kdev_t.h>
 16 #include <linux/delay.h>
 17 #include <linux/seq_file.h>
 18 #include <linux/interrupt.h>
 19 #include <linux/of_platform.h>
 20 
 21 #include <asm/time.h>
 22 #include <asm/machdep.h>
 23 #include <asm/pci-bridge.h>
 24 #include <mm/mmu_decl.h>
 25 #include <asm/prom.h>
 26 #include <asm/udbg.h>
 27 #include <asm/mpic.h>
 28 #include <asm/swiotlb.h>
 29 
 30 #include <sysdev/fsl_soc.h>
 31 #include <sysdev/fsl_pci.h>
 32 
 33 #include "mpc85xx.h"
 34 
 35 void __init mpc8536_ds_pic_init(void)
 36 {
 37         struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN,
 38                         0, 256, " OpenPIC  ");
 39         BUG_ON(mpic == NULL);
 40         mpic_init(mpic);
 41 }
 42 
 43 /*
 44  * Setup the architecture
 45  */
 46 static void __init mpc8536_ds_setup_arch(void)
 47 {
 48         if (ppc_md.progress)
 49                 ppc_md.progress("mpc8536_ds_setup_arch()", 0);
 50 
 51         fsl_pci_assign_primary();
 52 
 53         swiotlb_detect_4g();
 54 
 55         printk("MPC8536 DS board from Freescale Semiconductor\n");
 56 }
 57 
 58 machine_arch_initcall(mpc8536_ds, mpc85xx_common_publish_devices);
 59 
 60 machine_arch_initcall(mpc8536_ds, swiotlb_setup_bus_notifier);
 61 
 62 /*
 63  * Called very early, device-tree isn't unflattened
 64  */
 65 static int __init mpc8536_ds_probe(void)
 66 {
 67         return of_machine_is_compatible("fsl,mpc8536ds");
 68 }
 69 
 70 define_machine(mpc8536_ds) {
 71         .name                   = "MPC8536 DS",
 72         .probe                  = mpc8536_ds_probe,
 73         .setup_arch             = mpc8536_ds_setup_arch,
 74         .init_IRQ               = mpc8536_ds_pic_init,
 75 #ifdef CONFIG_PCI
 76         .pcibios_fixup_bus      = fsl_pcibios_fixup_bus,
 77         .pcibios_fixup_phb      = fsl_pcibios_fixup_phb,
 78 #endif
 79         .get_irq                = mpic_get_irq,
 80         .calibrate_decr         = generic_calibrate_decr,
 81         .progress               = udbg_progress,
 82 };
 83 

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

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | 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.

osdn.jp