blob: e2ade70983556c501f1bcb9329dd7ec1ace454dc [file] [log] [blame]
Manish Pandey52990ae2018-11-28 11:20:37 +00001/*
Khandelwal368564c2020-01-29 16:51:42 +00002 * Copyright (c) 2019-2020, Arm Limited and Contributors. All rights reserved.
Manish Pandey52990ae2018-11-28 11:20:37 +00003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <common/bl_common.h>
Khandelwal368564c2020-01-29 16:51:42 +00008
9#include <mhu.h>
Manish Pandey52990ae2018-11-28 11:20:37 +000010#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
19const 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 */
29void __init plat_arm_pwrc_setup(void)
30{
Khandelwal368564c2020-01-29 16:51:42 +000031 mhu_secure_init();
Manish Pandey52990ae2018-11-28 11:20:37 +000032}
33
34unsigned int plat_get_syscnt_freq2(void)
35{
36 return CORSTONE700_TIMER_BASE_FREQUENCY;
37}