1 // SPDX-License-Identifier: GPL-2.0-only
3 * Routines common to most mpc86xx-based boards.
6 #include <linux/of_platform.h>
11 static const struct of_device_id mpc86xx_common_ids[] __initconst = {
13 { .compatible = "soc", },
14 { .compatible = "simple-bus", },
15 { .name = "localbus", },
16 { .compatible = "gianfar", },
17 { .compatible = "fsl,mpc8641-pcie", },
21 int __init mpc86xx_common_publish_devices(void)
23 return of_platform_bus_probe(NULL, mpc86xx_common_ids, NULL);
26 long __init mpc86xx_time_init(void)
30 /* Set the time base to zero */
34 temp = mfspr(SPRN_HID0);
36 mtspr(SPRN_HID0, temp);