HiKey.fdf 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. #
  2. # Copyright (c) 2014-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 = 0x35000000|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/HiKey/HiKeyGpioDxe/HiKeyGpioDxe.inf
  102. INF ArmPlatformPkg/Drivers/PL061GpioDxe/PL061GpioDxe.inf
  103. #
  104. # Virtual Keyboard
  105. #
  106. INF EmbeddedPkg/Drivers/VirtualKeyboardDxe/VirtualKeyboardDxe.inf
  107. INF Platform/Hisilicon/HiKey/HiKeyDxe/HiKeyDxe.inf
  108. #
  109. # Multimedia Card Interface
  110. #
  111. INF EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
  112. INF Silicon/Synopsys/DesignWare/Drivers/DwEmmcDxe/DwEmmcDxe.inf
  113. #
  114. # USB Host Support
  115. #
  116. INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  117. #
  118. # USB Mass Storage Support
  119. #
  120. INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  121. #
  122. # USB Peripheral Support
  123. #
  124. INF EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf
  125. #
  126. # Fastboot
  127. #
  128. INF EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf
  129. #
  130. # UEFI Network Stack
  131. #
  132. !include NetworkPkg/Network.fdf.inc
  133. #
  134. # AX88772 Ethernet Driver for Apple Ethernet Adapter
  135. #
  136. INF Drivers/ASIX/Bus/Usb/UsbNetworking/Ax88772c/Ax88772c.inf
  137. #
  138. # FAT filesystem + GPT/MBR partitioning
  139. #
  140. INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  141. INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  142. INF FatPkg/EnhancedFatDxe/Fat.inf
  143. INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  144. INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
  145. INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  146. #
  147. # UEFI applications
  148. #
  149. INF ShellPkg/Application/Shell/Shell.inf
  150. !ifdef $(INCLUDE_TFTP_COMMAND)
  151. INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
  152. !endif #$(INCLUDE_TFTP_COMMAND)
  153. #
  154. # Bds
  155. #
  156. INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
  157. INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  158. INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  159. INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  160. INF MdeModulePkg/Application/UiApp/UiApp.inf
  161. [FV.FVMAIN_COMPACT]
  162. FvAlignment = 8
  163. ERASE_POLARITY = 1
  164. MEMORY_MAPPED = TRUE
  165. STICKY_WRITE = TRUE
  166. LOCK_CAP = TRUE
  167. LOCK_STATUS = TRUE
  168. WRITE_DISABLED_CAP = TRUE
  169. WRITE_ENABLED_CAP = TRUE
  170. WRITE_STATUS = TRUE
  171. WRITE_LOCK_CAP = TRUE
  172. WRITE_LOCK_STATUS = TRUE
  173. READ_DISABLED_CAP = TRUE
  174. READ_ENABLED_CAP = TRUE
  175. READ_STATUS = TRUE
  176. READ_LOCK_CAP = TRUE
  177. READ_LOCK_STATUS = TRUE
  178. INF ArmPlatformPkg/PrePi/PeiUniCore.inf
  179. FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
  180. SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
  181. SECTION FV_IMAGE = FVMAIN
  182. }
  183. }
  184. !include Silicon/Hisilicon/Hisilicon.fdf.inc