From 3faf6de05ec2a1fc2a5512db0f117cd1daa4edd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Pouiller?= Date: Thu, 28 Nov 2024 12:30:50 +0100 Subject: [PATCH] wiseconnect: Disable high temperature security MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wiseconnect allows to use an alternative clock if the temperature during the start up is too high. However: - this feature relies on ADC and we don't want to import it for now - this kind of magic feature should be exposed to the user rather than hidden in the HAL (especially since use can also use ADC hardware) Signed-off-by: Jérôme Pouiller --- .../si91x/mcu/drivers/systemlevel/src/rsi_ipmu.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/wiseconnect/components/device/silabs/si91x/mcu/drivers/systemlevel/src/rsi_ipmu.c b/wiseconnect/components/device/silabs/si91x/mcu/drivers/systemlevel/src/rsi_ipmu.c index ec5f2ead0..151eef584 100644 --- a/wiseconnect/components/device/silabs/si91x/mcu/drivers/systemlevel/src/rsi_ipmu.c +++ b/wiseconnect/components/device/silabs/si91x/mcu/drivers/systemlevel/src/rsi_ipmu.c @@ -34,7 +34,6 @@ #include "rsi_ipmu.h" #include "rsi_pll.h" #include "rsi_ulpss_clk.h" -#include "sl_si91x_bjt_temperature_sensor.h" /** * Defines @@ -42,9 +41,6 @@ #define SYSTEM_CLK_VAL_20MHZ ((uint32_t)(20000000)) // macro for 20MHz #define SYSTEM_CLK_VAL_MHZ ((uint32_t)(32000000)) // macro for 32MHz doubler -extern adc_config_t sl_bjt_config; -extern adc_ch_config_t sl_bjt_channel_config; - /** * @fn void RSI_IPMU_UpdateIpmuCalibData_efuse(const efuse_ipmu_t *ipmu_calib_data) * @brief This function prepares the data from the ipmu calib structure content and writes to each specific register @@ -463,14 +459,8 @@ void RSI_Configure_Ipmu_Mode(void) /*configures chip supply mode to HP-LDO */ configure_ipmu_mode(HP_LDO_MODE); #else - /* Read the temperature; if it is within the range of 0 to 60 degrees, switch the chip supply to SCDC mode. Otherwise, maintain the default LDO supply mode.*/ - sl_si91x_bjt_temperature_sensor_init(sl_bjt_channel_config, sl_bjt_config); - sl_si91x_bjt_temperature_sensor_read_data(&temperature); - sl_si91x_bjt_temperature_sensor_deinit(sl_bjt_config); - if ((temperature > 0) && (temperature <= 60)) { - /*configures chip supply mode to SCDC */ - configure_ipmu_mode(SCDC_MODE); - } + (void)temperature; + configure_ipmu_mode(SCDC_MODE); #endif } void update_efuse_system_configs(int data, uint32_t config_ptr[])