blob: f36f9e2532139e187b546d799678c3efdf3dd62c [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
Deepak Pandey9cbacf62018-08-08 10:32:51 +053015/*
16 * Table of regions to map using the MMU.
17 * Replace or extend the below regions as required
18 */
19
20const mmap_region_t plat_arm_mmap[] = {
21 ARM_MAP_SHARED_RAM,
22 N1SDP_MAP_DEVICE,
Deepak Pandey9cbacf62018-08-08 10:32:51 +053023 {0}
24};
25
Aditya Angadi20b48412019-04-16 11:29:14 +053026void plat_arm_secure_wdt_start(void)
27{
28 sbsa_wdog_start(SBSA_SECURE_WDOG_BASE, SBSA_SECURE_WDOG_TIMEOUT);
29}
30
31void plat_arm_secure_wdt_stop(void)
32{
33 sbsa_wdog_stop(SBSA_SECURE_WDOG_BASE);
34}