feat(esp_tee): Support for ESP-TEE - esptool_py, esp_rom & other components

This commit is contained in:
Laukik Hase
2024-07-01 13:19:49 +05:30
parent 66f880fc1c
commit 2dee5791a6
14 changed files with 119 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -11,6 +11,7 @@
#include "esp_private/sar_periph_ctrl.h"
#include "freertos/FreeRTOS.h"
#include "hal/efuse_hal.h"
/*
* This file is used to override the hooks provided by the PHY lib for some system features.
@@ -99,3 +100,20 @@ int16_t phy_get_tsens_value(void)
return 0;
#endif
}
/* NOTE:: With ESP-TEE enabled, we override certain functions from the libphy
* component archive which directly access the eFuse later (e.g. REG_READ)
* with the HAL APIs.
*
* In the future, ESP-TEE would need to protect the entire eFuse range through
* APM and expects users to use HAL APIs which would be redirected as service calls.
*/
void esp_phy_efuse_get_mac(uint8_t *mac)
{
efuse_hal_get_mac(mac);
}
uint32_t esp_phy_efuse_get_chip_ver_pkg(void)
{
return efuse_hal_get_chip_ver_pkg();
}