watchdog: s3c2410_wdt: support exynos 8 series
authorChangki Kim <changki.kim@samsung.com>
Thu, 11 Jun 2015 13:55:52 +0000 (22:55 +0900)
committerJaehyoung Choi <jkkkkk.choi@samsung.com>
Wed, 9 May 2018 11:27:46 +0000 (20:27 +0900)
Change-Id: I78344da7b2c234ac41223612036bcec0f08872c9
Signed-off-by: Changki Kim <changki.kim@samsung.com>
drivers/watchdog/s3c2410_wdt.c

index 7841da48ace1c300dcc38cfa0cad1634fd70267d..cfce2b70217ca5b35e5b7eb8add7b46819108243 100644 (file)
@@ -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);