config.mk 790 B

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # SPDX-License-Identifier: BSD-2-Clause
  3. #
  4. # Copyright (c) 2020 Western Digital Corporation or its affiliates.
  5. #
  6. #for more infos, check out /platform/template/config.mk
  7. PLATFORM_RISCV_XLEN = 64
  8. # Blobs to build
  9. FW_TEXT_START=0x80000000
  10. FW_JUMP=n
  11. ifeq ($(PLATFORM_RISCV_XLEN), 32)
  12. # This needs to be 4MB aligned for 32-bit support
  13. FW_JUMP_ADDR=0x80400000
  14. else
  15. # This needs to be 2MB aligned for 64-bit support
  16. FW_JUMP_ADDR=0x80200000
  17. endif
  18. FW_JUMP_FDT_ADDR=0x82200000
  19. # Firmware with payload configuration.
  20. FW_PAYLOAD=y
  21. ifeq ($(PLATFORM_RISCV_XLEN), 32)
  22. # This needs to be 4MB aligned for 32-bit support
  23. FW_PAYLOAD_OFFSET=0x400000
  24. else
  25. # This needs to be 2MB aligned for 64-bit support
  26. FW_PAYLOAD_OFFSET=0x200000
  27. endif
  28. FW_PAYLOAD_FDT_ADDR=0x82200000
  29. FW_PAYLOAD_ALIGN=0x1000