arm_fconf_io.c 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. /*
  2. * Copyright (c) 2019-2023, ARM Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <assert.h>
  7. #include <common/debug.h>
  8. #include <common/fdt_wrappers.h>
  9. #include <drivers/io/io_storage.h>
  10. #include <drivers/partition/partition.h>
  11. #include <lib/object_pool.h>
  12. #include <libfdt.h>
  13. #include <tools_share/firmware_image_package.h>
  14. #include <plat/arm/common/arm_fconf_getter.h>
  15. #include <plat/arm/common/arm_fconf_io_storage.h>
  16. #include <platform_def.h>
  17. #if PSA_FWU_SUPPORT
  18. /* metadata entry details */
  19. static io_block_spec_t fwu_metadata_spec;
  20. #endif /* PSA_FWU_SUPPORT */
  21. io_block_spec_t fip_block_spec = {
  22. /*
  23. * This is fixed FIP address used by BL1, BL2 loads partition table
  24. * to get FIP address.
  25. */
  26. #if ARM_GPT_SUPPORT
  27. .offset = PLAT_ARM_FLASH_IMAGE_BASE + PLAT_ARM_FIP_OFFSET_IN_GPT,
  28. #else
  29. .offset = PLAT_ARM_FLASH_IMAGE_BASE,
  30. #endif /* ARM_GPT_SUPPORT */
  31. .length = PLAT_ARM_FLASH_IMAGE_MAX_SIZE
  32. };
  33. #if ARM_GPT_SUPPORT
  34. static const io_block_spec_t gpt_spec = {
  35. .offset = PLAT_ARM_FLASH_IMAGE_BASE,
  36. /*
  37. * PLAT_PARTITION_BLOCK_SIZE = 512
  38. * PLAT_PARTITION_MAX_ENTRIES = 128
  39. * each sector has 4 partition entries, and there are
  40. * 2 reserved sectors i.e. protective MBR and primary
  41. * GPT header hence length gets calculated as,
  42. * length = PLAT_PARTITION_BLOCK_SIZE * (128/4 + 2)
  43. */
  44. .length = LBA(PLAT_PARTITION_MAX_ENTRIES / 4 + 2),
  45. };
  46. /*
  47. * length will be assigned at runtime based on MBR header data.
  48. * Backup GPT Header is present in Last LBA-1 and its entries
  49. * are last 32 blocks starts at LBA-33, On runtime update these
  50. * before device usage. Update offset to beginning LBA-33 and
  51. * length to LBA-33.
  52. */
  53. static io_block_spec_t bkup_gpt_spec = {
  54. .offset = PLAT_ARM_FLASH_IMAGE_BASE,
  55. .length = 0,
  56. };
  57. #endif /* ARM_GPT_SUPPORT */
  58. const io_uuid_spec_t arm_uuid_spec[MAX_NUMBER_IDS] = {
  59. [BL2_IMAGE_ID] = {UUID_TRUSTED_BOOT_FIRMWARE_BL2},
  60. [TB_FW_CONFIG_ID] = {UUID_TB_FW_CONFIG},
  61. [FW_CONFIG_ID] = {UUID_FW_CONFIG},
  62. #if !ARM_IO_IN_DTB
  63. [SCP_BL2_IMAGE_ID] = {UUID_SCP_FIRMWARE_SCP_BL2},
  64. [BL31_IMAGE_ID] = {UUID_EL3_RUNTIME_FIRMWARE_BL31},
  65. [BL32_IMAGE_ID] = {UUID_SECURE_PAYLOAD_BL32},
  66. [BL32_EXTRA1_IMAGE_ID] = {UUID_SECURE_PAYLOAD_BL32_EXTRA1},
  67. [BL32_EXTRA2_IMAGE_ID] = {UUID_SECURE_PAYLOAD_BL32_EXTRA2},
  68. [BL33_IMAGE_ID] = {UUID_NON_TRUSTED_FIRMWARE_BL33},
  69. [HW_CONFIG_ID] = {UUID_HW_CONFIG},
  70. [SOC_FW_CONFIG_ID] = {UUID_SOC_FW_CONFIG},
  71. [TOS_FW_CONFIG_ID] = {UUID_TOS_FW_CONFIG},
  72. [NT_FW_CONFIG_ID] = {UUID_NT_FW_CONFIG},
  73. [RMM_IMAGE_ID] = {UUID_REALM_MONITOR_MGMT_FIRMWARE},
  74. #if ETHOSN_NPU_TZMP1
  75. [ETHOSN_NPU_FW_IMAGE_ID] = {UUID_ETHOSN_FW},
  76. #endif /* ETHOSN_NPU_TZMP1 */
  77. #endif /* ARM_IO_IN_DTB */
  78. #if TRUSTED_BOARD_BOOT
  79. [TRUSTED_BOOT_FW_CERT_ID] = {UUID_TRUSTED_BOOT_FW_CERT},
  80. #if !ARM_IO_IN_DTB
  81. [CCA_CONTENT_CERT_ID] = {UUID_CCA_CONTENT_CERT},
  82. [CORE_SWD_KEY_CERT_ID] = {UUID_CORE_SWD_KEY_CERT},
  83. [PLAT_KEY_CERT_ID] = {UUID_PLAT_KEY_CERT},
  84. [TRUSTED_KEY_CERT_ID] = {UUID_TRUSTED_KEY_CERT},
  85. [SCP_FW_KEY_CERT_ID] = {UUID_SCP_FW_KEY_CERT},
  86. [SOC_FW_KEY_CERT_ID] = {UUID_SOC_FW_KEY_CERT},
  87. [TRUSTED_OS_FW_KEY_CERT_ID] = {UUID_TRUSTED_OS_FW_KEY_CERT},
  88. [NON_TRUSTED_FW_KEY_CERT_ID] = {UUID_NON_TRUSTED_FW_KEY_CERT},
  89. [SCP_FW_CONTENT_CERT_ID] = {UUID_SCP_FW_CONTENT_CERT},
  90. [SOC_FW_CONTENT_CERT_ID] = {UUID_SOC_FW_CONTENT_CERT},
  91. [TRUSTED_OS_FW_CONTENT_CERT_ID] = {UUID_TRUSTED_OS_FW_CONTENT_CERT},
  92. [NON_TRUSTED_FW_CONTENT_CERT_ID] = {UUID_NON_TRUSTED_FW_CONTENT_CERT},
  93. #if defined(SPD_spmd)
  94. [SIP_SP_CONTENT_CERT_ID] = {UUID_SIP_SECURE_PARTITION_CONTENT_CERT},
  95. [PLAT_SP_CONTENT_CERT_ID] = {UUID_PLAT_SECURE_PARTITION_CONTENT_CERT},
  96. #endif
  97. #if ETHOSN_NPU_TZMP1
  98. [ETHOSN_NPU_FW_KEY_CERT_ID] = {UUID_ETHOSN_FW_KEY_CERTIFICATE},
  99. [ETHOSN_NPU_FW_CONTENT_CERT_ID] = {UUID_ETHOSN_FW_CONTENT_CERTIFICATE},
  100. #endif /* ETHOSN_NPU_TZMP1 */
  101. #endif /* ARM_IO_IN_DTB */
  102. #endif /* TRUSTED_BOARD_BOOT */
  103. };
  104. /* By default, ARM platforms load images from the FIP */
  105. struct plat_io_policy policies[MAX_NUMBER_IDS] = {
  106. #if ARM_GPT_SUPPORT
  107. [GPT_IMAGE_ID] = {
  108. &memmap_dev_handle,
  109. (uintptr_t)&gpt_spec,
  110. open_memmap
  111. },
  112. [BKUP_GPT_IMAGE_ID] = {
  113. &memmap_dev_handle,
  114. (uintptr_t)&bkup_gpt_spec,
  115. open_memmap
  116. },
  117. #endif /* ARM_GPT_SUPPORT */
  118. #if PSA_FWU_SUPPORT
  119. [FWU_METADATA_IMAGE_ID] = {
  120. &memmap_dev_handle,
  121. /* filled runtime from partition information */
  122. (uintptr_t)&fwu_metadata_spec,
  123. open_memmap
  124. },
  125. [BKUP_FWU_METADATA_IMAGE_ID] = {
  126. &memmap_dev_handle,
  127. /* filled runtime from partition information */
  128. (uintptr_t)&fwu_metadata_spec,
  129. open_memmap
  130. },
  131. #endif /* PSA_FWU_SUPPORT */
  132. [FIP_IMAGE_ID] = {
  133. &memmap_dev_handle,
  134. (uintptr_t)&fip_block_spec,
  135. open_memmap
  136. },
  137. [BL2_IMAGE_ID] = {
  138. &fip_dev_handle,
  139. (uintptr_t)&arm_uuid_spec[BL2_IMAGE_ID],
  140. open_fip
  141. },
  142. [TB_FW_CONFIG_ID] = {
  143. &fip_dev_handle,
  144. (uintptr_t)&arm_uuid_spec[TB_FW_CONFIG_ID],
  145. open_fip
  146. },
  147. [FW_CONFIG_ID] = {
  148. &fip_dev_handle,
  149. (uintptr_t)&arm_uuid_spec[FW_CONFIG_ID],
  150. open_fip
  151. },
  152. #if !ARM_IO_IN_DTB
  153. [SCP_BL2_IMAGE_ID] = {
  154. &fip_dev_handle,
  155. (uintptr_t)&arm_uuid_spec[SCP_BL2_IMAGE_ID],
  156. open_fip
  157. },
  158. [BL31_IMAGE_ID] = {
  159. &fip_dev_handle,
  160. (uintptr_t)&arm_uuid_spec[BL31_IMAGE_ID],
  161. open_fip
  162. },
  163. [BL32_IMAGE_ID] = {
  164. &fip_dev_handle,
  165. (uintptr_t)&arm_uuid_spec[BL32_IMAGE_ID],
  166. open_fip
  167. },
  168. [BL32_EXTRA1_IMAGE_ID] = {
  169. &fip_dev_handle,
  170. (uintptr_t)&arm_uuid_spec[BL32_EXTRA1_IMAGE_ID],
  171. open_fip
  172. },
  173. [BL32_EXTRA2_IMAGE_ID] = {
  174. &fip_dev_handle,
  175. (uintptr_t)&arm_uuid_spec[BL32_EXTRA2_IMAGE_ID],
  176. open_fip
  177. },
  178. [BL33_IMAGE_ID] = {
  179. &fip_dev_handle,
  180. (uintptr_t)&arm_uuid_spec[BL33_IMAGE_ID],
  181. open_fip
  182. },
  183. [RMM_IMAGE_ID] = {
  184. &fip_dev_handle,
  185. (uintptr_t)&arm_uuid_spec[RMM_IMAGE_ID],
  186. open_fip
  187. },
  188. [HW_CONFIG_ID] = {
  189. &fip_dev_handle,
  190. (uintptr_t)&arm_uuid_spec[HW_CONFIG_ID],
  191. open_fip
  192. },
  193. [SOC_FW_CONFIG_ID] = {
  194. &fip_dev_handle,
  195. (uintptr_t)&arm_uuid_spec[SOC_FW_CONFIG_ID],
  196. open_fip
  197. },
  198. [TOS_FW_CONFIG_ID] = {
  199. &fip_dev_handle,
  200. (uintptr_t)&arm_uuid_spec[TOS_FW_CONFIG_ID],
  201. open_fip
  202. },
  203. [NT_FW_CONFIG_ID] = {
  204. &fip_dev_handle,
  205. (uintptr_t)&arm_uuid_spec[NT_FW_CONFIG_ID],
  206. open_fip
  207. },
  208. #if ETHOSN_NPU_TZMP1
  209. [ETHOSN_NPU_FW_IMAGE_ID] = {
  210. &fip_dev_handle,
  211. (uintptr_t)&arm_uuid_spec[ETHOSN_NPU_FW_IMAGE_ID],
  212. open_fip
  213. },
  214. #endif /* ETHOSN_NPU_TZMP1 */
  215. #endif /* ARM_IO_IN_DTB */
  216. #if TRUSTED_BOARD_BOOT
  217. [TRUSTED_BOOT_FW_CERT_ID] = {
  218. &fip_dev_handle,
  219. (uintptr_t)&arm_uuid_spec[TRUSTED_BOOT_FW_CERT_ID],
  220. open_fip
  221. },
  222. #if !ARM_IO_IN_DTB
  223. [CCA_CONTENT_CERT_ID] = {
  224. &fip_dev_handle,
  225. (uintptr_t)&arm_uuid_spec[CCA_CONTENT_CERT_ID],
  226. open_fip
  227. },
  228. [CORE_SWD_KEY_CERT_ID] = {
  229. &fip_dev_handle,
  230. (uintptr_t)&arm_uuid_spec[CORE_SWD_KEY_CERT_ID],
  231. open_fip
  232. },
  233. [PLAT_KEY_CERT_ID] = {
  234. &fip_dev_handle,
  235. (uintptr_t)&arm_uuid_spec[PLAT_KEY_CERT_ID],
  236. open_fip
  237. },
  238. [TRUSTED_KEY_CERT_ID] = {
  239. &fip_dev_handle,
  240. (uintptr_t)&arm_uuid_spec[TRUSTED_KEY_CERT_ID],
  241. open_fip
  242. },
  243. [SCP_FW_KEY_CERT_ID] = {
  244. &fip_dev_handle,
  245. (uintptr_t)&arm_uuid_spec[SCP_FW_KEY_CERT_ID],
  246. open_fip
  247. },
  248. [SOC_FW_KEY_CERT_ID] = {
  249. &fip_dev_handle,
  250. (uintptr_t)&arm_uuid_spec[SOC_FW_KEY_CERT_ID],
  251. open_fip
  252. },
  253. [TRUSTED_OS_FW_KEY_CERT_ID] = {
  254. &fip_dev_handle,
  255. (uintptr_t)&arm_uuid_spec[TRUSTED_OS_FW_KEY_CERT_ID],
  256. open_fip
  257. },
  258. [NON_TRUSTED_FW_KEY_CERT_ID] = {
  259. &fip_dev_handle,
  260. (uintptr_t)&arm_uuid_spec[NON_TRUSTED_FW_KEY_CERT_ID],
  261. open_fip
  262. },
  263. [SCP_FW_CONTENT_CERT_ID] = {
  264. &fip_dev_handle,
  265. (uintptr_t)&arm_uuid_spec[SCP_FW_CONTENT_CERT_ID],
  266. open_fip
  267. },
  268. [SOC_FW_CONTENT_CERT_ID] = {
  269. &fip_dev_handle,
  270. (uintptr_t)&arm_uuid_spec[SOC_FW_CONTENT_CERT_ID],
  271. open_fip
  272. },
  273. [TRUSTED_OS_FW_CONTENT_CERT_ID] = {
  274. &fip_dev_handle,
  275. (uintptr_t)&arm_uuid_spec[TRUSTED_OS_FW_CONTENT_CERT_ID],
  276. open_fip
  277. },
  278. [NON_TRUSTED_FW_CONTENT_CERT_ID] = {
  279. &fip_dev_handle,
  280. (uintptr_t)&arm_uuid_spec[NON_TRUSTED_FW_CONTENT_CERT_ID],
  281. open_fip
  282. },
  283. #if defined(SPD_spmd)
  284. [SIP_SP_CONTENT_CERT_ID] = {
  285. &fip_dev_handle,
  286. (uintptr_t)&arm_uuid_spec[SIP_SP_CONTENT_CERT_ID],
  287. open_fip
  288. },
  289. [PLAT_SP_CONTENT_CERT_ID] = {
  290. &fip_dev_handle,
  291. (uintptr_t)&arm_uuid_spec[PLAT_SP_CONTENT_CERT_ID],
  292. open_fip
  293. },
  294. #endif
  295. #if ETHOSN_NPU_TZMP1
  296. [ETHOSN_NPU_FW_KEY_CERT_ID] = {
  297. &fip_dev_handle,
  298. (uintptr_t)&arm_uuid_spec[ETHOSN_NPU_FW_KEY_CERT_ID],
  299. open_fip
  300. },
  301. [ETHOSN_NPU_FW_CONTENT_CERT_ID] = {
  302. &fip_dev_handle,
  303. (uintptr_t)&arm_uuid_spec[ETHOSN_NPU_FW_CONTENT_CERT_ID],
  304. open_fip
  305. },
  306. #endif /* ETHOSN_NPU_TZMP1 */
  307. #endif /* ARM_IO_IN_DTB */
  308. #endif /* TRUSTED_BOARD_BOOT */
  309. };
  310. #ifdef IMAGE_BL2
  311. #define FCONF_ARM_IO_UUID_NUM_BASE U(10)
  312. #if ETHOSN_NPU_TZMP1
  313. #define FCONF_ARM_IO_UUID_NUM_NPU U(1)
  314. #else
  315. #define FCONF_ARM_IO_UUID_NUM_NPU U(0)
  316. #endif /* ETHOSN_NPU_TZMP1 */
  317. #if TRUSTED_BOARD_BOOT
  318. #define FCONF_ARM_IO_UUID_NUM_TBB U(12)
  319. #else
  320. #define FCONF_ARM_IO_UUID_NUM_TBB U(0)
  321. #endif /* TRUSTED_BOARD_BOOT */
  322. #if TRUSTED_BOARD_BOOT && defined(SPD_spmd)
  323. #define FCONF_ARM_IO_UUID_NUM_SPD U(2)
  324. #else
  325. #define FCONF_ARM_IO_UUID_NUM_SPD U(0)
  326. #endif /* TRUSTED_BOARD_BOOT && defined(SPD_spmd) */
  327. #if TRUSTED_BOARD_BOOT && ETHOSN_NPU_TZMP1
  328. #define FCONF_ARM_IO_UUID_NUM_NPU_TBB U(2)
  329. #else
  330. #define FCONF_ARM_IO_UUID_NUM_NPU_TBB U(0)
  331. #endif /* TRUSTED_BOARD_BOOT && ETHOSN_NPU_TZMP1 */
  332. #define FCONF_ARM_IO_UUID_NUMBER FCONF_ARM_IO_UUID_NUM_BASE + \
  333. FCONF_ARM_IO_UUID_NUM_NPU + \
  334. FCONF_ARM_IO_UUID_NUM_TBB + \
  335. FCONF_ARM_IO_UUID_NUM_SPD + \
  336. FCONF_ARM_IO_UUID_NUM_NPU_TBB
  337. static io_uuid_spec_t fconf_arm_uuids[FCONF_ARM_IO_UUID_NUMBER];
  338. static OBJECT_POOL_ARRAY(fconf_arm_uuids_pool, fconf_arm_uuids);
  339. struct policies_load_info {
  340. unsigned int image_id;
  341. const char *name;
  342. };
  343. /* image id to property name table */
  344. static const struct policies_load_info load_info[FCONF_ARM_IO_UUID_NUMBER] = {
  345. {SCP_BL2_IMAGE_ID, "scp_bl2_uuid"},
  346. {BL31_IMAGE_ID, "bl31_uuid"},
  347. {BL32_IMAGE_ID, "bl32_uuid"},
  348. {BL32_EXTRA1_IMAGE_ID, "bl32_extra1_uuid"},
  349. {BL32_EXTRA2_IMAGE_ID, "bl32_extra2_uuid"},
  350. {BL33_IMAGE_ID, "bl33_uuid"},
  351. {HW_CONFIG_ID, "hw_cfg_uuid"},
  352. {SOC_FW_CONFIG_ID, "soc_fw_cfg_uuid"},
  353. {TOS_FW_CONFIG_ID, "tos_fw_cfg_uuid"},
  354. {NT_FW_CONFIG_ID, "nt_fw_cfg_uuid"},
  355. #if ETHOSN_NPU_TZMP1
  356. {ETHOSN_NPU_FW_IMAGE_ID, "ethosn_npu_fw_uuid"},
  357. #endif /* ETHOSN_NPU_TZMP1 */
  358. #if TRUSTED_BOARD_BOOT
  359. {CCA_CONTENT_CERT_ID, "cca_cert_uuid"},
  360. {CORE_SWD_KEY_CERT_ID, "core_swd_cert_uuid"},
  361. {PLAT_KEY_CERT_ID, "plat_cert_uuid"},
  362. {TRUSTED_KEY_CERT_ID, "t_key_cert_uuid"},
  363. {SCP_FW_KEY_CERT_ID, "scp_fw_key_uuid"},
  364. {SOC_FW_KEY_CERT_ID, "soc_fw_key_uuid"},
  365. {TRUSTED_OS_FW_KEY_CERT_ID, "tos_fw_key_cert_uuid"},
  366. {NON_TRUSTED_FW_KEY_CERT_ID, "nt_fw_key_cert_uuid"},
  367. {SCP_FW_CONTENT_CERT_ID, "scp_fw_content_cert_uuid"},
  368. {SOC_FW_CONTENT_CERT_ID, "soc_fw_content_cert_uuid"},
  369. {TRUSTED_OS_FW_CONTENT_CERT_ID, "tos_fw_content_cert_uuid"},
  370. {NON_TRUSTED_FW_CONTENT_CERT_ID, "nt_fw_content_cert_uuid"},
  371. #if defined(SPD_spmd)
  372. {SIP_SP_CONTENT_CERT_ID, "sip_sp_content_cert_uuid"},
  373. {PLAT_SP_CONTENT_CERT_ID, "plat_sp_content_cert_uuid"},
  374. #endif
  375. #if ETHOSN_NPU_TZMP1
  376. {ETHOSN_NPU_FW_KEY_CERT_ID, "ethosn_npu_fw_key_cert_uuid"},
  377. {ETHOSN_NPU_FW_CONTENT_CERT_ID, "ethosn_npu_fw_content_cert_uuid"},
  378. #endif /* ETHOSN_NPU_TZMP1 */
  379. #endif /* TRUSTED_BOARD_BOOT */
  380. };
  381. int fconf_populate_arm_io_policies(uintptr_t config)
  382. {
  383. int err, node;
  384. unsigned int i;
  385. union uuid_helper_t uuid_helper;
  386. io_uuid_spec_t *uuid_ptr;
  387. /* As libfdt uses void *, we can't avoid this cast */
  388. const void *dtb = (void *)config;
  389. /* Assert the node offset point to "arm,io-fip-handle" compatible property */
  390. const char *compatible_str = "arm,io-fip-handle";
  391. node = fdt_node_offset_by_compatible(dtb, -1, compatible_str);
  392. if (node < 0) {
  393. ERROR("FCONF: Can't find %s compatible in dtb\n", compatible_str);
  394. return node;
  395. }
  396. /* Locate the uuid cells and read the value for all the load info uuid */
  397. for (i = 0; i < FCONF_ARM_IO_UUID_NUMBER; i++) {
  398. uuid_ptr = pool_alloc(&fconf_arm_uuids_pool);
  399. err = fdtw_read_uuid(dtb, node, load_info[i].name, 16,
  400. (uint8_t *)&uuid_helper);
  401. if (err < 0) {
  402. WARN("FCONF: Read cell failed for %s\n", load_info[i].name);
  403. return err;
  404. }
  405. VERBOSE("FCONF: arm-io_policies.%s cell found with value = "
  406. "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x\n",
  407. load_info[i].name,
  408. uuid_helper.uuid_struct.time_low[0], uuid_helper.uuid_struct.time_low[1],
  409. uuid_helper.uuid_struct.time_low[2], uuid_helper.uuid_struct.time_low[3],
  410. uuid_helper.uuid_struct.time_mid[0], uuid_helper.uuid_struct.time_mid[1],
  411. uuid_helper.uuid_struct.time_hi_and_version[0],
  412. uuid_helper.uuid_struct.time_hi_and_version[1],
  413. uuid_helper.uuid_struct.clock_seq_hi_and_reserved,
  414. uuid_helper.uuid_struct.clock_seq_low,
  415. uuid_helper.uuid_struct.node[0], uuid_helper.uuid_struct.node[1],
  416. uuid_helper.uuid_struct.node[2], uuid_helper.uuid_struct.node[3],
  417. uuid_helper.uuid_struct.node[4], uuid_helper.uuid_struct.node[5]);
  418. uuid_ptr->uuid = uuid_helper.uuid_struct;
  419. policies[load_info[i].image_id].image_spec = (uintptr_t)uuid_ptr;
  420. policies[load_info[i].image_id].dev_handle = &fip_dev_handle;
  421. policies[load_info[i].image_id].check = open_fip;
  422. }
  423. return 0;
  424. }
  425. #if ARM_IO_IN_DTB
  426. FCONF_REGISTER_POPULATOR(TB_FW, arm_io, fconf_populate_arm_io_policies);
  427. #endif /* ARM_IO_IN_DTB */
  428. #endif /* IMAGE_BL2 */