xref: /rk3399_ARM-atf/plat/arm/board/n1sdp/n1sdp_plat.c (revision fd7b287cbe9147ca9e07dd9f30c49c58bbdd92a8)
1 /*
2  * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <platform_def.h>
8 
9 #include <common/bl_common.h>
10 #include <common/debug.h>
11 #include <plat/arm/common/plat_arm.h>
12 #include <plat/common/platform.h>
13 #include <drivers/arm/sbsa.h>
14 
15 /*
16  * Table of regions to map using the MMU.
17  * Replace or extend the below regions as required
18  */
19 
20 const mmap_region_t plat_arm_mmap[] = {
21 	ARM_MAP_SHARED_RAM,
22 	N1SDP_MAP_DEVICE,
23 	{0}
24 };
25 
26 void plat_arm_secure_wdt_start(void)
27 {
28 	sbsa_wdog_start(SBSA_SECURE_WDOG_BASE, SBSA_SECURE_WDOG_TIMEOUT);
29 }
30 
31 void plat_arm_secure_wdt_stop(void)
32 {
33 	sbsa_wdog_stop(SBSA_SECURE_WDOG_BASE);
34 }
35