blob: 951a562f2b1268de63b639d83bbb250aa36645ce [file] [log] [blame]
Deepak Pandey9cbacf62018-08-08 10:32:51 +05301/*
Manish Pandeyb68e2862019-09-11 17:07:40 +01002 * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
Deepak Pandey9cbacf62018-08-08 10:32:51 +05303 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00007#include <platform_def.h>
8
9#include <common/bl_common.h>
10#include <common/debug.h>
Antonio Nino Diazbd7b7402019-01-25 14:30:04 +000011#include <plat/arm/common/plat_arm.h>
Antonio Nino Diaze0f90632018-12-14 00:18:21 +000012#include <plat/common/platform.h>
Aditya Angadi20b48412019-04-16 11:29:14 +053013#include <drivers/arm/sbsa.h>
Antonio Nino Diaze0f90632018-12-14 00:18:21 +000014
Manoj Kumar69bebd82019-06-21 17:07:13 +010015#include "n1sdp_def.h"
16
Deepak Pandey9cbacf62018-08-08 10:32:51 +053017/*
18 * Table of regions to map using the MMU.
19 * Replace or extend the below regions as required
20 */
21
22const mmap_region_t plat_arm_mmap[] = {
23 ARM_MAP_SHARED_RAM,
24 N1SDP_MAP_DEVICE,
Manoj Kumar69bebd82019-06-21 17:07:13 +010025 N1SDP_MAP_NS_SRAM,
26 ARM_MAP_DRAM1,
27 ARM_MAP_DRAM2,
Manish Pandeyb68e2862019-09-11 17:07:40 +010028 N1SDP_MAP_REMOTE_DEVICE,
29 N1SDP_MAP_REMOTE_DRAM1,
30 N1SDP_MAP_REMOTE_DRAM2,
Deepak Pandey9cbacf62018-08-08 10:32:51 +053031 {0}
32};
33
Aditya Angadi20b48412019-04-16 11:29:14 +053034void plat_arm_secure_wdt_start(void)
35{
36 sbsa_wdog_start(SBSA_SECURE_WDOG_BASE, SBSA_SECURE_WDOG_TIMEOUT);
37}
38
39void plat_arm_secure_wdt_stop(void)
40{
41 sbsa_wdog_stop(SBSA_SECURE_WDOG_BASE);
42}