mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00
Merge "feat(intel): enable SDMMC frontdoor load for ATF->Linux" into integration
This commit is contained in:
commit
51ff56e447
6 changed files with 41 additions and 0 deletions
|
@ -78,6 +78,8 @@ BL31_SOURCES += \
|
||||||
plat/intel/soc/common/soc/socfpga_mailbox.c \
|
plat/intel/soc/common/soc/socfpga_mailbox.c \
|
||||||
plat/intel/soc/common/soc/socfpga_reset_manager.c
|
plat/intel/soc/common/soc/socfpga_reset_manager.c
|
||||||
|
|
||||||
|
$(eval $(call add_define,ARM_PRELOADED_DTB_BASE))
|
||||||
|
|
||||||
PROGRAMMABLE_RESET_ADDRESS := 0
|
PROGRAMMABLE_RESET_ADDRESS := 0
|
||||||
RESET_TO_BL2 := 1
|
RESET_TO_BL2 := 1
|
||||||
BL2_INV_DCACHE := 0
|
BL2_INV_DCACHE := 0
|
||||||
|
|
|
@ -101,6 +101,10 @@ USE_COHERENT_MEM := 0
|
||||||
CTX_INCLUDE_AARCH32_REGS := 0
|
CTX_INCLUDE_AARCH32_REGS := 0
|
||||||
ERRATA_A55_1530923 := 1
|
ERRATA_A55_1530923 := 1
|
||||||
|
|
||||||
|
# Don't have the Linux kernel as a BL33 image by default
|
||||||
|
ARM_LINUX_KERNEL_AS_BL33 := 0
|
||||||
|
$(eval $(call assert_boolean,ARM_LINUX_KERNEL_AS_BL33))
|
||||||
|
$(eval $(call add_define,ARM_LINUX_KERNEL_AS_BL33))
|
||||||
$(eval $(call add_define,ARM_PRELOADED_DTB_BASE))
|
$(eval $(call add_define,ARM_PRELOADED_DTB_BASE))
|
||||||
|
|
||||||
PROGRAMMABLE_RESET_ADDRESS := 0
|
PROGRAMMABLE_RESET_ADDRESS := 0
|
||||||
|
|
|
@ -88,9 +88,27 @@ static bl_mem_params_node_t bl2_mem_params_descs[] = {
|
||||||
.image_info.image_base = PLAT_NS_IMAGE_OFFSET,
|
.image_info.image_base = PLAT_NS_IMAGE_OFFSET,
|
||||||
.image_info.image_max_size =
|
.image_info.image_max_size =
|
||||||
0x0 + 0x40000000 - PLAT_NS_IMAGE_OFFSET,
|
0x0 + 0x40000000 - PLAT_NS_IMAGE_OFFSET,
|
||||||
|
# if ARM_LINUX_KERNEL_AS_BL33 != 0
|
||||||
|
.next_handoff_image_id = NT_FW_CONFIG_ID,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
.image_id = NT_FW_CONFIG_ID,
|
||||||
|
SET_STATIC_PARAM_HEAD(ep_info, PARAM_IMAGE_BINARY,
|
||||||
|
VERSION_2, entry_point_info_t,
|
||||||
|
NON_SECURE | NON_EXECUTABLE),
|
||||||
|
SET_STATIC_PARAM_HEAD(image_info, PARAM_IMAGE_BINARY,
|
||||||
|
VERSION_2, image_info_t, 0),
|
||||||
|
.image_info.image_base = ARM_PRELOADED_DTB_BASE,
|
||||||
|
.image_info.image_max_size =
|
||||||
|
0x0 + 0x40000000 - ARM_PRELOADED_DTB_BASE,
|
||||||
|
|
||||||
.next_handoff_image_id = INVALID_IMAGE_ID,
|
.next_handoff_image_id = INVALID_IMAGE_ID,
|
||||||
},
|
},
|
||||||
|
#else
|
||||||
|
.next_handoff_image_id = INVALID_IMAGE_ID,
|
||||||
|
},
|
||||||
|
# endif
|
||||||
};
|
};
|
||||||
|
|
||||||
REGISTER_BL_IMAGE_DESCS(bl2_mem_params_descs)
|
REGISTER_BL_IMAGE_DESCS(bl2_mem_params_descs)
|
||||||
|
|
|
@ -52,6 +52,12 @@ static const io_uuid_spec_t bl33_uuid_spec = {
|
||||||
.uuid = UUID_NON_TRUSTED_FIRMWARE_BL33,
|
.uuid = UUID_NON_TRUSTED_FIRMWARE_BL33,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# if ARM_LINUX_KERNEL_AS_BL33 != 0
|
||||||
|
static const io_uuid_spec_t nt_fw_config_uuid_spec = {
|
||||||
|
.uuid = UUID_NT_FW_CONFIG,
|
||||||
|
};
|
||||||
|
# endif
|
||||||
|
|
||||||
uintptr_t a2_lba_offset;
|
uintptr_t a2_lba_offset;
|
||||||
const char a2[] = {0xa2, 0x0};
|
const char a2[] = {0xa2, 0x0};
|
||||||
|
|
||||||
|
@ -98,6 +104,13 @@ static const struct plat_io_policy policies[] = {
|
||||||
(uintptr_t) &bl33_uuid_spec,
|
(uintptr_t) &bl33_uuid_spec,
|
||||||
check_fip
|
check_fip
|
||||||
},
|
},
|
||||||
|
# if ARM_LINUX_KERNEL_AS_BL33 != 0
|
||||||
|
[NT_FW_CONFIG_ID] = {
|
||||||
|
&fip_dev_handle,
|
||||||
|
(uintptr_t)&nt_fw_config_uuid_spec,
|
||||||
|
check_fip
|
||||||
|
},
|
||||||
|
# endif
|
||||||
[GPT_IMAGE_ID] = {
|
[GPT_IMAGE_ID] = {
|
||||||
&boot_dev_handle,
|
&boot_dev_handle,
|
||||||
(uintptr_t) &gpt_block_spec,
|
(uintptr_t) &gpt_block_spec,
|
||||||
|
|
|
@ -46,6 +46,8 @@ BL31_SOURCES += \
|
||||||
plat/intel/soc/common/soc/socfpga_mailbox.c \
|
plat/intel/soc/common/soc/socfpga_mailbox.c \
|
||||||
plat/intel/soc/common/soc/socfpga_reset_manager.c
|
plat/intel/soc/common/soc/socfpga_reset_manager.c
|
||||||
|
|
||||||
|
$(eval $(call add_define,ARM_PRELOADED_DTB_BASE))
|
||||||
|
|
||||||
PROGRAMMABLE_RESET_ADDRESS := 0
|
PROGRAMMABLE_RESET_ADDRESS := 0
|
||||||
RESET_TO_BL2 := 1
|
RESET_TO_BL2 := 1
|
||||||
BL2_INV_DCACHE := 0
|
BL2_INV_DCACHE := 0
|
||||||
|
|
|
@ -76,6 +76,8 @@ BL31_SOURCES += \
|
||||||
plat/intel/soc/common/soc/socfpga_mailbox.c \
|
plat/intel/soc/common/soc/socfpga_mailbox.c \
|
||||||
plat/intel/soc/common/soc/socfpga_reset_manager.c
|
plat/intel/soc/common/soc/socfpga_reset_manager.c
|
||||||
|
|
||||||
|
$(eval $(call add_define,ARM_PRELOADED_DTB_BASE))
|
||||||
|
|
||||||
PROGRAMMABLE_RESET_ADDRESS := 0
|
PROGRAMMABLE_RESET_ADDRESS := 0
|
||||||
RESET_TO_BL2 := 1
|
RESET_TO_BL2 := 1
|
||||||
USE_COHERENT_MEM := 1
|
USE_COHERENT_MEM := 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue