reset: ast2500: Use SCU for reset control
authorChia-Wei, Wang <chiawei_wang@aspeedtech.com>
Thu, 15 Oct 2020 02:25:13 +0000 (10:25 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2020 15:26:14 +0000 (11:26 -0400)
commit611a28ce271164941aac02feea19f1d87bd1cf32
tree1a7c3f2a865e5f98a30237d5c0d5434bb57eb96f
parentfa181d1a95a2851873f586139b7ca3c35c551498
reset: ast2500: Use SCU for reset control

The System Control Unit (SCU) controller of Aspeed
SoCs provides the reset control for each peripheral.

This patch refactors the reset method to leverage
the SCU reset control. Thus the driver dependency
on watchdog including dedicated WDT API and reset
flag encoding can be eliminated.

The Kconfig description is also updated accordingly.

Signed-off-by: Chia-Wei, Wang <chiawei_wang@aspeedtech.com>
Reviewed-by: Ryan Chen <ryan_chen@aspeedtech.com>
arch/arm/dts/ast2500-u-boot.dtsi
drivers/reset/Kconfig
drivers/reset/ast2500-reset.c
include/dt-bindings/reset/ast2500-reset.h