1choice ESP32_REV_MIN
2    prompt "Minimum Supported ESP32 Revision"
3    default ESP32_REV_MIN_0
4    help
5        Required minimum chip revision. ESP-IDF will check for it and
6        reject to boot if the chip revision fails the check.
7        This ensures the chip used will have some modifications (features, or bugfixes).
8
9        The complied binary will only support chips above this revision,
10        this will also help to reduce binary size.
11
12    config ESP32_REV_MIN_0
13        bool "Rev v0.0 (ECO0)"
14        # Brownout on Rev 0 is bugged, must use interrupt
15        select ESP_SYSTEM_BROWNOUT_INTR
16    config ESP32_REV_MIN_1
17        bool "Rev v1.0 (ECO1)"
18    config ESP32_REV_MIN_1_1
19        bool "Rev v1.1 (ECO1.1)"
20    config ESP32_REV_MIN_2
21        bool "Rev v2.0 (ECO2)"
22    config ESP32_REV_MIN_3
23        bool "Rev v3.0 (ECO3)"
24        select ESP_INT_WDT if ESP32_ECO3_CACHE_LOCK_FIX
25    config ESP32_REV_MIN_3_1
26        bool "Rev v3.1 (ECO4)"
27        select ESP_INT_WDT if ESP32_ECO3_CACHE_LOCK_FIX
28endchoice
29
30config ESP32_REV_MIN
31    # we keep it for compatibility. Use ESP32_REV_MIN_FULL instead.
32    int
33    default 0 if ESP32_REV_MIN_0
34    default 1 if ESP32_REV_MIN_1 || ESP32_REV_MIN_1_1
35    default 2 if ESP32_REV_MIN_2
36    default 3 if ESP32_REV_MIN_3 || ESP32_REV_MIN_3_1
37
38config ESP32_REV_MIN_FULL
39    int
40    default 0 if ESP32_REV_MIN_0
41    default 100 if ESP32_REV_MIN_1
42    default 101 if ESP32_REV_MIN_1_1
43    default 200 if ESP32_REV_MIN_2
44    default 300 if ESP32_REV_MIN_3
45    default 301 if ESP32_REV_MIN_3_1
46
47config ESP_REV_MIN_FULL
48    int
49    default ESP32_REV_MIN_FULL
50
51    #
52    # MAX Revision
53    #
54
55    comment "Maximum Supported ESP32 Revision (Rev v3.99)"
56    # Maximum revision that IDF supports.
57    # It can not be changed by user.
58    # Only Espressif can change it when a new version will be supported in IDF.
59    # Supports all chips starting from ESP32_REV_MIN_FULL to ESP32_REV_MAX_FULL
60
61config ESP32_REV_MAX_FULL
62    int
63    default 399
64    # keep in sync the "Maximum Supported Revision" description with this value
65
66config ESP_REV_MAX_FULL
67    int
68    default ESP32_REV_MAX_FULL
69