2 * This file contains low level CPU setup functions.
3 * Valentine Barshak <vbarshak@ru.mvista.com>
4 * MontaVista Software, Inc (c) 2007
6 * Based on cpu_setup_6xx code by
7 * Benjamin Herrenschmidt <benh@kernel.crashing.org>
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version
12 * 2 of the License, or (at your option) any later version.
16 #include <asm/processor.h>
17 #include <asm/cputable.h>
18 #include <asm/ppc_asm.h>
20 _GLOBAL(__setup_cpu_440ep)
22 _GLOBAL(__setup_cpu_440epx)
26 bl __fixup_440A_mcheck
29 _GLOBAL(__setup_cpu_440grx)
32 bl __fixup_440A_mcheck
35 _GLOBAL(__setup_cpu_460ex)
36 _GLOBAL(__setup_cpu_460gt)
38 _GLOBAL(__setup_cpu_440gx)
39 _GLOBAL(__setup_cpu_440spe)
42 /* Temporary fixup for arch/ppc until we kill the whole thing */
43 #ifndef CONFIG_PPC_MERGE
44 _GLOBAL(__fixup_440A_mcheck)
48 /* enable APU between CPU and FPU */
49 _GLOBAL(__init_fpu_44x)
51 /* Clear DAPUIB flag in CCR0 */
58 * Workaround for the incorrect write to DDR SDRAM errata.
59 * The write address can be corrupted during writes to
60 * DDR SDRAM when write pipelining is enabled on PLB0.
61 * Disable write pipelining here.
63 #define DCRN_PLB4A0_ACR 0x81
65 _GLOBAL(__plb_disable_wrp)
66 mfdcr r3,DCRN_PLB4A0_ACR
67 /* clear WRP bit in PLB4A0_ACR */
69 mtdcr DCRN_PLB4A0_ACR,r3