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

TOMOYO Linux Cross Reference
Linux/arch/powerpc/platforms/85xx/ppa8548.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  * ppa8548 setup and early boot code.
  4  *
  5  * Copyright 2009 Prodrive B.V..
  6  *
  7  * By Stef van Os (see MAINTAINERS for contact information)
  8  *
  9  * Based on the SBC8548 support - Copyright 2007 Wind River Systems Inc.
 10  * Based on the MPC8548CDS support - Copyright 2005 Freescale Inc.
 11  */
 12 
 13 #include <linux/stddef.h>
 14 #include <linux/kernel.h>
 15 #include <linux/init.h>
 16 #include <linux/reboot.h>
 17 #include <linux/seq_file.h>
 18 #include <linux/of_fdt.h>
 19 #include <linux/of_platform.h>
 20 
 21 #include <asm/machdep.h>
 22 #include <asm/udbg.h>
 23 #include <asm/mpic.h>
 24 
 25 #include <sysdev/fsl_soc.h>
 26 
 27 static void __init ppa8548_pic_init(void)
 28 {
 29         struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN,
 30                         0, 256, " OpenPIC  ");
 31         BUG_ON(mpic == NULL);
 32         mpic_init(mpic);
 33 }
 34 
 35 /*
 36  * Setup the architecture
 37  */
 38 static void __init ppa8548_setup_arch(void)
 39 {
 40         if (ppc_md.progress)
 41                 ppc_md.progress("ppa8548_setup_arch()", 0);
 42 }
 43 
 44 static void ppa8548_show_cpuinfo(struct seq_file *m)
 45 {
 46         uint32_t svid, phid1;
 47 
 48         svid = mfspr(SPRN_SVR);
 49 
 50         seq_printf(m, "Vendor\t\t: Prodrive B.V.\n");
 51         seq_printf(m, "SVR\t\t: 0x%x\n", svid);
 52 
 53         /* Display cpu Pll setting */
 54         phid1 = mfspr(SPRN_HID1);
 55         seq_printf(m, "PLL setting\t: 0x%x\n", ((phid1 >> 24) & 0x3f));
 56 }
 57 
 58 static const struct of_device_id of_bus_ids[] __initconst = {
 59         { .name = "soc", },
 60         { .type = "soc", },
 61         { .compatible = "simple-bus", },
 62         { .compatible = "gianfar", },
 63         { .compatible = "fsl,srio", },
 64         {},
 65 };
 66 
 67 static int __init declare_of_platform_devices(void)
 68 {
 69         of_platform_bus_probe(NULL, of_bus_ids, NULL);
 70 
 71         return 0;
 72 }
 73 machine_device_initcall(ppa8548, declare_of_platform_devices);
 74 
 75 define_machine(ppa8548) {
 76         .name           = "ppa8548",
 77         .compatible     = "ppa8548",
 78         .setup_arch     = ppa8548_setup_arch,
 79         .init_IRQ       = ppa8548_pic_init,
 80         .show_cpuinfo   = ppa8548_show_cpuinfo,
 81         .get_irq        = mpic_get_irq,
 82         .progress       = udbg_progress,
 83 };
 84 

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