blob: 4d7198cbe9a611a816a9b7bd64f1f8e22576ba32 [file] [log] [blame]
Hadi Asyrafi9f5dfc92019-10-23 16:26:53 +08001/*
Sieu Mun Tanga544da12022-02-28 15:24:59 +08002 * Copyright (c) 2019-2022, ARM Limited and Contributors. All rights reserved.
3 * Copyright (c) 2019-2022, Intel Corporation. All rights reserved.
Hadi Asyrafi9f5dfc92019-10-23 16:26:53 +08004 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8#ifndef PLAT_SOCFPGA_DEF_H
9#define PLAT_SOCFPGA_DEF_H
10
11#include <platform_def.h>
12
13/* Platform Setting */
14#define PLATFORM_MODEL PLAT_SOCFPGA_AGILEX
Hadi Asyrafi786db4d2019-12-30 16:00:30 +080015#define BOOT_SOURCE BOOT_SOURCE_SDMMC
Hadi Asyrafi9f5dfc92019-10-23 16:26:53 +080016
Sieu Mun Tanga544da12022-02-28 15:24:59 +080017/* FPGA config helpers */
18#define INTEL_SIP_SMC_FPGA_CONFIG_ADDR 0x400000
19#define INTEL_SIP_SMC_FPGA_CONFIG_SIZE 0x2000000
20
Hadi Asyrafi9f5dfc92019-10-23 16:26:53 +080021/* Register Mapping */
Abdul Halim, Muhammad Hadi Asyrafi616b5e72020-08-05 22:12:23 +080022#define SOCFPGA_CCU_NOC_REG_BASE 0xf7000000
Sieu Mun Tang82cf5df2022-05-05 17:07:21 +080023#define SOCFPGA_F2SDRAMMGR_REG_BASE U(0xf8024000)
Abdul Halim, Muhammad Hadi Asyrafi616b5e72020-08-05 22:12:23 +080024
Hadi Asyrafi9f5dfc92019-10-23 16:26:53 +080025#define SOCFPGA_MMC_REG_BASE 0xff808000
Hadi Asyrafi8ebd2372019-12-23 17:58:04 +080026
Hadi Asyrafi67cb0ea2019-12-23 13:25:33 +080027#define SOCFPGA_RSTMGR_REG_BASE 0xffd11000
Hadi Asyrafi8ebd2372019-12-23 17:58:04 +080028#define SOCFPGA_SYSMGR_REG_BASE 0xffd12000
29
30#define SOCFPGA_L4_PER_SCR_REG_BASE 0xffd21000
31#define SOCFPGA_L4_SYS_SCR_REG_BASE 0xffd21100
32#define SOCFPGA_SOC2FPGA_SCR_REG_BASE 0xffd21200
33#define SOCFPGA_LWSOC2FPGA_SCR_REG_BASE 0xffd21300
Hadi Asyrafi9f5dfc92019-10-23 16:26:53 +080034
BenjaminLimJLa4a43272022-04-06 10:19:16 +080035/* Platform specific system counter */
36#define PLAT_SYS_COUNTER_FREQ_IN_MHZ get_cpu_clk()
Hadi Asyrafi9f5dfc92019-10-23 16:26:53 +080037
BenjaminLimJLa4a43272022-04-06 10:19:16 +080038#endif /* PLAT_SOCFPGA_DEF_H */