aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/head_32.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/head_32.S')
-rw-r--r--arch/powerpc/kernel/head_32.S28
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S
index d9b063f567e0..7ef9a3e3002b 100644
--- a/arch/powerpc/kernel/head_32.S
+++ b/arch/powerpc/kernel/head_32.S
@@ -153,9 +153,6 @@ __after_mmu_off:
153 bl flush_tlbs 153 bl flush_tlbs
154 154
155 bl initial_bats 155 bl initial_bats
156#if !defined(CONFIG_APUS) && defined(CONFIG_BOOTX_TEXT)
157 bl setup_disp_bat
158#endif
159 156
160/* 157/*
161 * Call setup_cpu for CPU 0 and initialize 6xx Idle 158 * Call setup_cpu for CPU 0 and initialize 6xx Idle
@@ -1297,31 +1294,6 @@ initial_bats:
1297 isync 1294 isync
1298 blr 1295 blr
1299 1296
1300#if !defined(CONFIG_APUS) && defined(CONFIG_BOOTX_TEXT)
1301setup_disp_bat:
1302 /*
1303 * setup the display bat prepared for us in prom.c
1304 */
1305 mflr r8
1306 bl reloc_offset
1307 mtlr r8
1308 addis r8,r3,disp_BAT@ha
1309 addi r8,r8,disp_BAT@l
1310 lwz r11,0(r8)
1311 lwz r8,4(r8)
1312 mfspr r9,SPRN_PVR
1313 rlwinm r9,r9,16,16,31 /* r9 = 1 for 601, 4 for 604 */
1314 cmpwi 0,r9,1
1315 beq 1f
1316 mtspr SPRN_DBAT3L,r8
1317 mtspr SPRN_DBAT3U,r11
1318 blr
13191: mtspr SPRN_IBAT3L,r8
1320 mtspr SPRN_IBAT3U,r11
1321 blr
1322
1323#endif /* !defined(CONFIG_APUS) && defined(CONFIG_BOOTX_TEXT) */
1324
1325 1297
1326#ifdef CONFIG_8260 1298#ifdef CONFIG_8260
1327/* Jump into the system reset for the rom. 1299/* Jump into the system reset for the rom.