From a8871cd15c60ca4e272154f84ae22e2787bff133 Mon Sep 17 00:00:00 2001 From: Changki Kim Date: Thu, 11 Jun 2015 22:55:52 +0900 Subject: [PATCH] watchdog: s3c2410_wdt: support exynos 8 series Change-Id: I78344da7b2c234ac41223612036bcec0f08872c9 Signed-off-by: Changki Kim --- drivers/watchdog/s3c2410_wdt.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index 7841da48ace1..cfce2b70217c 100644 --- a/drivers/watchdog/s3c2410_wdt.c +++ b/drivers/watchdog/s3c2410_wdt.c @@ -170,6 +170,15 @@ static const struct s3c2410_wdt_variant drv_data_exynos7 = { | QUIRK_HAS_WTCLRINT_REG, }; +static const struct s3c2410_wdt_variant drv_data_exynos8 = { + .disable_reg = EXYNOS5_WDT_DISABLE_REG_OFFSET, + .mask_reset_reg = EXYNOS5_WDT_MASK_RESET_REG_OFFSET, + .mask_bit = 24, + .rst_stat_reg = EXYNOS5_RST_STAT_REG_OFFSET, + .rst_stat_bit = 24, /* A53 WDTRESET */ + .quirks = QUIRK_HAS_PMU_CONFIG | QUIRK_HAS_RST_STAT, +}; + static const struct of_device_id s3c2410_wdt_match[] = { { .compatible = "samsung,s3c2410-wdt", .data = &drv_data_s3c2410 }, @@ -181,6 +190,8 @@ static const struct of_device_id s3c2410_wdt_match[] = { .data = &drv_data_exynos5420 }, { .compatible = "samsung,exynos7-wdt", .data = &drv_data_exynos7 }, + { .compatible = "samsung,exynos8-wdt", + .data = &drv_data_exynos8 }, {}, }; MODULE_DEVICE_TABLE(of, s3c2410_wdt_match); -- 2.20.1