HiKey960.fdf 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. #
  2. # Copyright (c) 2018, Linaro Limited. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-2-Clause-Patent
  5. #
  6. ################################################################################
  7. #
  8. # FD Section
  9. # The [FD] Section is made up of the definition statements and a
  10. # description of what goes into the Flash Device Image. Each FD section
  11. # defines one flash "device" image. A flash device image may be one of
  12. # the following: Removable media bootable image (like a boot floppy
  13. # image,) an Option ROM image (that would be "flashed" into an add-in
  14. # card,) a System "Flash" image (that would be burned into a system's
  15. # flash) or an Update ("Capsule") image that will be used to update and
  16. # existing system flash.
  17. #
  18. ################################################################################
  19. [FD.BL33_AP_UEFI]
  20. BaseAddress = 0x1AC98000|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware in NOR Flash.
  21. Size = 0x000F0000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device
  22. ErasePolarity = 1
  23. # This one is tricky, it must be: BlockSize * NumBlocks = Size
  24. BlockSize = 0x00001000
  25. NumBlocks = 0xF0
  26. ################################################################################
  27. #
  28. # Following are lists of FD Region layout which correspond to the locations of different
  29. # images within the flash device.
  30. #
  31. # Regions must be defined in ascending order and may not overlap.
  32. #
  33. # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
  34. # the pipe "|" character, followed by the size of the region, also in hex with the leading
  35. # "0x" characters. Like:
  36. # Offset|Size
  37. # PcdOffsetCName|PcdSizeCName
  38. # RegionType <FV, DATA, or FILE>
  39. #
  40. ################################################################################
  41. 0x00000000|0x000F0000
  42. gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
  43. FV = FVMAIN_COMPACT
  44. ################################################################################
  45. #
  46. # FV Section
  47. #
  48. # [FV] section is used to define what components or modules are placed within a flash
  49. # device file. This section also defines order the components and modules are positioned
  50. # within the image. The [FV] section consists of define statements, set statements and
  51. # module statements.
  52. #
  53. ################################################################################
  54. [FV.FvMain]
  55. BlockSize = 0x40
  56. NumBlocks = 0 # This FV gets compressed so make it just big enough
  57. FvAlignment = 8 # FV alignment and FV attributes setting.
  58. ERASE_POLARITY = 1
  59. MEMORY_MAPPED = TRUE
  60. STICKY_WRITE = TRUE
  61. LOCK_CAP = TRUE
  62. LOCK_STATUS = TRUE
  63. WRITE_DISABLED_CAP = TRUE
  64. WRITE_ENABLED_CAP = TRUE
  65. WRITE_STATUS = TRUE
  66. WRITE_LOCK_CAP = TRUE
  67. WRITE_LOCK_STATUS = TRUE
  68. READ_DISABLED_CAP = TRUE
  69. READ_ENABLED_CAP = TRUE
  70. READ_STATUS = TRUE
  71. READ_LOCK_CAP = TRUE
  72. READ_LOCK_STATUS = TRUE
  73. APRIORI DXE {
  74. INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
  75. }
  76. INF MdeModulePkg/Core/Dxe/DxeMain.inf
  77. #
  78. # PI DXE Drivers producing Architectural Protocols (EFI Services)
  79. #
  80. INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  81. INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  82. INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  83. INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  84. INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
  85. INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  86. INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
  87. INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
  88. #
  89. # Multiple Console IO support
  90. #
  91. INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  92. INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  93. INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  94. INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  95. INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf
  96. INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  97. INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
  98. #
  99. # GPIO
  100. #
  101. INF Platform/Hisilicon/HiKey960/HiKey960GpioDxe/HiKey960GpioDxe.inf
  102. INF ArmPlatformPkg/Drivers/PL061GpioDxe/PL061GpioDxe.inf
  103. #
  104. # Virtual Keyboard
  105. #
  106. INF EmbeddedPkg/Drivers/VirtualKeyboardDxe/VirtualKeyboardDxe.inf
  107. INF Platform/Hisilicon/HiKey960/HiKey960Dxe/HiKey960Dxe.inf
  108. #
  109. # USB Host Support
  110. #
  111. INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  112. #
  113. # USB Mass Storage Support
  114. #
  115. INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  116. #
  117. # USB Peripheral Support
  118. #
  119. INF EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf
  120. #
  121. # Fastboot
  122. #
  123. INF EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf
  124. #
  125. # UEFI Network Stack
  126. #
  127. !include NetworkPkg/Network.fdf.inc
  128. #
  129. # FAT filesystem + GPT/MBR partitioning
  130. #
  131. INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  132. INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  133. INF FatPkg/EnhancedFatDxe/Fat.inf
  134. INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  135. INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
  136. INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  137. #
  138. # UEFI applications
  139. #
  140. INF ShellPkg/Application/Shell/Shell.inf
  141. !ifdef $(INCLUDE_TFTP_COMMAND)
  142. INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
  143. !endif #$(INCLUDE_TFTP_COMMAND)
  144. #
  145. # Bds
  146. #
  147. INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
  148. INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  149. INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  150. INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  151. INF MdeModulePkg/Application/UiApp/UiApp.inf
  152. [FV.FVMAIN_COMPACT]
  153. FvAlignment = 8
  154. ERASE_POLARITY = 1
  155. MEMORY_MAPPED = TRUE
  156. STICKY_WRITE = TRUE
  157. LOCK_CAP = TRUE
  158. LOCK_STATUS = TRUE
  159. WRITE_DISABLED_CAP = TRUE
  160. WRITE_ENABLED_CAP = TRUE
  161. WRITE_STATUS = TRUE
  162. WRITE_LOCK_CAP = TRUE
  163. WRITE_LOCK_STATUS = TRUE
  164. READ_DISABLED_CAP = TRUE
  165. READ_ENABLED_CAP = TRUE
  166. READ_STATUS = TRUE
  167. READ_LOCK_CAP = TRUE
  168. READ_LOCK_STATUS = TRUE
  169. INF ArmPlatformPkg/PrePi/PeiUniCore.inf
  170. FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
  171. SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
  172. SECTION FV_IMAGE = FVMAIN
  173. }
  174. }
  175. !include Silicon/Hisilicon/Hisilicon.fdf.inc