0001
0002
0003
0004
0005
0006 #include <linux/of_platform.h>
0007 #include <asm/synch.h>
0008
0009 #include "mpc86xx.h"
0010
0011 static const struct of_device_id mpc86xx_common_ids[] __initconst = {
0012 { .type = "soc", },
0013 { .compatible = "soc", },
0014 { .compatible = "simple-bus", },
0015 { .name = "localbus", },
0016 { .compatible = "gianfar", },
0017 { .compatible = "fsl,mpc8641-pcie", },
0018 {},
0019 };
0020
0021 int __init mpc86xx_common_publish_devices(void)
0022 {
0023 return of_platform_bus_probe(NULL, mpc86xx_common_ids, NULL);
0024 }
0025
0026 long __init mpc86xx_time_init(void)
0027 {
0028 unsigned int temp;
0029
0030
0031 mtspr(SPRN_TBWL, 0);
0032 mtspr(SPRN_TBWU, 0);
0033
0034 temp = mfspr(SPRN_HID0);
0035 temp |= HID0_TBEN;
0036 mtspr(SPRN_HID0, temp);
0037 isync();
0038
0039 return 0;
0040 }