]> git.ipfire.org Git - thirdparty/linux.git/commit
watchdog: aspeed: Support variable number of reset mask registers
authorChin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
Fri, 10 Oct 2025 08:03:14 +0000 (16:03 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 15 Nov 2025 14:19:52 +0000 (15:19 +0100)
commit0eb54296dc784de757724055983d32b03c9e2df1
tree7fe0cd09c1cfa5f4c145fed648df4b9e578556f8
parentb3bc229b54e780fe02a41ec65a0cb06acf7ac1d9
watchdog: aspeed: Support variable number of reset mask registers

Starting from the AST2600 platform, the SoC design has become more
complex, with an increased number of reset mask registers.
To support this, introduce a new field 'num_reset_masks' in the
'aspeed_wdt_config' structure to specify the number of reset mask
registers per platform. This change removes the need for hardcoded
platform-specific logic and improves scalability for future SoCs.

Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/aspeed_wdt.c