powerpc: mpc85xx: Improve Work-around for Erratum A005125
authorTakuma Ueba <ueba.takuma@jp.fujitsu.com>
Mon, 23 Apr 2018 04:27:33 +0000 (13:27 +0900)
committerYork Sun <york.sun@nxp.com>
Wed, 9 May 2018 14:17:51 +0000 (09:17 -0500)
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>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/powerpc/cpu/mpc85xx/release.S

index 5d212f3..d37e1cc 100644 (file)
        .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