platform.mk 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Copyright 2021 NXP
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. # board-specific build parameters
  7. BOOT_MODE ?= flexspi_nor
  8. BOARD ?= lx2160ardb
  9. POVDD_ENABLE := no
  10. NXP_COINED_BB := no
  11. # DDR Compilation Configs
  12. NUM_OF_DDRC := 2
  13. DDRC_NUM_DIMM := 2
  14. DDRC_NUM_CS := 4
  15. DDR_ECC_EN := yes
  16. #enable address decoding feature
  17. DDR_ADDR_DEC := yes
  18. APPLY_MAX_CDD := yes
  19. # DDR Errata
  20. ERRATA_DDR_A011396 := 1
  21. ERRATA_DDR_A050450 := 1
  22. # On-Board Flash Details
  23. FLASH_TYPE := MT35XU512A
  24. XSPI_FLASH_SZ := 0x10000000
  25. NXP_XSPI_NOR_UNIT_SIZE := 0x20000
  26. BL2_BIN_XSPI_NOR_END_ADDRESS := 0x100000
  27. # CONFIG_FSPI_ERASE_4K is required to erase 4K sector sizes. This
  28. # config is enabled for future use cases.
  29. FSPI_ERASE_4K := 0
  30. # Platform specific features.
  31. WARM_BOOT := no
  32. # Adding Platform files build files
  33. BL2_SOURCES += ${BOARD_PATH}/ddr_init.c\
  34. ${BOARD_PATH}/platform.c
  35. SUPPORTED_BOOT_MODE := flexspi_nor \
  36. sd \
  37. emmc
  38. # Adding platform board build info
  39. include plat/nxp/common/plat_make_helper/plat_common_def.mk
  40. # Adding SoC build info
  41. include plat/nxp/soc-lx2160a/soc.mk