powerpc/mpc85xx: Fix EDAC address capture
Subsystems (7)
PATCH 1/7 powerpc/mpc85xx: Fix EDAC address capture
Extend err_addr to cover 64 bits for DDR errors.
--- drivers/edac/mpc85xx_edac.c | 10 +++++++--- drivers/edac/mpc85xx_edac.h | 1 + 2 files changed, 8 insertions(+), 3 deletions(-)
drivers/edac/mpc85xx_edac.c +7 -3
@@ -773,6 +773,8 @@ static void sbe_ecc_decode(u32 cap_high, u32 cap_low, u32 cap_ecc, } } +#define make64 (high, low) (((u64)(high) << 32) | (low)) +static void mpc85xx_mc_check (struct mem_ctl_info *mci) {struct mpc85xx_mc_pdata *pdata = mci->pvt_info;
@@ -780,7 +782,7 @@ static void mpc85xx_mc_check(struct mem_ctl_info *mci)u32 bus_width;u32 err_detect;u32 syndrome; -u32 err_addr; +u64 err_addr;u32 pfn;int row_index;u32 cap_high;
@@ -811,7 +813,9 @@ static void mpc85xx_mc_check(struct mem_ctl_info *mci)else syndrome &=0xffff ; - err_addr =in_be32 (pdata->mc_vbase +MPC85XX_MC_CAPTURE_ADDRESS ); + err_addr =make64 ( +in_be32 (pdata->mc_vbase +MPC85XX_MC_CAPTURE_EXT_ADDRESS ), +in_be32 (pdata->mc_vbase +MPC85XX_MC_CAPTURE_ADDRESS )); pfn = err_addr >>PAGE_SHIFT ;for (row_index =0 ; row_index < mci->nr_csrows; row_index++) {
@@ -848,7 +852,7 @@ static void mpc85xx_mc_check(struct mem_ctl_info *mci)mpc85xx_mc_printk (mci,KERN_ERR ,"Captured Data / ECC:\t%#8.8x_%08x / %#2.2x\n" , cap_high, cap_low, syndrome); -mpc85xx_mc_printk (mci,KERN_ERR ,"Err addr: %#8.8x\n" , err_addr); +mpc85xx_mc_printk (mci,KERN_ERR ,"Err addr: %#8.8llx\n" , err_addr);mpc85xx_mc_printk (mci,KERN_ERR ,"PFN: %#8.8x\n" , pfn);/* we are out of range */
drivers/edac/mpc85xx_edac.h +1 -0
@@ -43,6 +43,7 @@#define MPC85XX_MC_ERR_INT_EN 0x0e48#define MPC85XX_MC_CAPTURE_ATRIBUTES 0x0e4c#define MPC85XX_MC_CAPTURE_ADDRESS 0x0e50 +#define MPC85XX_MC_CAPTURE_EXT_ADDRESS 0x0e54#define MPC85XX_MC_ERR_SBE 0x0e58#define DSC_MEM_EN 0x80000000
Signature · 1 line
1.7.9.5
A message that is not in the archive (sent off-list or not yet received): 1378482199-10581-1-git-send-email-yorksun-KZfg59tc24xl57MIdRCFDg@public.gmane.org
PATCH 4/7 power/mpc85xx: Add delay after enabling I2C master
Erratum A-006037 indicates I2C controller executes the write to I2CCR only after it sees SCL idle for 64K cycle of internal I2C controller clocks. If during this waiting period, I2C controller is disabled (I2CCR[MEN] set to 0), then the controller could end in bad state, and hang the future access to I2C register.
The mpc_i2c_fixup() function tries to recover the bus from a stalled state where the 9th clock pulse wasn't generated. However, this workaround disables and enables I2C controller without meeting waiting requirement of this erratum.
This erratum applies to some 85xx SoCs. It is safe to apply to all of them for mpc_i2c_fixup().
--- drivers/i2c/busses/i2c-mpc.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
drivers/i2c/busses/i2c-mpc.c +10 -1
@@ -106,7 +106,12 @@ static irqreturn_t mpc_i2c_isr(int irq, void *dev_id)static void mpc_i2c_fixup (struct mpc_i2c *i2c) {int k; -u32 delay_val =1000000 / i2c->real_clk +1 ; +u32 delay_val; +#ifdef CONFIG_PPC_85xx + delay_val =65536 / (fsl_get_sys_freq () /2000000 );/* 64K cycle */ +#else + delay_val =1000000 / i2c->real_clk +1 ; +#endif if (delay_val <2 ) delay_val =2 ;
@@ -116,7 +121,11 @@ static void mpc_i2c_fixup(struct mpc_i2c *i2c)writeccr (i2c,CCR_MSTA |CCR_MTX |CCR_MEN );udelay (delay_val);writeccr (i2c,CCR_MEN ); +#ifdef CONFIG_PPC_85xx +udelay (delay_val); +#else udelay (delay_val <<1 ); +#endif } }
Signature · 1 line
1.7.9.5
PATCH 2/7 powerpc/mpc8xxx: Change EDAC for FSL SoC
In reply to York SunRemove mpc83xx and mpc85xx as dependency.
--- drivers/edac/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/edac/Kconfig +2 -2
@@ -254,10 +254,10 @@ config EDAC_SBRIDGE config EDAC_MPC85XX tristate "Freescale MPC83xx / MPC85xx" - depends on EDAC_MM_EDAC && FSL_SOC && (PPC_83xx || PPC_85xx) + depends on EDAC_MM_EDAC && FSL_SOC help Support for error detection and correction on the Freescale - MPC8349, MPC8560, MPC8540, MPC8548 + MPC8349, MPC8560, MPC8540, MPC8548, T4240 config EDAC_MV64X60 tristate "Marvell MV64x60"
Signature · 1 line
1.7.9.5
PATCH 3/7 i2c/rtc-ds3232: Fix irq for probing
In reply to York SunDriver shouldn't request irq when irq = 0. It is returned from parsing device tree. 0 means no interrupt.
--- drivers/rtc/rtc-ds3232.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-ds3232.c +1 -1
@@ -418,7 +418,7 @@ static int ds3232_probe(struct i2c_client *client,return PTR_ERR (ds3232->rtc); } -if (client->irq >=0 ) { +if (client->irq >0 ) { ret =devm_request_irq (&client->dev, client->irq, ds3232_irq,0 ,"ds3232" , client);if (ret) {
Signature · 1 line
1.7.9.5
Re: [PATCH 3/7] i2c/rtc-ds3232: Fix irq for probing
Quoted 10 lines · York Sun
Driver shouldn't request irq when irq = 0. It is returned from parsing device tree. 0 means no interrupt.
Signed-off-by York Sun <[email protected]>Reviewed-by Zang Tiefei-R61911 <[email protected]>Reviewed-by Fleming Andrew-AFLEMING <[email protected]>--- drivers/rtc/rtc-ds3232.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
This should go via the i2c list and maintainer. It's not a PPC patch at all.
Please do not lump unrelated patches into a single patchset.
-Scott
PATCH 5/7 powerpc/corenet64_smp_defconfig: Enable most SPI splash
In reply to York SunEnable CONFIG_MTD_M25P80 for corenet64_smp_defconfig. Verified on P5040DS.
--- arch/powerpc/configs/corenet64_smp_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/configs/corenet64_smp_defconfig +1 -0
@@ -66,6 +66,7 @@ CONFIG_MTD_CMDLINE_PARTS=y CONFIG_MTD_CHAR=y CONFIG_MTD_BLKDEVS=y CONFIG_MTD_BLOCK=y +CONFIG_MTD_M25P80=y CONFIG_FTL=y CONFIG_MTD_CFI=y CONFIG_MTD_GEN_PROBE=y
Signature · 1 line
1.7.9.5
Re: [5/7] powerpc/corenet64_smp_defconfig: Enable most SPI splash
Quoted 17 lines · York Sun
Enable
CONFIG_MTD_M25P80forcorenet64_smp_defconfig. Verified on P5040DS.Signed-off-by York Sun <[email protected]>Reviewed-by Wood Scott-B07421 <[email protected]>Reviewed-by Fleming Andrew-AFLEMING <[email protected]>---
arch/powerpc/configs/corenet64_smp_defconfig| 1 +1 file changed, 1 insertion(+)arch/powerpc/configs/corenet64_smp_defconfig +0
-0
arch/powerpc/configs/corenet64_smp_defconfig CONFIG_MTD_CMDLINE_PARTS=y · line 72
Quoted 7 lines
arch/powerpc/configs/corenet64_smp_defconfig +1
-0@@ -66,6 +66,7 @@ CONFIG_MTD_CMDLINE_PARTS=y CONFIG_MTD_CHAR=y CONFIG_MTD_BLKDEVS=y CONFIG_MTD_BLOCK=y +CONFIG_MTD_M25P80=y CONFIG_FTL=y CONFIG_MTD_CFI=y CONFIG_MTD_GEN_PROBE=y
This has already been enabled in corenet64_smp_config since commit 478a4829d815865b919c1fa20f0f33543a2291fb, over a year ago.
-Scott
Re: [5/7] powerpc/corenet64_smp_defconfig: Enable most SPI splash
Quoted 13 lines · Scott Wood
Quoted 12 lines · York Sun
Enable
CONFIG_MTD_M25P80forcorenet64_smp_defconfig. Verified on P5040DS.Signed-off-by York Sun <[email protected]>Reviewed-by Wood Scott-B07421 <[email protected]>Reviewed-by Fleming Andrew-AFLEMING <[email protected]>---
arch/powerpc/configs/corenet64_smp_defconfig| 1 +1 file changed, 1 insertion(+)
Quoted 16 lines
arch/powerpc/configs/corenet64_smp_defconfig CONFIG_MTD_CMDLINE_PARTS=y · line 72
Quoted 12 lines
arch/powerpc/configs/corenet64_smp_defconfig +1
-0@@ -66,6 +66,7 @@ CONFIG_MTD_CMDLINE_PARTS=y CONFIG_MTD_CHAR=y CONFIG_MTD_BLKDEVS=y CONFIG_MTD_BLOCK=y +CONFIG_MTD_M25P80=y CONFIG_FTL=y CONFIG_MTD_CFI=y CONFIG_MTD_GEN_PROBE=yThis has already been enabled in
corenet64_smp_configsince commit478a4829d815865b919c1fa20f0f33543a2291fb, over a year ago.
Oh. Thanks. Please drop it then.
York
PATCH 6/7 powerpc/t4240emu: Add device tree file for t4240emu
In reply to York SunT4240EMU is an emulator target with minimum peripherals. It is based on T4240QDS and trimmed down most peripherals due to either not modeled or lack of board level connections. The main purpose of this minimum dts is to speed up booting on emulator.
--- arch/powerpc/boot/dts/t4240emu.dts | 278 ++++++++++++++++++++++++++++++++++++ 1 file changed, 278 insertions(+) create mode 100644 arch/powerpc/boot/dts/t4240emu.dts
arch/powerpc/boot/dts/t4240emu.dts new file +278 -0
@@ -0,0 +1,278 @@ +/* + * T4240 emulator Device Tree Source + * + * Copyright 2013 Freescale Semiconductor Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Freescale Semiconductor nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * + * ALTERNATIVELY, this software may be distributed under the terms of the + * GNU General Public License ("GPL") as published by the Free Software + * Foundation, either version 2 of that License or (at your option) any + * later version. + * + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/dts-v1/; + +/include/ "fsl/e6500_power_isa.dtsi" +/ { + #address-cells = <2>; + #size-cells = <2>; + interrupt-parent = <&mpic>; + + aliases { + ccsr = &soc; + + serial0 = &serial0; + serial1 = &serial1; + serial2 = &serial2; + serial3 = &serial3; + dma0 = &dma0; + dma1 = &dma1; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + /* + * Temporarily add next-level-cache info in each cpu node so + * that uboot can do L2 cache fixup. This can be removed once + * u-boot can create cpu node with cache info. + */ + cpu0: PowerPC,e6500@0 { + device_type = "cpu"; + reg = <0 1>; + next-level-cache = <&L2_1>; + }; + cpu1: PowerPC,e6500@2 { + device_type = "cpu"; + reg = <2 3>; + next-level-cache = <&L2_1>; + }; + cpu2: PowerPC,e6500@4 { + device_type = "cpu"; + reg = <4 5>; + next-level-cache = <&L2_1>; + }; + cpu3: PowerPC,e6500@6 { + device_type = "cpu"; + reg = <6 7>; + next-level-cache = <&L2_1>; + }; + + cpu4: PowerPC,e6500@8 { + device_type = "cpu"; + reg = <8 9>; + next-level-cache = <&L2_2>; + }; + cpu5: PowerPC,e6500@10 { + device_type = "cpu"; + reg = <10 11>; + next-level-cache = <&L2_2>; + }; + cpu6: PowerPC,e6500@12 { + device_type = "cpu"; + reg = <12 13>; + next-level-cache = <&L2_2>; + }; + cpu7: PowerPC,e6500@14 { + device_type = "cpu"; + reg = <14 15>; + next-level-cache = <&L2_2>; + }; + + cpu8: PowerPC,e6500@16 { + device_type = "cpu"; + reg = <16 17>; + next-level-cache = <&L2_3>; + }; + cpu9: PowerPC,e6500@18 { + device_type = "cpu"; + reg = <18 19>; + next-level-cache = <&L2_3>; + }; + cpu10: PowerPC,e6500@20 { + device_type = "cpu"; + reg = <20 21>; + next-level-cache = <&L2_3>; + }; + cpu11: PowerPC,e6500@22 { + device_type = "cpu"; + reg = <22 23>; + next-level-cache = <&L2_3>; + }; + }; +}; + +/ { + model = "fsl,T4240QDS"; + compatible = "fsl,t4240emu", "fsl,T4240QDS"; + #address-cells = <2>; + #size-cells = <2>; + interrupt-parent = <&mpic>; + + ifc: localbus@ffe124000 { + reg = <0xf 0xfe124000 0 0x2000>; + ranges = <0 0 0xf 0xe8000000 0x08000000 + 2 0 0xf 0xff800000 0x00010000 + 3 0 0xf 0xffdf0000 0x00008000>; + + nor@0,0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "cfi-flash"; + reg = <0x0 0x0 0x8000000>; + + bank-width = <2>; + device-width = <1>; + }; + + }; + + memory { + device_type = "memory"; + }; + + soc: soc@ffe000000 { + ranges = <0x00000000 0xf 0xfe000000 0x1000000>; + reg = <0xf 0xfe000000 0 0x00001000>; + + }; + +}; + +&ifc { + #address-cells = <2>; + #size-cells = <1>; + compatible = "fsl,ifc", "simple-bus"; + interrupts = <25 2 0 0>; +}; + +&soc { + #address-cells = <1>; + #size-cells = <1>; + device_type = "soc"; + compatible = "simple-bus"; + + soc-sram-error { + compatible = "fsl,soc-sram-error"; + interrupts = <16 2 1 29>; + }; + + corenet-law@0 { + compatible = "fsl,corenet-law"; + reg = <0x0 0x1000>; + fsl,num-laws = <32>; + }; + + ddr1: memory-controller@8000 { + compatible = "fsl,qoriq-memory-controller-v4.7", + "fsl,qoriq-memory-controller"; + reg = <0x8000 0x1000>; + interrupts = <16 2 1 23>; + }; + + ddr2: memory-controller@9000 { + compatible = "fsl,qoriq-memory-controller-v4.7", + "fsl,qoriq-memory-controller"; + reg = <0x9000 0x1000>; + interrupts = <16 2 1 22>; + }; + + ddr3: memory-controller@a000 { + compatible = "fsl,qoriq-memory-controller-v4.7", + "fsl,qoriq-memory-controller"; + reg = <0xa000 0x1000>; + interrupts = <16 2 1 21>; + }; + + cpc: l3-cache-controller@10000 { + compatible = "fsl,p5020-l3-cache-controller", "fsl,p4080-l3-cache-controller", "cache"; + reg = <0x10000 0x1000 + 0x11000 0x1000>; + interrupts = <16 2 1 27 + 16 2 1 26>; + }; + + corenet-cf@18000 { + compatible = "fsl,corenet-cf"; + reg = <0x18000 0x1000>; + interrupts = <16 2 1 31>; + fsl,ccf-num-csdids = <32>; + fsl,ccf-num-snoopids = <32>; + }; + + iommu@20000 { + compatible = "fsl,pamu-v1.0", "fsl,pamu"; + reg = <0x20000 0x6000>; + interrupts = < + 24 2 0 0 + 16 2 1 30>; + }; + +/include/ "fsl/qoriq-mpic.dtsi" + + guts: global-utilities@e0000 { + compatible = "fsl,t4240-device-config"; + reg = <0xe0000 0xe00>; + fsl,has-rstcr; + fsl,liodn-bits = <12>; + }; + + clockgen: global-utilities@e1000 { + compatible = "fsl,t4240-clockgen", "fsl,qoriq-clockgen-2"; + reg = <0xe1000 0x1000>; + }; + +/include/ "fsl/qoriq-dma-0.dtsi" +/include/ "fsl/qoriq-dma-1.dtsi" + +/include/ "fsl/qoriq-i2c-0.dtsi" +/include/ "fsl/qoriq-i2c-1.dtsi" +/include/ "fsl/qoriq-duart-0.dtsi" +/include/ "fsl/qoriq-duart-1.dtsi" + + + /* + * Temporarily define cluster 1/2/3's L2 cache nodes in order to pass + * next-level-cache info to uboot to do L3 cache fixup. This can be + * removed once u-boot can create cpu node with cache info. + */ + L2_1: l2-cache-controller@c20000 { + compatible = "fsl,t4240-l2-cache-controller"; + reg = <0xc20000 0x40000>; + next-level-cache = <&cpc>; + }; + L2_2: l2-cache-controller@c60000 { + compatible = "fsl,t4240-l2-cache-controller"; + reg = <0xc60000 0x40000>; + next-level-cache = <&cpc>; + }; + L2_3: l2-cache-controller@ca0000 { + compatible = "fsl,t4240-l2-cache-controller"; + reg = <0xca0000 0x40000>; + next-level-cache = <&cpc>; + }; +}; +
Signature · 1 line
1.7.9.5
PATCH 7/7 powerpc/b4860emu: Add device tree file for b4860emu
In reply to York SunB4860EMU is a emualtor target with minimum peripherals. It is based on B4860QDS and trimmed down most peripherals due to either not modeled or lack of board level connections. The main purpose of this minimum dts is to speed up booting on emulator.
--- arch/powerpc/boot/dts/b4860emu.dts | 201 ++++++++++++++++++++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 arch/powerpc/boot/dts/b4860emu.dts
arch/powerpc/boot/dts/b4860emu.dts new file +201 -0
@@ -0,0 +1,201 @@ +/* + * B4860 emulator Device Tree Source + * + * Copyright 2013 Freescale Semiconductor Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Freescale Semiconductor nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * + * ALTERNATIVELY, this software may be distributed under the terms of the + * GNU General Public License ("GPL") as published by the Free Software + * Foundation, either version 2 of that License or (at your option) any + * later version. + * + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/dts-v1/; + +/include/ "fsl/e6500_power_isa.dtsi" + +/ { + #address-cells = <2>; + #size-cells = <2>; + interrupt-parent = <&mpic>; + + aliases { + ccsr = &soc; + + serial0 = &serial0; + serial1 = &serial1; + serial2 = &serial2; + serial3 = &serial3; + dma0 = &dma0; + dma1 = &dma1; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: PowerPC,e6500@0 { + device_type = "cpu"; + reg = <0 1>; + next-level-cache = <&L2>; + }; + cpu1: PowerPC,e6500@2 { + device_type = "cpu"; + reg = <2 3>; + next-level-cache = <&L2>; + }; + cpu2: PowerPC,e6500@4 { + device_type = "cpu"; + reg = <4 5>; + next-level-cache = <&L2>; + }; + cpu3: PowerPC,e6500@6 { + device_type = "cpu"; + reg = <6 7>; + next-level-cache = <&L2>; + }; + }; +}; + +/ { + model = "fsl,B4860QDS"; + compatible = "fsl,b4860emu", "fsl,B4860QDS"; + #address-cells = <2>; + #size-cells = <2>; + interrupt-parent = <&mpic>; + + ifc: localbus@ffe124000 { + reg = <0xf 0xfe124000 0 0x2000>; + ranges = <0 0 0xf 0xe8000000 0x08000000 + 2 0 0xf 0xff800000 0x00010000 + 3 0 0xf 0xffdf0000 0x00008000>; + + nor@0,0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "cfi-flash"; + reg = <0x0 0x0 0x8000000>; + bank-width = <2>; + device-width = <1>; + }; + }; + + memory { + device_type = "memory"; + }; + + soc: soc@ffe000000 { + ranges = <0x00000000 0xf 0xfe000000 0x1000000>; + reg = <0xf 0xfe000000 0 0x00001000>; + + }; +}; + +&ifc { + #address-cells = <2>; + #size-cells = <1>; + compatible = "fsl,ifc", "simple-bus"; + interrupts = <25 2 0 0>; +}; + +&soc { + #address-cells = <1>; + #size-cells = <1>; + device_type = "soc"; + compatible = "simple-bus"; + + soc-sram-error { + compatible = "fsl,soc-sram-error"; + interrupts = <16 2 1 2>; + }; + + corenet-law@0 { + compatible = "fsl,corenet-law"; + reg = <0x0 0x1000>; + fsl,num-laws = <32>; + }; + + ddr1: memory-controller@8000 { + compatible = "fsl,qoriq-memory-controller-v4.5", "fsl,qoriq-memory-controller"; + reg = <0x8000 0x1000>; + interrupts = <16 2 1 8>; + }; + + ddr2: memory-controller@9000 { + compatible = "fsl,qoriq-memory-controller-v4.5","fsl,qoriq-memory-controller"; + reg = <0x9000 0x1000>; + interrupts = <16 2 1 9>; + }; + + cpc: l3-cache-controller@10000 { + compatible = "fsl,p5020-l3-cache-controller", "fsl,p4080-l3-cache-controller", "cache"; + reg = <0x10000 0x1000 + 0x11000 0x1000>; + interrupts = <16 2 1 4 + 16 2 1 5>; + }; + + corenet-cf@18000 { + compatible = "fsl,corenet-cf"; + reg = <0x18000 0x1000>; + interrupts = <16 2 1 0>; + fsl,ccf-num-csdids = <32>; + fsl,ccf-num-snoopids = <32>; + }; + + iommu@20000 { + compatible = "fsl,pamu-v1.0", "fsl,pamu"; + reg = <0x20000 0x4000>; + interrupts = < + 24 2 0 0 + 16 2 1 1>; + }; + +/include/ "fsl/qoriq-mpic.dtsi" + + guts: global-utilities@e0000 { + compatible = "fsl,b4860-device-config"; + reg = <0xe0000 0xe00>; + fsl,has-rstcr; + fsl,liodn-bits = <12>; + }; + + clockgen: global-utilities@e1000 { + compatible = "fsl,b4860-clockgen", "fsl,qoriq-clockgen-2"; + reg = <0xe1000 0x1000>; + }; + +/include/ "fsl/qoriq-dma-0.dtsi" +/include/ "fsl/qoriq-dma-1.dtsi" + +/include/ "fsl/qoriq-i2c-0.dtsi" +/include/ "fsl/qoriq-i2c-1.dtsi" +/include/ "fsl/qoriq-duart-0.dtsi" +/include/ "fsl/qoriq-duart-1.dtsi" + + L2: l2-cache-controller@c20000 { + next-level-cache = <&cpc>; + }; +};
Signature · 1 line
1.7.9.5
Re: [PATCH 7/7] powerpc/b4860emu: Add device tree file for b4860emu
Quoted 9 lines · York Sun
B4860EMU is a emualtor target with minimum peripherals. It is based on B4860QDS and trimmed down most peripherals due to either not modeled or lack of board level connections. The main purpose of this minimum dts is to speed up booting on emulator.
Signed-off-by York Sun <[email protected]>Reviewed-by Wood Scott-B07421 <[email protected]>Reviewed-by Fleming Andrew-AFLEMING <[email protected]>
I did not give a reviewed-by in this context. Please strip gerrit tags before posting.
arch/powerpc/boot/dts/b4860emu.dts line 186
Quoted 2 lines
arch/powerpc/boot/dts/b4860emu.dts new file +2
-0+ clockgen: global-utilities@e1000 { + compatible = "fsl,b4860-clockgen", "fsl,qoriq-clockgen-2";
It's "fsl,qoriq-clockgen-2.0" now.
Please be careful with copy-and-paste patches like this -- make sure that it's up-to-date with what you copied from.
-Scott
Quoted 9 lines · York Sun
Extend
err_addrto cover 64 bits for DDR errors.Signed-off-by York Sun <[email protected]>Reviewed-by Fleming Andrew-AFLEMING <[email protected]>--- drivers/edac/mpc85xx_edac.c | 10 +++++++--- drivers/edac/mpc85xx_edac.h | 1 + 2 files changed, 8 insertions(+), 3 deletions(-)
EDAC patches should go via the linux-edac list and maintainer.
BTW, were those "reviewed-by" and "tested-by" added by Andy manually, or are they from gerrit? If the latter, please strip them before sending upstream.
-Scott