• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2018-2019, 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 #include "n1sdp_def.h"
16 
17 /*
18  * Table of regions to map using the MMU.
19  * Replace or extend the below regions as required
20  */
21 
22 const mmap_region_t plat_arm_mmap[] = {
23 	ARM_MAP_SHARED_RAM,
24 	N1SDP_MAP_DEVICE,
25 	N1SDP_MAP_NS_SRAM,
26 	ARM_MAP_DRAM1,
27 	ARM_MAP_DRAM2,
28 	N1SDP_MAP_REMOTE_DEVICE,
29 	N1SDP_MAP_REMOTE_DRAM1,
30 	N1SDP_MAP_REMOTE_DRAM2,
31 	{0}
32 };
33 
plat_arm_secure_wdt_start(void)34 void plat_arm_secure_wdt_start(void)
35 {
36 	sbsa_wdog_start(SBSA_SECURE_WDOG_BASE, SBSA_SECURE_WDOG_TIMEOUT);
37 }
38 
plat_arm_secure_wdt_stop(void)39 void plat_arm_secure_wdt_stop(void)
40 {
41 	sbsa_wdog_stop(SBSA_SECURE_WDOG_BASE);
42 }
43