Skip to content

Commit 480ee8a

Browse files
Kyunghwan SeoWim Van Sebroeck
authored andcommitted
watchdog: s3c2410_wdt: Fix PMU register bits for ExynosAutoV920 SoC
Fix the PMU register bits for the ExynosAutoV920 SoC. This SoC has different bit information compared to its previous version, ExynosAutoV9, and we have made the necessary adjustments. rst_stat_bit: - ExynosAutoV920 cl0 : 0 - ExynosAutoV920 cl1 : 1 cnt_en_bit: - ExynosAutoV920 cl0 : 8 - ExynosAutoV920 cl1 : 8 Signed-off-by: Kyunghwan Seo <[email protected]> Signed-off-by: Sangwook Shin <[email protected]> Reviewed-by: Alim Akhtar <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent c284153 commit 480ee8a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

drivers/watchdog/s3c2410_wdt.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
#define EXYNOS850_CLUSTER1_WDTRESET_BIT 23
7373
#define EXYNOSAUTOV9_CLUSTER0_WDTRESET_BIT 25
7474
#define EXYNOSAUTOV9_CLUSTER1_WDTRESET_BIT 24
75+
#define EXYNOSAUTOV920_CLUSTER0_WDTRESET_BIT 0
76+
#define EXYNOSAUTOV920_CLUSTER1_WDTRESET_BIT 1
7577

7678
#define GS_CLUSTER0_NONCPU_OUT 0x1220
7779
#define GS_CLUSTER1_NONCPU_OUT 0x1420
@@ -312,9 +314,9 @@ static const struct s3c2410_wdt_variant drv_data_exynosautov920_cl0 = {
312314
.mask_bit = 2,
313315
.mask_reset_inv = true,
314316
.rst_stat_reg = EXYNOS5_RST_STAT_REG_OFFSET,
315-
.rst_stat_bit = EXYNOSAUTOV9_CLUSTER0_WDTRESET_BIT,
317+
.rst_stat_bit = EXYNOSAUTOV920_CLUSTER0_WDTRESET_BIT,
316318
.cnt_en_reg = EXYNOSAUTOV920_CLUSTER0_NONCPU_OUT,
317-
.cnt_en_bit = 7,
319+
.cnt_en_bit = 8,
318320
.quirks = QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET |
319321
QUIRK_HAS_PMU_RST_STAT | QUIRK_HAS_PMU_CNT_EN |
320322
QUIRK_HAS_DBGACK_BIT,
@@ -325,9 +327,9 @@ static const struct s3c2410_wdt_variant drv_data_exynosautov920_cl1 = {
325327
.mask_bit = 2,
326328
.mask_reset_inv = true,
327329
.rst_stat_reg = EXYNOS5_RST_STAT_REG_OFFSET,
328-
.rst_stat_bit = EXYNOSAUTOV9_CLUSTER1_WDTRESET_BIT,
330+
.rst_stat_bit = EXYNOSAUTOV920_CLUSTER1_WDTRESET_BIT,
329331
.cnt_en_reg = EXYNOSAUTOV920_CLUSTER1_NONCPU_OUT,
330-
.cnt_en_bit = 7,
332+
.cnt_en_bit = 8,
331333
.quirks = QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET |
332334
QUIRK_HAS_PMU_RST_STAT | QUIRK_HAS_PMU_CNT_EN |
333335
QUIRK_HAS_DBGACK_BIT,

0 commit comments

Comments
 (0)