diff options
author | Nikita Shubin <n.shubin@yadro.com> | 2021-11-10 12:42:30 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-11-12 07:59:20 +0300 |
commit | f3744967c6b595c0caba164468b4b32b9c027dfd (patch) | |
tree | 16b52e6d6cfba7dc5fbacd39fa28136d535a4d3b /scripts | |
parent | 13a1158d24f6462ecf17d63e0c2325994180deac (diff) | |
download | opensbi-f3744967c6b595c0caba164468b4b32b9c027dfd.tar.xz |
platform: sifive_fu740: add platform reset driver
da9063 PMIC can be used to reset/shutdown the
Sifive Unmatched board.
shutdown is done simply by writing SHUTDOWN bit to
DA9063_REG_CONTROL_F register.
reset via setting WAKEUP bit in DA9063_REG_CONTROL_F
register followed by masking POWER and POWER1 domains
and setting STANDBY bit in DA9063_REG_CONTROL_A,
originally discovered by Alexandre Ghiti on linux-riscv
maillists.
Tested-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Tested-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Signed-off-by: Nikita Shubin <n.shubin@yadro.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions