Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

watchdog: aspeed: Add support for AST2600

The ast2600 can be supported by the same code as the ast2500.

Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20190819051738.17370-3-joel@jms.id.au
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Ryan Chen and committed by
Wim Van Sebroeck
b3528b48 ff45d87d

+3 -1
+3 -1
drivers/watchdog/aspeed_wdt.c
··· 34 34 static const struct of_device_id aspeed_wdt_of_table[] = { 35 35 { .compatible = "aspeed,ast2400-wdt", .data = &ast2400_config }, 36 36 { .compatible = "aspeed,ast2500-wdt", .data = &ast2500_config }, 37 + { .compatible = "aspeed,ast2600-wdt", .data = &ast2500_config }, 37 38 { }, 38 39 }; 39 40 MODULE_DEVICE_TABLE(of, aspeed_wdt_of_table); ··· 260 259 set_bit(WDOG_HW_RUNNING, &wdt->wdd.status); 261 260 } 262 261 263 - if (of_device_is_compatible(np, "aspeed,ast2500-wdt")) { 262 + if ((of_device_is_compatible(np, "aspeed,ast2500-wdt")) || 263 + (of_device_is_compatible(np, "aspeed,ast2600-wdt"))) { 264 264 u32 reg = readl(wdt->base + WDT_RESET_WIDTH); 265 265 266 266 reg &= config->ext_pulse_width_mask;