From f8161aba476e554680285c177caceb90bf3d2f2a Mon Sep 17 00:00:00 2001 From: Joel Stanley Date: Mon, 26 Jun 2017 21:03:30 +0930 Subject: aspeed: Add defines for all watchdogs This adds defines for WDT2 (and WDT3 for the ast2500), and renames the existing one to WDT1. Signed-off-by: Joel Stanley --- arch/arm/include/asm/arch-aspeed/ast2400_platform.h | 3 ++- arch/arm/include/asm/arch-aspeed/ast_g5_platform.h | 4 +++- arch/arm/mach-aspeed/reset.c | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'arch') diff --git a/arch/arm/include/asm/arch-aspeed/ast2400_platform.h b/arch/arm/include/asm/arch-aspeed/ast2400_platform.h index 5c00bb60ea..33c559eb1f 100644 --- a/arch/arm/include/asm/arch-aspeed/ast2400_platform.h +++ b/arch/arm/include/asm/arch-aspeed/ast2400_platform.h @@ -57,7 +57,8 @@ #define AST_TIMER_BASE 0x1E782000 /* TIMER #0~7*/ #define AST_UART1_BASE 0x1E783000 /* UART1 */ #define AST_UART0_BASE 0x1E784000 /* UART5 */ -#define AST_WDT_BASE 0x1E785000 /* WDT */ +#define AST_WDT1_BASE 0x1E785000 /* WDT1 */ +#define AST_WDT2_BASE 0x1E785020 /* WDT2 */ #define AST_PWM_BASE 0x1E786000 /* PWM */ #define AST_VUART0_BASE 0x1E787000 /* VUART1 */ #define AST_PUART_BASE 0x1E788000 /* PUART */ diff --git a/arch/arm/include/asm/arch-aspeed/ast_g5_platform.h b/arch/arm/include/asm/arch-aspeed/ast_g5_platform.h index 3b178cdbe2..42108733f3 100644 --- a/arch/arm/include/asm/arch-aspeed/ast_g5_platform.h +++ b/arch/arm/include/asm/arch-aspeed/ast_g5_platform.h @@ -96,7 +96,9 @@ #define AST_TIMER_BASE 0x1E782000 /* TIMER #0~2*/ #define AST_UART1_BASE 0x1E783000 /* UART1 */ #define AST_UART0_BASE 0x1E784000 /* UART5 */ -#define AST_WDT_BASE 0x1E785000 /* WDT */ +#define AST_WDT1_BASE 0x1E785000 /* WDT1 */ +#define AST_WDT2_BASE 0x1E785020 /* WDT2 */ +#define AST_WDT3_BASE 0x1E785040 /* WDT3 */ #define AST_PWM_BASE 0x1E786000 /* PWM */ #define AST_VUART0_BASE 0x1E787000 /* VUART1 */ #define AST_PUART_BASE 0x1E788000 /* PUART */ diff --git a/arch/arm/mach-aspeed/reset.c b/arch/arm/mach-aspeed/reset.c index b4d8c40623..1a44b3ae3a 100644 --- a/arch/arm/mach-aspeed/reset.c +++ b/arch/arm/mach-aspeed/reset.c @@ -9,9 +9,9 @@ void reset_cpu(ulong addr) { - __raw_writel(0x10 , AST_WDT_BASE+0x04); - __raw_writel(0x4755, AST_WDT_BASE+0x08); - __raw_writel(0x3, AST_WDT_BASE+0x0c); + __raw_writel(0x10 , AST_WDT1_BASE+0x04); + __raw_writel(0x4755, AST_WDT1_BASE+0x08); + __raw_writel(0x3, AST_WDT1_BASE+0x0c); while (1) /*nothing*/; -- cgit v1.2.1