aboutsummaryrefslogtreecommitdiff
path: root/drivers/renesas
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@gmail.com>2019-01-05 14:18:10 +0100
committerMarek Vasut <marek.vasut+renesas@gmail.com>2019-04-02 03:40:51 +0200
commitcdea546d709c74e64b2c5c0a3dff7743b3ea00d0 (patch)
tree4f2f10cd0b2b95de27bf7fc8e0aea66446131674 /drivers/renesas
parentada66133e9fd5d6991aba273b5ca8fcbe4eca19c (diff)
downloadtrusted-firmware-a-cdea546d709c74e64b2c5c0a3dff7743b3ea00d0.tar.gz
rcar_gen3: drivers: swdt: Add D3 support
Add WTCNT register configuration for the D3 SoC. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Diffstat (limited to 'drivers/renesas')
-rw-r--r--drivers/renesas/rcar/watchdog/swdt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/renesas/rcar/watchdog/swdt.c b/drivers/renesas/rcar/watchdog/swdt.c
index 7793ae5009..8b2943cc64 100644
--- a/drivers/renesas/rcar/watchdog/swdt.c
+++ b/drivers/renesas/rcar/watchdog/swdt.c
@@ -49,7 +49,11 @@ extern void gicd_set_icenabler(uintptr_t base, unsigned int id);
#define WTCSRA_INIT_DATA (WTCSRA_UPPER_BYTE + 0x0FU)
#define WTCSRB_INIT_DATA (WTCSRB_UPPER_BYTE + 0x21U)
+#if RCAR_LSI == RCAR_D3
+#define WTCNT_COUNT_8p13k (0x10000U - 40760U)
+#else
#define WTCNT_COUNT_8p13k (0x10000U - 40687U)
+#endif
#define WTCNT_COUNT_8p13k_H3VER10 (0x10000U - 20343U)
#define WTCNT_COUNT_8p22k (0x10000U - 41115U)
#define WTCNT_COUNT_7p81k (0x10000U - 39062U)