Debian Codegraph @

plat/arm/board/automotive_rd/platform/rd1ae/rd1ae_plat.c

raw
1 /*
2 * Copyright (c) 2024, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7 #include <common/debug.h>
8 #include <drivers/arm/sbsa.h>
9 #include <lib/fconf/fconf.h>
10 #include <lib/fconf/fconf_dyn_cfg_getter.h>
11 #include <plat/arm/common/plat_arm.h>
12 #include <plat/common/platform.h>
13
14 const mmap_region_t plat_arm_mmap[] = {
15 ARM_MAP_SHARED_RAM,
16 RD1AE_MAP_DEVICE,
17 RD1AE_EXTERNAL_FLASH,
18 SOC_PLATFORM_PERIPH_MAP_DEVICE,
19 #if IMAGE_BL2
20 RD1AE_MAP_NS_DRAM1,
21 #endif
22 RD1AE_MAP_S_DRAM1,
23 {0}
24 };
25
26 void plat_arm_secure_wdt_start(void)
27 {
28 sbsa_wdog_start(SBSA_SECURE_WDOG_BASE, SBSA_SECURE_WDOG_TIMEOUT);
29 }
30
31 void plat_arm_secure_wdt_stop(void)
32 {
33 sbsa_wdog_stop(SBSA_SECURE_WDOG_BASE);
34 }
35
36 /*
37 * For rd1ae we should not do anything in these interface functions.
38 * They are used to override the weak functions in cci drivers
39 */
40 void plat_arm_interconnect_init(void)
41 {
42 }
43
44 void plat_arm_interconnect_enter_coherency(void)
45 {
46 }
47
48 void plat_arm_interconnect_exit_coherency(void)
49 {
50 }
51
52 /*
53 * TZC programming is currently not done.
54 */
55 void plat_arm_security_setup(void)
56 {
57 }