n1sdp_plat.c 691 Bytes
Newer Older
Deepak Pandey's avatar
Deepak Pandey committed
1
2
3
4
5
6
/*
 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

7
8
9
10
#include <platform_def.h>

#include <common/bl_common.h>
#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

Deepak Pandey's avatar
Deepak Pandey committed
15
16
17
18
19
20
21
22
23
24
25
/*
 * Table of regions to map using the MMU.
 * Replace or extend the below regions as required
 */

const mmap_region_t plat_arm_mmap[] = {
	ARM_MAP_SHARED_RAM,
	N1SDP_MAP_DEVICE,
	{0}
};

26
27
28
29
30
31
32
33
34
void plat_arm_secure_wdt_start(void)
{
	sbsa_wdog_start(SBSA_SECURE_WDOG_BASE, SBSA_SECURE_WDOG_TIMEOUT);
}

void plat_arm_secure_wdt_stop(void)
{
	sbsa_wdog_stop(SBSA_SECURE_WDOG_BASE);
}