Deepak Pandey | 9cbacf6 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 1 | /* |
Manish Pandey | b68e286 | 2019-09-11 17:07:40 +0100 | [diff] [blame] | 2 | * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. |
Deepak Pandey | 9cbacf6 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 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 | |
Manoj Kumar | 69bebd8 | 2019-06-21 17:07:13 +0100 | [diff] [blame] | 15 | #include "n1sdp_def.h" |
| 16 | |
Deepak Pandey | 9cbacf6 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 17 | /* |
| 18 | * Table of regions to map using the MMU. |
| 19 | * Replace or extend the below regions as required |
| 20 | */ |
| 21 | |
| 22 | const mmap_region_t plat_arm_mmap[] = { |
| 23 | ARM_MAP_SHARED_RAM, |
| 24 | N1SDP_MAP_DEVICE, |
Manoj Kumar | 69bebd8 | 2019-06-21 17:07:13 +0100 | [diff] [blame] | 25 | N1SDP_MAP_NS_SRAM, |
| 26 | ARM_MAP_DRAM1, |
| 27 | ARM_MAP_DRAM2, |
Manish Pandey | b68e286 | 2019-09-11 17:07:40 +0100 | [diff] [blame] | 28 | N1SDP_MAP_REMOTE_DEVICE, |
| 29 | N1SDP_MAP_REMOTE_DRAM1, |
| 30 | N1SDP_MAP_REMOTE_DRAM2, |
Deepak Pandey | 9cbacf6 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 31 | {0} |
| 32 | }; |
| 33 | |
Aditya Angadi | 20b4841 | 2019-04-16 11:29:14 +0530 | [diff] [blame] | 34 | void plat_arm_secure_wdt_start(void) |
| 35 | { |
| 36 | sbsa_wdog_start(SBSA_SECURE_WDOG_BASE, SBSA_SECURE_WDOG_TIMEOUT); |
| 37 | } |
| 38 | |
| 39 | void plat_arm_secure_wdt_stop(void) |
| 40 | { |
| 41 | sbsa_wdog_stop(SBSA_SECURE_WDOG_BASE); |
| 42 | } |