config.mk 809 B

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # SPDX-License-Identifier: BSD-2-Clause
  3. #
  4. # Copyright (C) 2019 FORTH-ICS/CARV
  5. # Panagiotis Peristerakis <perister@ics.forth.gr>
  6. #
  7. #for more infos, check out /platform/template/config.mk
  8. PLATFORM_RISCV_XLEN = 64
  9. # Blobs to build
  10. FW_TEXT_START=0x80000000
  11. FW_JUMP=n
  12. ifeq ($(PLATFORM_RISCV_XLEN), 32)
  13. # This needs to be 4MB aligned for 32-bit support
  14. FW_JUMP_ADDR=0x80400000
  15. else
  16. # This needs to be 2MB aligned for 64-bit support
  17. FW_JUMP_ADDR=0x80200000
  18. endif
  19. FW_JUMP_FDT_ADDR=0x82200000
  20. # Firmware with payload configuration.
  21. FW_PAYLOAD=y
  22. ifeq ($(PLATFORM_RISCV_XLEN), 32)
  23. # This needs to be 4MB aligned for 32-bit support
  24. FW_PAYLOAD_OFFSET=0x400000
  25. else
  26. # This needs to be 2MB aligned for 64-bit support
  27. FW_PAYLOAD_OFFSET=0x200000
  28. endif
  29. FW_PAYLOAD_FDT_ADDR=0x82200000
  30. FW_PAYLOAD_ALIGN=0x1000