Skip to content

Commit 6b81daf

Browse files
jerome-pouillerjhedberg
authored andcommitted
wiseconnect: Disable high temperature security
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) Upstream-status: Inappropriate [Upstream wants to keep high temperature security] Signed-off-by: Jérôme Pouiller <[email protected]>
1 parent c634279 commit 6b81daf

File tree

1 file changed

+2
-12
lines changed
  • wiseconnect/components/device/silabs/si91x/mcu/drivers/systemlevel/src

1 file changed

+2
-12
lines changed

wiseconnect/components/device/silabs/si91x/mcu/drivers/systemlevel/src/rsi_ipmu.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,13 @@
3434
#include "rsi_ipmu.h"
3535
#include "rsi_pll.h"
3636
#include "rsi_ulpss_clk.h"
37-
#include "sl_si91x_bjt_temperature_sensor.h"
3837

3938
/**
4039
* Defines
4140
*/
4241
#define SYSTEM_CLK_VAL_20MHZ ((uint32_t)(20000000)) // macro for 20MHz
4342
#define SYSTEM_CLK_VAL_MHZ ((uint32_t)(32000000)) // macro for 32MHz doubler
4443

45-
extern adc_config_t sl_bjt_config;
46-
extern adc_ch_config_t sl_bjt_channel_config;
47-
4844
/**
4945
* @fn void RSI_IPMU_UpdateIpmuCalibData_efuse(const efuse_ipmu_t *ipmu_calib_data)
5046
* @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)
463459
/*configures chip supply mode to HP-LDO */
464460
configure_ipmu_mode(HP_LDO_MODE);
465461
#else
466-
/* 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.*/
467-
sl_si91x_bjt_temperature_sensor_init(sl_bjt_channel_config, sl_bjt_config);
468-
sl_si91x_bjt_temperature_sensor_read_data(&temperature);
469-
sl_si91x_bjt_temperature_sensor_deinit(sl_bjt_config);
470-
if ((temperature > 0) && (temperature <= 60)) {
471-
/*configures chip supply mode to SCDC */
472-
configure_ipmu_mode(SCDC_MODE);
473-
}
462+
(void)temperature;
463+
configure_ipmu_mode(SCDC_MODE);
474464
#endif
475465
}
476466
void update_efuse_system_configs(int data, uint32_t config_ptr[])

0 commit comments

Comments
 (0)