cregit-Linux how code gets into the kernel

Release 4.14 arch/powerpc/platforms/52xx/mpc5200_simple.c

/*
 * Support for 'mpc5200-simple-platform' compatible boards.
 *
 * Written by Marian Balakowicz <m8@semihalf.com>
 * Copyright (C) 2007 Semihalf
 *
 * This program is free software; you can redistribute  it and/or modify it
 * under  the terms of  the GNU General  Public License as published by the
 * Free Software Foundation;  either version 2 of the  License, or (at your
 * option) any later version.
 *
 * Description:
 * This code implements support for a simple MPC52xx based boards which
 * do not need a custom platform specific setup. Such boards are
 * supported assuming the following:
 *
 * - GPIO pins are configured by the firmware,
 * - CDM configuration (clocking) is setup correctly by firmware,
 * - if the 'fsl,has-wdt' property is present in one of the
 *   gpt nodes, then it is safe to use such gpt to reset the board,
 * - PCI is supported if enabled in the kernel configuration
 *   and if there is a PCI bus node defined in the device tree.
 *
 * Boards that are compatible with this generic platform support
 * are listed in a 'board' table.
 */


#undef DEBUG
#include <asm/time.h>
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/mpc52xx.h>

/*
 * Setup the architecture
 */

static void __init mpc5200_simple_setup_arch(void) { if (ppc_md.progress) ppc_md.progress("mpc5200_simple_setup_arch()", 0); /* Map important registers from the internal memory map */ mpc52xx_map_common_devices(); /* Some mpc5200 & mpc5200b related configuration */ mpc5200_setup_xlb_arbiter(); mpc52xx_setup_pci(); }

Contributors

PersonTokensPropCommitsCommitProp
Marian Balakowicz3188.57%150.00%
Grant C. Likely411.43%150.00%
Total35100.00%2100.00%

/* list of the supported boards */ static const char *board[] __initdata = { "anonymous,a3m071", "anonymous,a4m072", "anon,charon", "ifm,o2d", "intercontrol,digsy-mtc", "manroland,mucmc52", "manroland,uc101", "phytec,pcm030", "phytec,pcm032", "promess,motionpro", "schindler,cm5200", "tqc,tqm5200", NULL }; /* * Called very early, MMU is off, device-tree isn't unflattened */
static int __init mpc5200_simple_probe(void) { return of_device_compatible_match(of_root, board); }

Contributors

PersonTokensPropCommitsCommitProp
Marian Balakowicz1376.47%133.33%
Grant C. Likely211.76%133.33%
Benjamin Herrenschmidt211.76%133.33%
Total17100.00%3100.00%

define_machine(mpc5200_simple_platform) { .name = "mpc5200-simple-platform", .probe = mpc5200_simple_probe, .setup_arch = mpc5200_simple_setup_arch, .init = mpc52xx_declare_of_platform_devices, .init_IRQ = mpc52xx_init_irq, .get_irq = mpc52xx_get_irq, .restart = mpc52xx_restart, .calibrate_decr = generic_calibrate_decr, };

Overall Contributors

PersonTokensPropCommitsCommitProp
Marian Balakowicz12581.17%17.69%
Heiko Schocher85.19%430.77%
Grant C. Likely74.55%215.38%
Wolfram Sang42.60%17.69%
Stefan Roese21.30%17.69%
Grzegorz Bernacki21.30%17.69%
Benjamin Herrenschmidt21.30%17.69%
Anatolij Gustschin21.30%17.69%
Sascha Hauer21.30%17.69%
Total154100.00%13100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.