1 /*
2  * Copyright (c) 2019, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <drivers/arm/sp805.h>
8 #include <plat/arm/common/plat_arm.h>
9 #include <plat/common/platform.h>
10 #include <platform_def.h>
11 
12 /*******************************************************************************
13  * Perform any BL1 specific platform actions.
14  ******************************************************************************/
bl1_early_platform_setup(void)15 void bl1_early_platform_setup(void)
16 {
17 	arm_bl1_early_platform_setup();
18 }
19 
plat_arm_secure_wdt_start(void)20 void plat_arm_secure_wdt_start(void)
21 {
22 	sp805_start(ARM_SP805_TWDG_BASE, ARM_TWDG_LOAD_VAL);
23 }
24 
plat_arm_secure_wdt_stop(void)25 void plat_arm_secure_wdt_stop(void)
26 {
27 	sp805_stop(ARM_SP805_TWDG_BASE);
28 }
29 
bl1_platform_setup(void)30 void bl1_platform_setup(void)
31 {
32 	arm_bl1_platform_setup();
33 }
34