1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * This file contains low level CPU setup functions.
4 * Valentine Barshak <vbarshak@ru.mvista.com>
5 * MontaVista Software, Inc (c) 2007
7 * Based on cpu_setup_6xx code by
8 * Benjamin Herrenschmidt <benh@kernel.crashing.org>
11 #include <asm/processor.h>
12 #include <asm/cputable.h>
13 #include <asm/ppc_asm.h>
15 _GLOBAL(__setup_cpu_440ep)
17 _GLOBAL(__setup_cpu_440epx)
21 bl __fixup_440A_mcheck
24 _GLOBAL(__setup_cpu_440grx)
27 bl __fixup_440A_mcheck
30 _GLOBAL(__setup_cpu_460ex)
31 _GLOBAL(__setup_cpu_460gt)
32 _GLOBAL(__setup_cpu_460sx)
33 _GLOBAL(__setup_cpu_apm821xx)
36 bl __fixup_440A_mcheck
40 _GLOBAL(__setup_cpu_440x5)
41 _GLOBAL(__setup_cpu_440gx)
42 _GLOBAL(__setup_cpu_440spe)
45 /* enable APU between CPU and FPU */
46 _GLOBAL(__init_fpu_44x)
48 /* Clear DAPUIB flag in CCR0 */
55 * Workaround for the incorrect write to DDR SDRAM errata.
56 * The write address can be corrupted during writes to
57 * DDR SDRAM when write pipelining is enabled on PLB0.
58 * Disable write pipelining here.
60 #define DCRN_PLB4A0_ACR 0x81
62 _GLOBAL(__plb_disable_wrp)
63 mfdcr r3,DCRN_PLB4A0_ACR
64 /* clear WRP bit in PLB4A0_ACR */
66 mtdcr DCRN_PLB4A0_ACR,r3