OpenBoardPkg.fdf.inc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. ## @file
  2. # FDF include file that defines the main macros and sets the dependent PCDs.
  3. #
  4. # Copyright (C) 2014, Red Hat, Inc.
  5. # Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
  6. #
  7. # SPDX-License-Identifier: BSD-2-Clause-Patent
  8. #
  9. ##
  10. #
  11. # Default flash size is 2MB.
  12. #
  13. # Defining FD_SIZE_2MB on the build command line can override this.
  14. #
  15. DEFINE BLOCK_SIZE = 0x1000
  16. DEFINE VARS_SIZE = 0x3e000
  17. DEFINE VARS_BLOCKS = 0x3e
  18. DEFINE FW_BASE_ADDRESS = 0xFFE00000
  19. DEFINE FW_SIZE = 0x00200000
  20. DEFINE FW_BLOCKS = 0x200
  21. DEFINE CODE_BASE_ADDRESS = 0xFFE80000
  22. DEFINE CODE_SIZE = 0x00180000
  23. DEFINE CODE_BLOCKS = 0x180
  24. DEFINE FVMAIN_SIZE = 0x0016C000
  25. DEFINE SECFV_OFFSET = 0x001EC000
  26. DEFINE SECFV_SIZE = 0x14000
  27. SET gBoardModuleTokenSpaceGuid.PcdSimicsFdBaseAddress = $(FW_BASE_ADDRESS)
  28. SET gBoardModuleTokenSpaceGuid.PcdSimicsFirmwareFdSize = $(FW_SIZE)
  29. SET gBoardModuleTokenSpaceGuid.PcdSimicsFirmwareBlockSize = $(BLOCK_SIZE)
  30. SET gBoardModuleTokenSpaceGuid.PcdSimicsFlashNvStorageVariableBase = $(FW_BASE_ADDRESS)
  31. SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize = 0xE000
  32. SET gBoardModuleTokenSpaceGuid.PcdSimicsFlashNvStorageEventLogBase = gBoardModuleTokenSpaceGuid.PcdSimicsFlashNvStorageVariableBase + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
  33. SET gBoardModuleTokenSpaceGuid.PcdSimicsFlashNvStorageEventLogSize = $(BLOCK_SIZE)
  34. SET gBoardModuleTokenSpaceGuid.PcdSimicsFlashNvStorageFtwWorkingBase = gBoardModuleTokenSpaceGuid.PcdSimicsFlashNvStorageEventLogBase + gBoardModuleTokenSpaceGuid.PcdSimicsFlashNvStorageEventLogSize
  35. SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize = $(BLOCK_SIZE)
  36. SET gBoardModuleTokenSpaceGuid.PcdSimicsFlashNvStorageFtwSpareBase = gBoardModuleTokenSpaceGuid.PcdSimicsFlashNvStorageFtwWorkingBase + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
  37. SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize = 0x10000
  38. SET gEfiPchTokenSpaceGuid.PcdFlashAreaBaseAddress = 0xFFE00000
  39. SET gEfiPchTokenSpaceGuid.PcdFlashAreaSize = 0x00200000
  40. SET gMinPlatformPkgTokenSpaceGuid.PcdFlashAreaBaseAddress = gEfiPchTokenSpaceGuid.PcdFlashAreaBaseAddress
  41. SET gMinPlatformPkgTokenSpaceGuid.PcdFlashAreaSize = gEfiPchTokenSpaceGuid.PcdFlashAreaSize
  42. DEFINE MEMFD_BASE_ADDRESS = 0x800000