blob: a32ca7251a2f7ca4be07f84ec585b0456a1c4181 [file] [log] [blame]
Deepak Pandey9cbacf62018-08-08 10:32:51 +05301/*
2 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3 *
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,
Deepak Pandey9cbacf62018-08-08 10:32:51 +053028 {0}
29};
30
Aditya Angadi20b48412019-04-16 11:29:14 +053031void plat_arm_secure_wdt_start(void)
32{
33 sbsa_wdog_start(SBSA_SECURE_WDOG_BASE, SBSA_SECURE_WDOG_TIMEOUT);
34}
35
36void plat_arm_secure_wdt_stop(void)
37{
38 sbsa_wdog_stop(SBSA_SECURE_WDOG_BASE);
39}