n1sdp_plat.c 767 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

15
16
#include "n1sdp_def.h"

Deepak Pandey's avatar
Deepak Pandey committed
17
18
19
20
21
22
23
24
/*
 * 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,
25
26
27
	N1SDP_MAP_NS_SRAM,
	ARM_MAP_DRAM1,
	ARM_MAP_DRAM2,
Deepak Pandey's avatar
Deepak Pandey committed
28
29
30
	{0}
};

31
32
33
34
35
36
37
38
39
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);
}