Manish Pandey | 52990ae | 2018-11-28 11:20:37 +0000 | [diff] [blame] | 1 | /* |
Sandrine Bailleux | 7810eb3 | 2022-03-18 12:44:27 +0100 | [diff] [blame] | 2 | * Copyright (c) 2019-2022, Arm Limited and Contributors. All rights reserved. |
Manish Pandey | 52990ae | 2018-11-28 11:20:37 +0000 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <common/bl_common.h> |
Khandelwal | 368564c | 2020-01-29 16:51:42 +0000 | [diff] [blame] | 8 | |
Sandrine Bailleux | 7810eb3 | 2022-03-18 12:44:27 +0100 | [diff] [blame] | 9 | #include <corstone700_mhu.h> |
Manish Pandey | 52990ae | 2018-11-28 11:20:37 +0000 | [diff] [blame] | 10 | #include <plat/arm/common/plat_arm.h> |
| 11 | #include <plat/common/platform.h> |
| 12 | #include <platform_def.h> |
| 13 | |
| 14 | /* |
| 15 | * Table of regions to map using the MMU. |
| 16 | * Replace or extend the below regions as required |
| 17 | */ |
| 18 | |
| 19 | const mmap_region_t plat_arm_mmap[] = { |
| 20 | ARM_MAP_SHARED_RAM, |
Abdellatif El Khlifi | 95294c9 | 2020-07-06 16:15:23 +0100 | [diff] [blame] | 21 | ARM_MAP_NS_SHARED_RAM, |
Manish Pandey | 52990ae | 2018-11-28 11:20:37 +0000 | [diff] [blame] | 22 | ARM_MAP_NS_DRAM1, |
| 23 | CORSTONE700_MAP_DEVICE, |
| 24 | {0} |
| 25 | }; |
| 26 | |
| 27 | /* Corstone700 only has one always-on power domain and there |
| 28 | * is no power control present |
| 29 | */ |
| 30 | void __init plat_arm_pwrc_setup(void) |
| 31 | { |
Khandelwal | 368564c | 2020-01-29 16:51:42 +0000 | [diff] [blame] | 32 | mhu_secure_init(); |
Manish Pandey | 52990ae | 2018-11-28 11:20:37 +0000 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | unsigned int plat_get_syscnt_freq2(void) |
| 36 | { |
Abdellatif El Khlifi | 95294c9 | 2020-07-06 16:15:23 +0100 | [diff] [blame] | 37 | /* Returning the Generic Timer Frequency */ |
| 38 | return SYS_COUNTER_FREQ_IN_TICKS; |
Manish Pandey | 52990ae | 2018-11-28 11:20:37 +0000 | [diff] [blame] | 39 | } |