Merge pull request #1331 from hzhuang1/reboot_delay
hikey960: add delay before reset
This commit is contained in:
commit
bd79727c93
|
@ -9,6 +9,7 @@
|
||||||
#include <cci.h>
|
#include <cci.h>
|
||||||
#include <console.h>
|
#include <console.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
#include <delay_timer.h>
|
||||||
#include <gicv2.h>
|
#include <gicv2.h>
|
||||||
#include <hi3660.h>
|
#include <hi3660.h>
|
||||||
#include <hi3660_crg.h>
|
#include <hi3660_crg.h>
|
||||||
|
@ -114,6 +115,9 @@ void hikey960_pwr_domain_off(const psci_power_state_t *target_state)
|
||||||
|
|
||||||
static void __dead2 hikey960_system_reset(void)
|
static void __dead2 hikey960_system_reset(void)
|
||||||
{
|
{
|
||||||
|
dsb();
|
||||||
|
isb();
|
||||||
|
mdelay(2000);
|
||||||
mmio_write_32(SCTRL_SCPEREN1_REG,
|
mmio_write_32(SCTRL_SCPEREN1_REG,
|
||||||
SCPEREN1_WAIT_DDR_SELFREFRESH_DONE_BYPASS);
|
SCPEREN1_WAIT_DDR_SELFREFRESH_DONE_BYPASS);
|
||||||
mmio_write_32(SCTRL_SCSYSSTAT_REG, 0xdeadbeef);
|
mmio_write_32(SCTRL_SCSYSSTAT_REG, 0xdeadbeef);
|
||||||
|
|
Loading…
Reference in New Issue