mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00
cpus: denver: skip DCO enable/disable for recent SKUs
DCO is not supported by the SKUs released after MIDR_PN4. This patch skips enabling or disabling the DCO on these SKUs. Change-Id: Ic31a829de3ae560314d0fb5c5e867689d4ba243b Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
This commit is contained in:
parent
5a22eb421d
commit
5f902752e5
1 changed files with 14 additions and 4 deletions
|
@ -161,13 +161,19 @@ endfunc denver_disable_ext_debug
|
|||
* ----------------------------------------------------
|
||||
*/
|
||||
func denver_enable_dco
|
||||
/* DCO is not supported on PN5 and later */
|
||||
mrs x1, midr_el1
|
||||
mov_imm x2, DENVER_MIDR_PN4
|
||||
cmp x1, x2
|
||||
b.hi 1f
|
||||
|
||||
mov x18, x30
|
||||
bl plat_my_core_pos
|
||||
mov x1, #1
|
||||
lsl x1, x1, x0
|
||||
msr s3_0_c15_c0_2, x1
|
||||
mov x30, x18
|
||||
ret
|
||||
1: ret
|
||||
endfunc denver_enable_dco
|
||||
|
||||
/* ----------------------------------------------------
|
||||
|
@ -175,10 +181,14 @@ endfunc denver_enable_dco
|
|||
* ----------------------------------------------------
|
||||
*/
|
||||
func denver_disable_dco
|
||||
|
||||
mov x18, x30
|
||||
/* DCO is not supported on PN5 and later */
|
||||
mrs x1, midr_el1
|
||||
mov_imm x2, DENVER_MIDR_PN4
|
||||
cmp x1, x2
|
||||
b.hi 2f
|
||||
|
||||
/* turn off background work */
|
||||
mov x18, x30
|
||||
bl plat_my_core_pos
|
||||
mov x1, #1
|
||||
lsl x1, x1, x0
|
||||
|
@ -194,7 +204,7 @@ func denver_disable_dco
|
|||
cbnz x2, 1b
|
||||
|
||||
mov x30, x18
|
||||
ret
|
||||
2: ret
|
||||
endfunc denver_disable_dco
|
||||
|
||||
func check_errata_cve_2017_5715
|
||||
|
|
Loading…
Add table
Reference in a new issue