nv_storage.mk 910 B

1234567891011121314151617181920212223242526272829
  1. #
  2. # Copyright 2020 NXP
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. # NXP Non-Volatile data flag storage used and then cleared by SW on boot-up
  7. $(eval $(call add_define,NXP_NV_SW_MAINT_LAST_EXEC_DATA))
  8. ifeq ($(NXP_COINED_BB),yes)
  9. $(eval $(call add_define,NXP_COINED_BB))
  10. # BL2 : To read the reset cause from LP SECMON GPR register
  11. # BL31: To write the reset cause to LP SECMON GPR register
  12. $(eval $(call SET_NXP_MAKE_FLAG,SNVS_NEEDED,BL_COMM))
  13. # BL2: DDR training data is stored on Flexspi NOR.
  14. ifneq (${BOOT_MODE},flexspi_nor)
  15. $(eval $(call SET_NXP_MAKE_FLAG,XSPI_NEEDED,BL2))
  16. endif
  17. else
  18. $(eval $(call add_define_val,DEFAULT_NV_STORAGE_BASE_ADDR,'${BL2_BIN_XSPI_NOR_END_ADDRESS} - 2 * ${NXP_XSPI_NOR_UNIT_SIZE}'))
  19. $(eval $(call SET_NXP_MAKE_FLAG,XSPI_NEEDED,BL_COMM))
  20. endif
  21. NV_STORAGE_INCLUDES += -I${PLAT_COMMON_PATH}/nv_storage
  22. NV_STORAGE_SOURCES += ${PLAT_COMMON_PATH}/nv_storage/plat_nv_storage.c