Browse Source

Merge pull request #991 from davidcunado-arm/dc/update_hikey

hikey960: migrate to use A53 specific defines
pull/966/head
davidcunado-arm 7 years ago
committed by GitHub
parent
commit
3465ab602a
  1. 12
      plat/hisilicon/hikey960/aarch64/hikey960_helpers.S

12
plat/hisilicon/hikey960/aarch64/hikey960_helpers.S

@ -144,10 +144,10 @@ endfunc plat_reset_handler
* -----------------------------------------------------
*/
func set_retention_ticks
mrs x0, CPUECTLR_EL1
bic x0, x0, #CPUECTLR_CPU_RET_CTRL_MASK
mrs x0, CORTEX_A53_ECTLR_EL1
bic x0, x0, #CORTEX_A53_ECTLR_CPU_RET_CTRL_MASK
orr x0, x0, #RETENTION_ENTRY_TICKS_8
msr CPUECTLR_EL1, x0
msr CORTEX_A53_ECTLR_EL1, x0
isb
dsb sy
ret
@ -159,9 +159,9 @@ endfunc set_retention_ticks
* -----------------------------------------------------
*/
func clr_retention_ticks
mrs x0, CPUECTLR_EL1
bic x0, x0, #CPUECTLR_CPU_RET_CTRL_MASK
msr CPUECTLR_EL1, x0
mrs x0, CORTEX_A53_ECTLR_EL1
bic x0, x0, #CORTEX_A53_ECTLR_CPU_RET_CTRL_MASK
msr CORTEX_A53_ECTLR_EL1, x0
isb
dsb sy
ret

Loading…
Cancel
Save