Patchwork powerpc: Enable additional BAT registers in setup_745x_specifics()

mail settings
Submitter Gerhard Pircher
Date June 6, 2009, 9:12 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/28193/
State Accepted, archived
Commit f1f8b4948d19ae84fe37e36601ae064102dfa5ab
Delegated to: Kumar Gala
Headers show


Gerhard Pircher - June 6, 2009, 9:12 p.m.
Currently the kernel expects the additional four IBAT and DBAT registers
to be available, but doesn't enable these registers on 745x CPUs, which
have them disabled after reset. Thus set the HIGH_BAT_EN bit in HID0
register, if the corresponding MMU feature is defined.

Signed-off-by: Gerhard Pircher <>
 arch/powerpc/kernel/cpu_setup_6xx.S |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/arch/powerpc/kernel/cpu_setup_6xx.S b/arch/powerpc/kernel/cpu_setup_6xx.S
index 54f767e..1e9949e 100644
--- a/arch/powerpc/kernel/cpu_setup_6xx.S
+++ b/arch/powerpc/kernel/cpu_setup_6xx.S
@@ -239,6 +239,9 @@  END_FTR_SECTION_IFSET(CPU_FTR_L3CR)
 	ori	r11,r11,HID0_SGE | HID0_FOLD | HID0_BHTE
 	ori	r11,r11,HID0_LRSTK | HID0_BTIC
 	oris	r11,r11,HID0_DPM@h
+	oris	r11,r11,HID0_HIGH_BAT@h
 	xori	r11,r11,HID0_BTIC