summaryrefslogtreecommitdiff
path: root/include/plat
diff options
context:
space:
mode:
authorAditya Angadi <aditya.angadi@arm.com>2019-04-16 11:29:14 +0530
committerAditya Angadi <aditya.angadi@arm.com>2019-04-17 18:42:48 +0530
commitb0c97dafe00f5da71361b53fcbf5e4c12b174ec2 (patch)
treee5e86cf30f76b15dd2af1efbaee5525dcc4b3e4e /include/plat
parentf79abf5e98005aa12d8d0f145810e5b46e2d808b (diff)
plat/arm: introduce wrapper functions to setup secure watchdog
The BL1 stage setup code for ARM platforms sets up the SP805 watchdog controller as the secure watchdog. But not all ARM platforms use SP805 as the secure watchdog controller. So introduce two new ARM platform code specific wrapper functions to start and stop the secure watchdog. These functions then replace the calls to SP805 driver in common BL1 setup code. All the ARM platforms implement these wrapper functions by either calling into SP805 driver or the SBSA watchdog driver. Change-Id: I1a9a11b124cf3fac2a84f22ca40acd440a441257 Signed-off-by: Aditya Angadi <aditya.angadi@arm.com>
Diffstat (limited to 'include/plat')
-rw-r--r--include/plat/arm/common/plat_arm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/plat/arm/common/plat_arm.h b/include/plat/arm/common/plat_arm.h
index 527375f6..97e67225 100644
--- a/include/plat/arm/common/plat_arm.h
+++ b/include/plat/arm/common/plat_arm.h
@@ -295,4 +295,8 @@ extern plat_psci_ops_t plat_arm_psci_pm_ops;
extern const mmap_region_t plat_arm_mmap[];
extern const unsigned int arm_pm_idle_states[];
+/* secure watchdog */
+void plat_arm_secure_wdt_start(void);
+void plat_arm_secure_wdt_stop(void);
+
#endif /* PLAT_ARM_H */