Thomas Gleixner | 4505153 | 2019-05-29 16:57:47 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Olof Johansson | 1199919 | 2007-02-04 16:36:51 -0600 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2006-2007 PA Semi, Inc |
| 4 | * |
| 5 | * Maintained by: Olof Johansson <olof@lixom.net> |
Olof Johansson | 1199919 | 2007-02-04 16:36:51 -0600 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <asm/processor.h> |
| 9 | #include <asm/page.h> |
| 10 | #include <asm/cputable.h> |
| 11 | #include <asm/ppc_asm.h> |
| 12 | #include <asm/asm-offsets.h> |
| 13 | #include <asm/cache.h> |
| 14 | |
| 15 | /* Right now, restore and setup are the same thing */ |
| 16 | _GLOBAL(__restore_cpu_pa6t) |
| 17 | _GLOBAL(__setup_cpu_pa6t) |
| 18 | /* Do nothing if not running in HV mode */ |
| 19 | mfmsr r0 |
| 20 | rldicl. r0,r0,4,63 |
| 21 | beqlr |
| 22 | |
| 23 | mfspr r0,SPRN_HID5 |
Olof Johansson | 62357d8 | 2007-04-16 16:27:45 +1000 | [diff] [blame] | 24 | ori r0,r0,0x38 |
Olof Johansson | 1199919 | 2007-02-04 16:36:51 -0600 | [diff] [blame] | 25 | mtspr SPRN_HID5,r0 |
| 26 | |
| 27 | mfspr r0,SPRN_LPCR |
| 28 | ori r0,r0,0x7000 |
| 29 | mtspr SPRN_LPCR,r0 |
| 30 | |
| 31 | blr |