c790634d946b750ecfa8317888c037e461ec5890
[safe/jmp/linux-2.6] / arch / powerpc / kernel / cpu_setup_44x.S
1 /*
2  * This file contains low level CPU setup functions.
3  * Valentine Barshak <vbarshak@ru.mvista.com>
4  * MontaVista Software, Inc (c) 2007
5  *
6  * Based on cpu_setup_6xx code by 
7  * Benjamin Herrenschmidt <benh@kernel.crashing.org>
8  *
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.
13  *
14  */
15
16 #include <asm/processor.h>
17 #include <asm/cputable.h>
18 #include <asm/ppc_asm.h>
19
20 _GLOBAL(__setup_cpu_440ep)
21         b       __init_fpu_44x
22 _GLOBAL(__setup_cpu_440epx)
23         b       __init_fpu_44x
24
25 /* enable APU between CPU and FPU */
26 _GLOBAL(__init_fpu_44x)
27         mfspr   r3,SPRN_CCR0
28         /* Clear DAPUIB flag in CCR0 */
29         rlwinm  r3,r3,0,12,10
30         mtspr   SPRN_CCR0,r3
31         isync
32         blr
33