plat/arm: introduce wrapper functions to setup secure watchdog
authorAditya Angadi <[email protected]>
Tue, 16 Apr 2019 05:59:14 +0000 (11:29 +0530)
committerAditya Angadi <[email protected]>
Wed, 17 Apr 2019 13:12:48 +0000 (18:42 +0530)
commitb0c97dafe00f5da71361b53fcbf5e4c12b174ec2
treee5e86cf30f76b15dd2af1efbaee5525dcc4b3e4e
parentf79abf5e98005aa12d8d0f145810e5b46e2d808b
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 <[email protected]>
16 files changed:
include/plat/arm/common/plat_arm.h
plat/arm/board/fvp/fvp_bl1_setup.c
plat/arm/board/fvp/platform.mk
plat/arm/board/fvp_ve/fvp_ve_bl1_setup.c
plat/arm/board/juno/juno_bl1_setup.c
plat/arm/board/juno/platform.mk
plat/arm/board/n1sdp/include/platform_def.h
plat/arm/board/n1sdp/n1sdp_plat.c
plat/arm/board/n1sdp/platform.mk
plat/arm/common/arm_bl1_setup.c
plat/arm/common/arm_common.mk
plat/arm/css/sgi/include/sgi_base_platform_def.h
plat/arm/css/sgi/sgi-common.mk
plat/arm/css/sgi/sgi_plat.c
plat/arm/css/sgm/sgm-common.mk
plat/arm/css/sgm/sgm_bl1_setup.c