Commit b3528b48 authored by Ryan Chen's avatar Ryan Chen Committed by Wim Van Sebroeck

watchdog: aspeed: Add support for AST2600

The ast2600 can be supported by the same code as the ast2500.
Signed-off-by: default avatarRyan Chen <ryan_chen@aspeedtech.com>
Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20190819051738.17370-3-joel@jms.id.auSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent ff45d87d
...@@ -34,6 +34,7 @@ static const struct aspeed_wdt_config ast2500_config = { ...@@ -34,6 +34,7 @@ static const struct aspeed_wdt_config ast2500_config = {
static const struct of_device_id aspeed_wdt_of_table[] = { static const struct of_device_id aspeed_wdt_of_table[] = {
{ .compatible = "aspeed,ast2400-wdt", .data = &ast2400_config }, { .compatible = "aspeed,ast2400-wdt", .data = &ast2400_config },
{ .compatible = "aspeed,ast2500-wdt", .data = &ast2500_config }, { .compatible = "aspeed,ast2500-wdt", .data = &ast2500_config },
{ .compatible = "aspeed,ast2600-wdt", .data = &ast2500_config },
{ }, { },
}; };
MODULE_DEVICE_TABLE(of, aspeed_wdt_of_table); MODULE_DEVICE_TABLE(of, aspeed_wdt_of_table);
...@@ -259,7 +260,8 @@ static int aspeed_wdt_probe(struct platform_device *pdev) ...@@ -259,7 +260,8 @@ static int aspeed_wdt_probe(struct platform_device *pdev)
set_bit(WDOG_HW_RUNNING, &wdt->wdd.status); set_bit(WDOG_HW_RUNNING, &wdt->wdd.status);
} }
if (of_device_is_compatible(np, "aspeed,ast2500-wdt")) { if ((of_device_is_compatible(np, "aspeed,ast2500-wdt")) ||
(of_device_is_compatible(np, "aspeed,ast2600-wdt"))) {
u32 reg = readl(wdt->base + WDT_RESET_WIDTH); u32 reg = readl(wdt->base + WDT_RESET_WIDTH);
reg &= config->ext_pulse_width_mask; reg &= config->ext_pulse_width_mask;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment