diff options
author | Chia-Wei, Wang <chiawei_wang@aspeedtech.com> | 2020-12-14 13:54:28 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-18 15:23:06 -0500 |
commit | 4a84cf06aa05b10b31b876e6d6f43168945213af (patch) | |
tree | a04a83aecd845f2762fa875a16b0cc1b1a6d58dc /drivers/sysreset | |
parent | ec55a1df39405451f9e62ee76477e397bebb2087 (diff) | |
download | u-boot-4a84cf06aa05b10b31b876e6d6f43168945213af.tar.gz u-boot-4a84cf06aa05b10b31b876e6d6f43168945213af.tar.xz u-boot-4a84cf06aa05b10b31b876e6d6f43168945213af.zip |
aspeed: Add AST2600 platform support
Add low level platform initialization for the AST2600 SoC.
The 2-stage booting with U-Boot SPL are leveraged to support
different booting mode.
However, currently the patch supports only the booting from
memory-mapped SPI flash.
Signed-off-by: Chia-Wei, Wang <chiawei_wang@aspeedtech.com>
Reviewed-by: Ryan Chen <ryan_chen@aspeedtech.com>
Diffstat (limited to 'drivers/sysreset')
-rw-r--r-- | drivers/sysreset/sysreset_ast.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/sysreset/sysreset_ast.c b/drivers/sysreset/sysreset_ast.c index ee941c7770..d747ed00a7 100644 --- a/drivers/sysreset/sysreset_ast.c +++ b/drivers/sysreset/sysreset_ast.c @@ -12,6 +12,7 @@ #include <asm/io.h> #include <asm/arch/wdt.h> #include <linux/err.h> +#include <hang.h> static int ast_sysreset_request(struct udevice *dev, enum sysreset_t type) { @@ -33,11 +34,15 @@ static int ast_sysreset_request(struct udevice *dev, enum sysreset_t type) return -EPROTONOSUPPORT; } +#if !defined(CONFIG_SPL_BUILD) ret = wdt_expire_now(wdt, reset_mode); if (ret) { debug("Sysreset failed: %d", ret); return ret; } +#else + hang(); +#endif return -EINPROGRESS; } |