[U-Boot] [PATCH v1 05/15] aspeed: Reset Driver

Simon Glass sjg at chromium.org
Wed Apr 19 00:11:37 UTC 2017


On 17 April 2017 at 13:00, Maxim Sloyko <maxims at google.com> wrote:
> Add Reset Driver for ast2500 SoC. This driver uses Watchdog Timer to
> perform resets and thus depends on it. The actual Watchdog device used
> needs to be configured in Device Tree using "aspeed,wdt" property, which
> must be WDT phandle, for example:
>
> rst: reset-controller {
>     compatible = "aspeed,ast2500-reset";
>     aspeed,wdt = <&wdt1>;
> }
>
> Signed-off-by: Maxim Sloyko <maxims at google.com>
>
> ---
>
> Changes in v1:
> - Remove unnecessary check for error in dev_get_priv
> - Fix comment
> - Rename wdt_reset call to wdt_expire_now
>
> ---
>  arch/arm/include/asm/arch-aspeed/scu_ast2500.h |  28 +++++++
>  drivers/reset/Kconfig                          |  10 +++
>  drivers/reset/Makefile                         |   1 +
>  drivers/reset/ast2500-reset.c                  | 106 +++++++++++++++++++++++++
>  4 files changed, 145 insertions(+)
>  create mode 100644 drivers/reset/ast2500-reset.c

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list