diff mbox series

[U-Boot] powerpc: mpc85xx: Improve Work-around for Erratum A005125

Message ID 20180423042733.8083-1-ueba.takuma@jp.fujitsu.com
State Accepted
Delegated to: York Sun
Headers show
Series [U-Boot] powerpc: mpc85xx: Improve Work-around for Erratum A005125 | expand

Commit Message

Takuma Ueba April 23, 2018, 4:27 a.m. UTC
powerpc/mpc85xx: Work-around for Erratum A005125 must be applied to all cores.

Signed-off-by: Yoshihisa Morizumi <yoshi.morizumi@jp.fujitsu.com>
Signed-off-by: Takuma Ueba <ueba.takuma@jp.fujitsu.com>
---
 arch/powerpc/cpu/mpc85xx/release.S | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

York Sun May 9, 2018, 6:15 p.m. UTC | #1
On 04/22/2018 11:27 PM, Takuma Ueba wrote:
> powerpc/mpc85xx: Work-around for Erratum A005125 must be applied to all cores.
> 
> Signed-off-by: Yoshihisa Morizumi <yoshi.morizumi@jp.fujitsu.com>
> Signed-off-by: Takuma Ueba <ueba.takuma@jp.fujitsu.com>
> ---

Applied to fsl-qoriq master, awaiting upstream.
Thanks.

York
diff mbox series

Patch

diff --git a/arch/powerpc/cpu/mpc85xx/release.S b/arch/powerpc/cpu/mpc85xx/release.S
index e1f12089c3..39e2119f34 100644
--- a/arch/powerpc/cpu/mpc85xx/release.S
+++ b/arch/powerpc/cpu/mpc85xx/release.S
@@ -27,6 +27,13 @@ 
 	.globl	__secondary_start_page
 	.align	12
 __secondary_start_page:
+#ifdef CONFIG_SYS_FSL_ERRATUM_A005125
+	msync
+	isync
+	mfspr	r3, SPRN_HDBCR0
+	oris	r3, r3, 0x0080
+	mtspr	SPRN_HDBCR0, r3
+#endif
 /* First do some preliminary setup */
 	lis	r3, HID0_EMCP@h		/* enable machine check */
 #ifndef CONFIG_E500MC