Browse Source

Merge pull request #1069 from Leo-Yan/hikey_enable_watchdog_reset

Hikey: enable watchdog reset
pull/1083/head
danh-arm 7 years ago
committed by GitHub
parent
commit
137c8f01e4
  1. 5
      plat/hisilicon/hikey/hisi_pwrc.c

5
plat/hisilicon/hikey/hisi_pwrc.c

@ -75,8 +75,13 @@ int hisi_pwrc_setup(void)
pm_asm_code_end - pm_asm_code);
reg = mmio_read_32(AO_SC_SYS_CTRL1);
/* Remap SRAM address for ACPU */
reg |= AO_SC_SYS_CTRL1_REMAP_SRAM_AARM |
AO_SC_SYS_CTRL1_REMAP_SRAM_AARM_MSK;
/* Enable reset signal for watchdog */
reg |= AO_SC_SYS_CTRL1_AARM_WD_RST_CFG |
AO_SC_SYS_CTRL1_AARM_WD_RST_CFG_MSK;
mmio_write_32(AO_SC_SYS_CTRL1, reg);
return 0;

Loading…
Cancel
Save