aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/cpu_setup_44x.S
diff options
context:
space:
mode:
authorValentine Barshak <vbarshak@ru.mvista.com>2007-09-21 10:46:57 -0400
committerJosh Boyer <jwboyer@linux.vnet.ibm.com>2007-10-03 08:20:17 -0400
commit8112753bb2c0045398c89d0647792b39805f6d40 (patch)
tree5a818e51c96b9cc0d0cd733838554037339a8559 /arch/powerpc/kernel/cpu_setup_44x.S
parent84e3ad5b91ed51db7513a54ad7ed652ab0ca4ba1 (diff)
[POWERPC] 4xx: Move 440EP(x) FPU setup from head_44x to cpu_setup_4xx
The PowerPC 440EP(x) FPU init is currently done in head_44x under ifdefs. Since we should support more then one board in the same kernel, we move FPU initialization code from head_44x to cpu_setup_44x and add cpu_setup callbacks for 440EP(x). Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com> Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'arch/powerpc/kernel/cpu_setup_44x.S')
-rw-r--r--arch/powerpc/kernel/cpu_setup_44x.S14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/cpu_setup_44x.S b/arch/powerpc/kernel/cpu_setup_44x.S
index 6a6e6c71ad6f..c790634d946b 100644
--- a/arch/powerpc/kernel/cpu_setup_44x.S
+++ b/arch/powerpc/kernel/cpu_setup_44x.S
@@ -17,3 +17,17 @@
17#include <asm/cputable.h> 17#include <asm/cputable.h>
18#include <asm/ppc_asm.h> 18#include <asm/ppc_asm.h>
19 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