···1/*2 * P1020 RDB Device Tree Source3 *4- * Copyright 2009 Freescale Semiconductor Inc.5 *6 * This program is free software; you can redistribute it and/or modify it7 * under the terms of the GNU General Public License as published by the···553 reg = <0 0xffe09000 0 0x1000>;554 bus-range = <0 255>;555 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000556- 0x1000000 0x0 0x00000000 0 0xffc30000 0x0 0x10000>;557 clock-frequency = <33333333>;558 interrupt-parent = <&mpic>;559 interrupts = <16 2>;···580 #address-cells = <3>;581 reg = <0 0xffe0a000 0 0x1000>;582 bus-range = <0 255>;583- ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000584- 0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x10000>;585 clock-frequency = <33333333>;586 interrupt-parent = <&mpic>;587 interrupts = <16 2>;···590 #size-cells = <2>;591 #address-cells = <3>;592 device_type = "pci";593- ranges = <0x2000000 0x0 0xc0000000594- 0x2000000 0x0 0xc0000000595 0x0 0x20000000596597 0x1000000 0x0 0x0
···1/*2 * P1020 RDB Device Tree Source3 *4+ * Copyright 2009-2011 Freescale Semiconductor Inc.5 *6 * This program is free software; you can redistribute it and/or modify it7 * under the terms of the GNU General Public License as published by the···553 reg = <0 0xffe09000 0 0x1000>;554 bus-range = <0 255>;555 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000556+ 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;557 clock-frequency = <33333333>;558 interrupt-parent = <&mpic>;559 interrupts = <16 2>;···580 #address-cells = <3>;581 reg = <0 0xffe0a000 0 0x1000>;582 bus-range = <0 255>;583+ ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000584+ 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;585 clock-frequency = <33333333>;586 interrupt-parent = <&mpic>;587 interrupts = <16 2>;···590 #size-cells = <2>;591 #address-cells = <3>;592 device_type = "pci";593+ ranges = <0x2000000 0x0 0x80000000594+ 0x2000000 0x0 0x80000000595 0x0 0x20000000596597 0x1000000 0x0 0x0
+6-6
arch/powerpc/boot/dts/p2020rdb.dts
···1/*2 * P2020 RDB Device Tree Source3 *4- * Copyright 2009 Freescale Semiconductor Inc.5 *6 * This program is free software; you can redistribute it and/or modify it7 * under the terms of the GNU General Public License as published by the···537 reg = <0 0xffe09000 0 0x1000>;538 bus-range = <0 255>;539 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000540- 0x1000000 0x0 0x00000000 0 0xffc30000 0x0 0x10000>;541 clock-frequency = <33333333>;542 interrupt-parent = <&mpic>;543 interrupts = <25 2>;···564 #address-cells = <3>;565 reg = <0 0xffe0a000 0 0x1000>;566 bus-range = <0 255>;567- ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000568- 0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x10000>;569 clock-frequency = <33333333>;570 interrupt-parent = <&mpic>;571 interrupts = <26 2>;···574 #size-cells = <2>;575 #address-cells = <3>;576 device_type = "pci";577- ranges = <0x2000000 0x0 0xc0000000578- 0x2000000 0x0 0xc0000000579 0x0 0x20000000580581 0x1000000 0x0 0x0
···1/*2 * P2020 RDB Device Tree Source3 *4+ * Copyright 2009-2011 Freescale Semiconductor Inc.5 *6 * This program is free software; you can redistribute it and/or modify it7 * under the terms of the GNU General Public License as published by the···537 reg = <0 0xffe09000 0 0x1000>;538 bus-range = <0 255>;539 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000540+ 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;541 clock-frequency = <33333333>;542 interrupt-parent = <&mpic>;543 interrupts = <25 2>;···564 #address-cells = <3>;565 reg = <0 0xffe0a000 0 0x1000>;566 bus-range = <0 255>;567+ ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000568+ 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;569 clock-frequency = <33333333>;570 interrupt-parent = <&mpic>;571 interrupts = <26 2>;···574 #size-cells = <2>;575 #address-cells = <3>;576 device_type = "pci";577+ ranges = <0x2000000 0x0 0x80000000578+ 0x2000000 0x0 0x80000000579 0x0 0x20000000580581 0x1000000 0x0 0x0
+2-2
arch/powerpc/boot/dts/p2020rdb_camp_core0.dts
···6 * This dts file allows core0 to have memory, l2, i2c, spi, gpio, dma1, usb,7 * eth1, eth2, sdhc, crypto, global-util, pci0.8 *9- * Copyright 2009 Freescale Semiconductor Inc.10 *11 * This program is free software; you can redistribute it and/or modify it12 * under the terms of the GNU General Public License as published by the···342 reg = <0 0xffe09000 0 0x1000>;343 bus-range = <0 255>;344 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000345- 0x1000000 0x0 0x00000000 0 0xffc30000 0x0 0x10000>;346 clock-frequency = <33333333>;347 interrupt-parent = <&mpic>;348 interrupts = <25 2>;
···6 * This dts file allows core0 to have memory, l2, i2c, spi, gpio, dma1, usb,7 * eth1, eth2, sdhc, crypto, global-util, pci0.8 *9+ * Copyright 2009-2011 Freescale Semiconductor Inc.10 *11 * This program is free software; you can redistribute it and/or modify it12 * under the terms of the GNU General Public License as published by the···342 reg = <0 0xffe09000 0 0x1000>;343 bus-range = <0 255>;344 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000345+ 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;346 clock-frequency = <33333333>;347 interrupt-parent = <&mpic>;348 interrupts = <25 2>;
+5-5
arch/powerpc/boot/dts/p2020rdb_camp_core1.dts
···7 *8 * Please note to add "-b 1" for core1's dts compiling.9 *10- * Copyright 2009 Freescale Semiconductor Inc.11 *12 * This program is free software; you can redistribute it and/or modify it13 * under the terms of the GNU General Public License as published by the···162 #address-cells = <3>;163 reg = <0 0xffe0a000 0 0x1000>;164 bus-range = <0 255>;165- ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000166- 0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x10000>;167 clock-frequency = <33333333>;168 interrupt-parent = <&mpic>;169 interrupts = <26 2>;···172 #size-cells = <2>;173 #address-cells = <3>;174 device_type = "pci";175- ranges = <0x2000000 0x0 0xc0000000176- 0x2000000 0x0 0xc0000000177 0x0 0x20000000178179 0x1000000 0x0 0x0
···7 *8 * Please note to add "-b 1" for core1's dts compiling.9 *10+ * Copyright 2009-2011 Freescale Semiconductor Inc.11 *12 * This program is free software; you can redistribute it and/or modify it13 * under the terms of the GNU General Public License as published by the···162 #address-cells = <3>;163 reg = <0 0xffe0a000 0 0x1000>;164 bus-range = <0 255>;165+ ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000166+ 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;167 clock-frequency = <33333333>;168 interrupt-parent = <&mpic>;169 interrupts = <26 2>;···172 #size-cells = <2>;173 #address-cells = <3>;174 device_type = "pci";175+ ranges = <0x2000000 0x0 0x80000000176+ 0x2000000 0x0 0x80000000177 0x0 0x20000000178179 0x1000000 0x0 0x0
+19-8
drivers/edac/mpc85xx_edac.c
···1147static void __init mpc85xx_mc_clear_rfxe(void *data)1148{1149 orig_hid1[smp_processor_id()] = mfspr(SPRN_HID1);1150- mtspr(SPRN_HID1, (orig_hid1[smp_processor_id()] & ~0x20000));1151}1152#endif11531154static int __init mpc85xx_mc_init(void)1155{1156 int res = 0;011571158 printk(KERN_INFO "Freescale(R) MPC85xx EDAC driver, "1159 "(C) 2006 Montavista Software\n");···1184#endif11851186#ifdef CONFIG_FSL_SOC_BOOKE1187- /*1188- * need to clear HID1[RFXE] to disable machine check int1189- * so we can catch it1190- */1191- if (edac_op_state == EDAC_OPSTATE_INT)1192- on_each_cpu(mpc85xx_mc_clear_rfxe, NULL, 0);000001193#endif11941195 return 0;···1212static void __exit mpc85xx_mc_exit(void)1213{1214#ifdef CONFIG_FSL_SOC_BOOKE1215- on_each_cpu(mpc85xx_mc_restore_hid1, NULL, 0);000001216#endif1217#ifdef CONFIG_PCI1218 platform_driver_unregister(&mpc85xx_pci_err_driver);
···1147static void __init mpc85xx_mc_clear_rfxe(void *data)1148{1149 orig_hid1[smp_processor_id()] = mfspr(SPRN_HID1);1150+ mtspr(SPRN_HID1, (orig_hid1[smp_processor_id()] & ~HID1_RFXE));1151}1152#endif11531154static int __init mpc85xx_mc_init(void)1155{1156 int res = 0;1157+ u32 pvr = 0;11581159 printk(KERN_INFO "Freescale(R) MPC85xx EDAC driver, "1160 "(C) 2006 Montavista Software\n");···1183#endif11841185#ifdef CONFIG_FSL_SOC_BOOKE1186+ pvr = mfspr(SPRN_PVR);1187+1188+ if ((PVR_VER(pvr) == PVR_VER_E500V1) ||1189+ (PVR_VER(pvr) == PVR_VER_E500V2)) {1190+ /*1191+ * need to clear HID1[RFXE] to disable machine check int1192+ * so we can catch it1193+ */1194+ if (edac_op_state == EDAC_OPSTATE_INT)1195+ on_each_cpu(mpc85xx_mc_clear_rfxe, NULL, 0);1196+ }1197#endif11981199 return 0;···1206static void __exit mpc85xx_mc_exit(void)1207{1208#ifdef CONFIG_FSL_SOC_BOOKE1209+ u32 pvr = mfspr(SPRN_PVR);1210+1211+ if ((PVR_VER(pvr) == PVR_VER_E500V1) ||1212+ (PVR_VER(pvr) == PVR_VER_E500V2)) {1213+ on_each_cpu(mpc85xx_mc_restore_hid1, NULL, 0);1214+ }1215#endif1216#ifdef CONFIG_PCI1217 platform_driver_unregister(&mpc85xx_pci_err_driver);