Joel Hutton | a7c4687 | 2018-01-10 16:06:07 +0000 | [diff] [blame] | 1 | /* |
John Tsichritzis | 16e6d9f | 2019-02-19 14:01:55 +0000 | [diff] [blame] | 2 | * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. |
Joel Hutton | a7c4687 | 2018-01-10 16:06:07 +0000 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | #include <arch.h> |
| 7 | #include <asm_macros.S> |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 8 | #include <common/bl_common.h> |
| 9 | #include <common/debug.h> |
John Tsichritzis | 16e6d9f | 2019-02-19 14:01:55 +0000 | [diff] [blame] | 10 | #include <neoverse_e1.h> |
Joel Hutton | a7c4687 | 2018-01-10 16:06:07 +0000 | [diff] [blame] | 11 | #include <cpu_macros.S> |
Joel Hutton | a7c4687 | 2018-01-10 16:06:07 +0000 | [diff] [blame] | 12 | #include <plat_macros.S> |
| 13 | |
John Tsichritzis | 16e6d9f | 2019-02-19 14:01:55 +0000 | [diff] [blame] | 14 | func neoverse_e1_cpu_pwr_dwn |
| 15 | mrs x0, NEOVERSE_E1_CPUPWRCTLR_EL1 |
| 16 | orr x0, x0, #NEOVERSE_E1_CPUPWRCTLR_EL1_CORE_PWRDN_BIT |
| 17 | msr NEOVERSE_E1_CPUPWRCTLR_EL1, x0 |
Joel Hutton | a7c4687 | 2018-01-10 16:06:07 +0000 | [diff] [blame] | 18 | isb |
| 19 | ret |
John Tsichritzis | 16e6d9f | 2019-02-19 14:01:55 +0000 | [diff] [blame] | 20 | endfunc neoverse_e1_cpu_pwr_dwn |
Joel Hutton | a7c4687 | 2018-01-10 16:06:07 +0000 | [diff] [blame] | 21 | |
Soby Mathew | 0980dce | 2018-09-17 04:34:35 +0100 | [diff] [blame] | 22 | #if REPORT_ERRATA |
| 23 | /* |
John Tsichritzis | 16e6d9f | 2019-02-19 14:01:55 +0000 | [diff] [blame] | 24 | * Errata printing function for Neoverse N1. Must follow AAPCS. |
Soby Mathew | 0980dce | 2018-09-17 04:34:35 +0100 | [diff] [blame] | 25 | */ |
John Tsichritzis | 16e6d9f | 2019-02-19 14:01:55 +0000 | [diff] [blame] | 26 | func neoverse_e1_errata_report |
Soby Mathew | 0980dce | 2018-09-17 04:34:35 +0100 | [diff] [blame] | 27 | ret |
John Tsichritzis | 16e6d9f | 2019-02-19 14:01:55 +0000 | [diff] [blame] | 28 | endfunc neoverse_e1_errata_report |
Soby Mathew | 0980dce | 2018-09-17 04:34:35 +0100 | [diff] [blame] | 29 | #endif |
| 30 | |
| 31 | |
John Tsichritzis | 16e6d9f | 2019-02-19 14:01:55 +0000 | [diff] [blame] | 32 | .section .rodata.neoverse_e1_regs, "aS" |
| 33 | neoverse_e1_regs: /* The ascii list of register names to be reported */ |
Joel Hutton | a7c4687 | 2018-01-10 16:06:07 +0000 | [diff] [blame] | 34 | .asciz "cpuectlr_el1", "" |
| 35 | |
John Tsichritzis | 16e6d9f | 2019-02-19 14:01:55 +0000 | [diff] [blame] | 36 | func neoverse_e1_cpu_reg_dump |
| 37 | adr x6, neoverse_e1_regs |
| 38 | mrs x8, NEOVERSE_E1_ECTLR_EL1 |
Joel Hutton | a7c4687 | 2018-01-10 16:06:07 +0000 | [diff] [blame] | 39 | ret |
John Tsichritzis | 16e6d9f | 2019-02-19 14:01:55 +0000 | [diff] [blame] | 40 | endfunc neoverse_e1_cpu_reg_dump |
Joel Hutton | a7c4687 | 2018-01-10 16:06:07 +0000 | [diff] [blame] | 41 | |
John Tsichritzis | 16e6d9f | 2019-02-19 14:01:55 +0000 | [diff] [blame] | 42 | declare_cpu_ops neoverse_e1, NEOVERSE_E1_MIDR, \ |
Joel Hutton | a7c4687 | 2018-01-10 16:06:07 +0000 | [diff] [blame] | 43 | CPU_NO_RESET_FUNC, \ |
John Tsichritzis | 16e6d9f | 2019-02-19 14:01:55 +0000 | [diff] [blame] | 44 | neoverse_e1_cpu_pwr_dwn |