summaryrefslogtreecommitdiff
path: root/include/spl.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-07-27 09:11:25 -0400
committerTom Rini <trini@konsulko.com>2021-07-27 09:11:25 -0400
commit0d4823fbebae6ebbf558a9325d86b37c67d848d9 (patch)
tree46c84c5039fc1d2ce0ff441e32603de406976db5 /include/spl.h
parentdf59b7d23be71db03275e4c1b243e67397b50f9a (diff)
parent65b3f56d42e5ddc9183843723cf735950f062410 (diff)
Merge tag 'u-boot-stm32-20210727' of https://source.denx.de/u-boot/custodians/u-boot-stm
- FIP Enable OP-TEE and TZC support in SPL for STM32MP15 SoC - Add stm32mp15 missing SPI clock support - Manage pull-up on gpio button STM32MP15 boards - Correct STM32MP15 boot when TAMPER registers are invalid - Fix EMMC pinmux on STM32MP15 Avenger96 board
Diffstat (limited to 'include/spl.h')
-rw-r--r--include/spl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index 74a19394520..925b6f0cc64 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -432,6 +432,20 @@ int spl_parse_image_header(struct spl_image_info *spl_image,
const struct image_header *header);
void spl_board_prepare_for_linux(void);
+
+/**
+ * spl_board_prepare_for_optee() - Prepare board for an OPTEE payload
+ *
+ * Prepares the board for booting an OP-TEE payload. Initialization is platform
+ * specific, and may include configuring the TrustZone memory, and other
+ * initialization steps required by OP-TEE.
+ * Note that @fdt is not used directly by OP-TEE. OP-TEE passes this @fdt to
+ * its normal world target. This target is not guaranteed to be u-boot, so @fdt
+ * changes that would normally be done by u-boot should be done in this step.
+ *
+ * @fdt: Devicetree that will be passed on, or NULL
+ */
+void spl_board_prepare_for_optee(void *fdt);
void spl_board_prepare_for_boot(void);
int spl_board_ubi_load_image(u32 boot_device);
int spl_board_boot_device(u32 boot_device);