Bryan O'Donoghue | 6a996d0 | 2018-05-25 17:20:50 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <bl_common.h> |
| 8 | #include <desc_image_load.h> |
| 9 | #include <platform.h> |
| 10 | #include <platform_def.h> |
| 11 | |
| 12 | static bl_mem_params_node_t bl2_mem_params_descs[] = { |
Bryan O'Donoghue | e760dc6 | 2018-06-11 13:39:20 +0100 | [diff] [blame] | 13 | { |
| 14 | .image_id = BL32_IMAGE_ID, |
| 15 | |
| 16 | SET_STATIC_PARAM_HEAD(ep_info, PARAM_EP, VERSION_2, |
| 17 | entry_point_info_t, |
| 18 | SECURE | EXECUTABLE | EP_FIRST_EXE), |
| 19 | .ep_info.pc = BL32_BASE, |
| 20 | |
| 21 | SET_STATIC_PARAM_HEAD(image_info, PARAM_EP, VERSION_2, |
| 22 | image_info_t, 0), |
| 23 | |
| 24 | .image_info.image_base = WARP7_OPTEE_BASE, |
| 25 | .image_info.image_max_size = WARP7_OPTEE_SIZE, |
| 26 | |
| 27 | .next_handoff_image_id = BL33_IMAGE_ID, |
| 28 | }, |
| 29 | { |
| 30 | .image_id = HW_CONFIG_ID, |
| 31 | SET_STATIC_PARAM_HEAD(ep_info, PARAM_IMAGE_BINARY, |
| 32 | VERSION_2, entry_point_info_t, SECURE | NON_EXECUTABLE), |
| 33 | SET_STATIC_PARAM_HEAD(image_info, PARAM_IMAGE_BINARY, |
| 34 | VERSION_2, image_info_t, 0), |
| 35 | .image_info.image_base = WARP7_DTB_BASE, |
| 36 | .image_info.image_max_size = WARP7_DTB_SIZE, |
| 37 | .next_handoff_image_id = INVALID_IMAGE_ID, |
| 38 | }, |
| 39 | { |
| 40 | .image_id = BL32_EXTRA1_IMAGE_ID, |
| 41 | |
| 42 | SET_STATIC_PARAM_HEAD(ep_info, PARAM_EP, VERSION_2, |
| 43 | entry_point_info_t, |
| 44 | SECURE | NON_EXECUTABLE), |
| 45 | |
| 46 | SET_STATIC_PARAM_HEAD(image_info, PARAM_EP, VERSION_2, |
| 47 | image_info_t, IMAGE_ATTRIB_SKIP_LOADING), |
| 48 | .image_info.image_base = WARP7_OPTEE_BASE, |
| 49 | .image_info.image_max_size = WARP7_OPTEE_SIZE, |
| 50 | |
| 51 | .next_handoff_image_id = INVALID_IMAGE_ID, |
| 52 | }, |
| 53 | { |
| 54 | /* This is a zero sized image so we don't set base or size */ |
| 55 | .image_id = BL32_EXTRA2_IMAGE_ID, |
| 56 | |
| 57 | SET_STATIC_PARAM_HEAD(ep_info, PARAM_EP, |
| 58 | VERSION_2, entry_point_info_t, |
| 59 | SECURE | NON_EXECUTABLE), |
| 60 | |
| 61 | SET_STATIC_PARAM_HEAD(image_info, PARAM_EP, |
| 62 | VERSION_2, image_info_t, |
| 63 | IMAGE_ATTRIB_SKIP_LOADING), |
| 64 | .next_handoff_image_id = INVALID_IMAGE_ID, |
| 65 | }, |
| 66 | { |
| 67 | .image_id = BL33_IMAGE_ID, |
| 68 | SET_STATIC_PARAM_HEAD(ep_info, PARAM_EP, VERSION_2, |
| 69 | entry_point_info_t, |
| 70 | NON_SECURE | EXECUTABLE), |
| 71 | # ifdef PRELOADED_BL33_BASE |
| 72 | .ep_info.pc = PRELOADED_BL33_BASE, |
| 73 | |
| 74 | SET_STATIC_PARAM_HEAD(image_info, PARAM_EP, |
| 75 | VERSION_2, image_info_t, |
| 76 | IMAGE_ATTRIB_SKIP_LOADING), |
| 77 | # else |
| 78 | .ep_info.pc = BL33_BASE, |
| 79 | |
| 80 | SET_STATIC_PARAM_HEAD(image_info, PARAM_EP, |
| 81 | VERSION_2, image_info_t, 0), |
| 82 | .image_info.image_base = WARP7_UBOOT_BASE, |
| 83 | .image_info.image_max_size = WARP7_UBOOT_SIZE, |
| 84 | # endif /* PRELOADED_BL33_BASE */ |
| 85 | |
| 86 | .next_handoff_image_id = INVALID_IMAGE_ID, |
| 87 | } |
Bryan O'Donoghue | 6a996d0 | 2018-05-25 17:20:50 +0100 | [diff] [blame] | 88 | }; |
| 89 | |
| 90 | REGISTER_BL_IMAGE_DESCS(bl2_mem_params_descs); |