blob: dd7531d5189e4ad62e2ef7ad60a6eec00fb92d25 [file] [log] [blame]
Manish Pandey52990ae2018-11-28 11:20:37 +00001/*
Sandrine Bailleux7810eb32022-03-18 12:44:27 +01002 * Copyright (c) 2019-2022, 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
Sandrine Bailleux7810eb32022-03-18 12:44:27 +01009#include <corstone700_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,
Abdellatif El Khlifi95294c92020-07-06 16:15:23 +010021 ARM_MAP_NS_SHARED_RAM,
Manish Pandey52990ae2018-11-28 11:20:37 +000022 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 */
30void __init plat_arm_pwrc_setup(void)
31{
Khandelwal368564c2020-01-29 16:51:42 +000032 mhu_secure_init();
Manish Pandey52990ae2018-11-28 11:20:37 +000033}
34
35unsigned int plat_get_syscnt_freq2(void)
36{
Abdellatif El Khlifi95294c92020-07-06 16:15:23 +010037 /* Returning the Generic Timer Frequency */
38 return SYS_COUNTER_FREQ_IN_TICKS;
Manish Pandey52990ae2018-11-28 11:20:37 +000039}