Deepak Pandey | 9cbacf6 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 7 | #include <platform_def.h> |
| 8 | |
| 9 | #include <common/bl_common.h> |
| 10 | #include <common/debug.h> |
Antonio Nino Diaz | bd7b740 | 2019-01-25 14:30:04 +0000 | [diff] [blame] | 11 | #include <plat/arm/common/plat_arm.h> |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 12 | #include <plat/common/platform.h> |
Aditya Angadi | 20b4841 | 2019-04-16 11:29:14 +0530 | [diff] [blame] | 13 | #include <drivers/arm/sbsa.h> |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 14 | |
Deepak Pandey | 9cbacf6 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 15 | /* |
| 16 | * Table of regions to map using the MMU. |
| 17 | * Replace or extend the below regions as required |
| 18 | */ |
| 19 | |
| 20 | const mmap_region_t plat_arm_mmap[] = { |
| 21 | ARM_MAP_SHARED_RAM, |
| 22 | N1SDP_MAP_DEVICE, |
Deepak Pandey | 9cbacf6 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 23 | {0} |
| 24 | }; |
| 25 | |
Aditya Angadi | 20b4841 | 2019-04-16 11:29:14 +0530 | [diff] [blame] | 26 | void plat_arm_secure_wdt_start(void) |
| 27 | { |
| 28 | sbsa_wdog_start(SBSA_SECURE_WDOG_BASE, SBSA_SECURE_WDOG_TIMEOUT); |
| 29 | } |
| 30 | |
| 31 | void plat_arm_secure_wdt_stop(void) |
| 32 | { |
| 33 | sbsa_wdog_stop(SBSA_SECURE_WDOG_BASE); |
| 34 | } |