diff options
author | Michael Neuling <mikey@neuling.org> | 2012-10-30 19:34:14 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-11-15 13:00:42 +1100 |
commit | aec937b1ee6d7b28499d50ea6df1b2fe9edee91b (patch) | |
tree | a52d68b41ef4a83ad205aa52e20d2847665acf2b /arch/powerpc/kernel/cpu_setup_power.S | |
parent | cd5daaf713cf8d728a2be2a3673293fff9465d9a (diff) | |
download | kernel_goldelico_gta04-aec937b1ee6d7b28499d50ea6df1b2fe9edee91b.zip kernel_goldelico_gta04-aec937b1ee6d7b28499d50ea6df1b2fe9edee91b.tar.gz kernel_goldelico_gta04-aec937b1ee6d7b28499d50ea6df1b2fe9edee91b.tar.bz2 |
powerpc: Add POWER8 setup code
Just a copy of POWER7 for now. Will update with new code later.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/cpu_setup_power.S')
-rw-r--r-- | arch/powerpc/kernel/cpu_setup_power.S | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/cpu_setup_power.S b/arch/powerpc/kernel/cpu_setup_power.S index 76797c5..a92101d 100644 --- a/arch/powerpc/kernel/cpu_setup_power.S +++ b/arch/powerpc/kernel/cpu_setup_power.S @@ -44,6 +44,30 @@ _GLOBAL(__restore_cpu_power7) mtlr r11 blr +_GLOBAL(__setup_cpu_power8) + mflr r11 + bl __init_hvmode_206 + mtlr r11 + beqlr + li r0,0 + mtspr SPRN_LPID,r0 + bl __init_LPCR + bl __init_TLB + mtlr r11 + blr + +_GLOBAL(__restore_cpu_power8) + mflr r11 + mfmsr r3 + rldicl. r0,r3,4,63 + beqlr + li r0,0 + mtspr SPRN_LPID,r0 + bl __init_LPCR + bl __init_TLB + mtlr r11 + blr + __init_hvmode_206: /* Disable CPU_FTR_HVMODE and exit if MSR:HV is not set */ mfmsr r3 |