platform: implement K210 system reset
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 26 Feb 2021 09:25:10 +0000 (09:25 +0000)
committerAnup Patel <anup@brainfault.org>
Wed, 3 Mar 2021 03:09:10 +0000 (08:39 +0530)
commitec5274b04ce1433778af8aed2d583e6d85b8a702
tree44632fdc0104ea30a4c7941c55b5dab661762961
parent234ed8e427f4d92903123199f6590d144e0d9351
platform: implement K210 system reset

Implement rebooting the K210 via the system reset extension.

All reset types are treated in the same way.
A request for shutdown results in a reboot.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
platform/kendryte/k210/platform.c
platform/kendryte/k210/platform.h