Manish Pandey | 52990ae | 2018-11-28 11:20:37 +0000 | [diff] [blame] | 1 | /* |
Khandelwal | 368564c | 2020-01-29 16:51:42 +0000 | [diff] [blame] | 2 | * Copyright (c) 2019-2020, 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 | |
| 9 | #include <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, |
| 21 | ARM_MAP_NS_DRAM1, |
| 22 | CORSTONE700_MAP_DEVICE, |
| 23 | {0} |
| 24 | }; |
| 25 | |
| 26 | /* Corstone700 only has one always-on power domain and there |
| 27 | * is no power control present |
| 28 | */ |
| 29 | void __init plat_arm_pwrc_setup(void) |
| 30 | { |
Khandelwal | 368564c | 2020-01-29 16:51:42 +0000 | [diff] [blame] | 31 | mhu_secure_init(); |
Manish Pandey | 52990ae | 2018-11-28 11:20:37 +0000 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | unsigned int plat_get_syscnt_freq2(void) |
| 35 | { |
| 36 | return CORSTONE700_TIMER_BASE_FREQUENCY; |
| 37 | } |