feat(esp32p4): Introduce p4 eco2 configuration

This commit is contained in:
C.S.M
2024-10-12 15:08:24 +08:00
parent 9f4b1bd471
commit 12d6cdb29a

View File

@@ -10,7 +10,7 @@ menu "Brownout Detector"
choice ESP_BROWNOUT_DET_LVL_SEL choice ESP_BROWNOUT_DET_LVL_SEL
prompt "Brownout voltage level" prompt "Brownout voltage level"
depends on ESP_BROWNOUT_DET depends on ESP_BROWNOUT_DET && (ESP32P4_REV_MIN_FULL <= 1)
default ESP_BROWNOUT_DET_LVL_SEL_7 default ESP_BROWNOUT_DET_LVL_SEL_7
help help
The brownout detector will reset the chip when the supply voltage is approximately The brownout detector will reset the chip when the supply voltage is approximately
@@ -33,13 +33,32 @@ menu "Brownout Detector"
bool "3.27V" bool "3.27V"
endchoice endchoice
choice ESP_BROWNOUT_DET_LVL_SEL_V2
prompt "Brownout voltage level"
default ESP_BROWNOUT_DET_LVL_SEL_7_V2
depends on ESP_BROWNOUT_DET && (ESP32P4_REV_MIN_FULL >= 100)
help
The brownout detector will reset the chip when the supply voltage is approximately
below this level. Note that there may be some variation of brownout voltage level
between each chip.
#The voltage levels here are estimates, more work needs to be done to figure out the exact voltages
#of the brownout threshold levels.
config ESP_BROWNOUT_DET_LVL_SEL_7_V2
bool "2.6V"
config ESP_BROWNOUT_DET_LVL_SEL_6_V2
bool "2.52V"
config ESP_BROWNOUT_DET_LVL_SEL_5_V2
bool "2.42V"
endchoice
config ESP_BROWNOUT_DET_LVL config ESP_BROWNOUT_DET_LVL
int int
default 2 if ESP_BROWNOUT_DET_LVL_SEL_2 default 2 if ESP_BROWNOUT_DET_LVL_SEL_2
default 3 if ESP_BROWNOUT_DET_LVL_SEL_3 default 3 if ESP_BROWNOUT_DET_LVL_SEL_3
default 4 if ESP_BROWNOUT_DET_LVL_SEL_4 default 4 if ESP_BROWNOUT_DET_LVL_SEL_4
default 5 if ESP_BROWNOUT_DET_LVL_SEL_5 default 5 if ESP_BROWNOUT_DET_LVL_SEL_5 || ESP_BROWNOUT_DET_LVL_SEL_5_V2
default 6 if ESP_BROWNOUT_DET_LVL_SEL_6 default 6 if ESP_BROWNOUT_DET_LVL_SEL_6 || ESP_BROWNOUT_DET_LVL_SEL_6_V2
default 7 if ESP_BROWNOUT_DET_LVL_SEL_7 default 7 if ESP_BROWNOUT_DET_LVL_SEL_7 || ESP_BROWNOUT_DET_LVL_SEL_7_V2
endmenu endmenu