feat(esp_tee): Support for ESP-TEE - bootloader_support component

This commit is contained in:
Laukik Hase
2024-11-06 17:57:18 +05:30
parent f254f93594
commit 54c3f1bae4
10 changed files with 833 additions and 27 deletions
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -21,11 +21,16 @@ extern "C"
#define SPI_ERROR_LOG "spi flash error"
#define MAX_OTA_SLOTS 16
#define MAX_TEE_OTA_SLOTS 2
typedef struct {
esp_partition_pos_t ota_info;
esp_partition_pos_t factory;
esp_partition_pos_t test;
#if CONFIG_SECURE_ENABLE_TEE
esp_partition_pos_t tee_ota_info;
esp_partition_pos_t tee[MAX_TEE_OTA_SLOTS];
#endif
esp_partition_pos_t ota[MAX_OTA_SLOTS];
uint32_t app_count;
uint32_t selected_subtype;
@@ -38,6 +38,13 @@ bool bootloader_utility_load_partition_table(bootloader_state_t* bs);
*/
int bootloader_utility_get_selected_boot_partition(const bootloader_state_t *bs);
/**
* @brief Load and verify the TEE image from the selected partition
*
* @param bs Bootloader state structure
*/
void bootloader_utility_load_tee_image(const bootloader_state_t *bs);
/**
* @brief Load the selected partition and start application.
*