socfpga_plat_def.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (c) 2019-2022, ARM Limited and Contributors. All rights reserved.
  3. * Copyright (c) 2019-2022, Intel Corporation. All rights reserved.
  4. *
  5. * SPDX-License-Identifier: BSD-3-Clause
  6. */
  7. #ifndef PLAT_SOCFPGA_DEF_H
  8. #define PLAT_SOCFPGA_DEF_H
  9. #include <platform_def.h>
  10. /* Platform Setting */
  11. #define PLATFORM_MODEL PLAT_SOCFPGA_AGILEX
  12. #define BOOT_SOURCE BOOT_SOURCE_SDMMC
  13. /* FPGA config helpers */
  14. #define INTEL_SIP_SMC_FPGA_CONFIG_ADDR 0x400000
  15. #define INTEL_SIP_SMC_FPGA_CONFIG_SIZE 0x2000000
  16. /* Register Mapping */
  17. #define SOCFPGA_CCU_NOC_REG_BASE 0xf7000000
  18. #define SOCFPGA_F2SDRAMMGR_REG_BASE U(0xf8024000)
  19. #define SOCFPGA_MMC_REG_BASE 0xff808000
  20. #define SOCFPGA_RSTMGR_REG_BASE 0xffd11000
  21. #define SOCFPGA_SYSMGR_REG_BASE 0xffd12000
  22. #define SOCFPGA_L4_PER_SCR_REG_BASE 0xffd21000
  23. #define SOCFPGA_L4_SYS_SCR_REG_BASE 0xffd21100
  24. #define SOCFPGA_SOC2FPGA_SCR_REG_BASE 0xffd21200
  25. #define SOCFPGA_LWSOC2FPGA_SCR_REG_BASE 0xffd21300
  26. /* Platform specific system counter */
  27. #define PLAT_SYS_COUNTER_FREQ_IN_MHZ get_cpu_clk()
  28. uint32_t get_cpu_clk(void);
  29. #endif /* PLAT_SOCFPGA_DEF_H */