cregit-Linux how code gets into the kernel

Release 4.14 arch/powerpc/platforms/86xx/common.c

/*
 * Routines common to most mpc86xx-based boards.
 *
 * This is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#include <linux/of_platform.h>
#include <asm/synch.h>

#include "mpc86xx.h"


static const struct of_device_id mpc86xx_common_ids[] __initconst = {
	{ .type = "soc", },
	{ .compatible = "soc", },
	{ .compatible = "simple-bus", },
	{ .name = "localbus", },
	{ .compatible = "gianfar", },
	{ .compatible = "fsl,mpc8641-pcie", },
	{},
};


int __init mpc86xx_common_publish_devices(void) { return of_platform_bus_probe(NULL, mpc86xx_common_ids, NULL); }

Contributors

PersonTokensPropCommitsCommitProp
Alessio Igor Bogani18100.00%1100.00%
Total18100.00%1100.00%


long __init mpc86xx_time_init(void) { unsigned int temp; /* Set the time base to zero */ mtspr(SPRN_TBWL, 0); mtspr(SPRN_TBWU, 0); temp = mfspr(SPRN_HID0); temp |= HID0_TBEN; mtspr(SPRN_HID0, temp); isync(); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Alessio Igor Bogani51100.00%1100.00%
Total51100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Alessio Igor Bogani133100.00%1100.00%
Total133100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.