@@ -8,88 +8,90 @@ if ARCH_CHIP_ESP32P4
88source "arch/risc-v/src/common/espressif/Kconfig"
99
1010config ESP32P4_SELECTS_REV_LESS_V3
11- bool "Select ESP32-P4 revisions <3.0 (No >=3.x Support)"
12- default n
13- ---help---
14- Select this option to support ESP32-P4 revisions 0.x and 1.x.
15- Revisions higher than 3.0 (included) and revisions less than 3.0
16- have huge hardware difference.
17- Revisions higher than 3.0 (included) is not compatible with 0.x and 1.x.
11+ bool "Select ESP32-P4 revisions <3.0 (No >=3.x Support)"
12+ default n
13+ ---help---
14+ Select this option to support ESP32-P4 revisions 0.x and 1.x.
15+ Revisions higher than 3.0 (included) and revisions less than 3.0
16+ have huge hardware difference.
17+ Revisions higher than 3.0 (included) is not compatible with 0.x and 1.x.
1818
1919choice ESP32P4_REV_MIN
20- prompt "Minimum Supported ESP32-P4 Revision"
21- default ESP32P4_REV_MIN_1
22- ---help---
23- Required minimum chip revision. ESP-IDF will check for it and
24- reject to boot if the chip revision fails the check.
25- This ensures the chip used will have some modifications (features, or bugfixes).
20+ prompt "Minimum Supported ESP32-P4 Revision"
21+ default ESP32P4_REV_MIN_1
22+ ---help---
23+ Required minimum chip revision. ESP-IDF will check for it and
24+ reject to boot if the chip revision fails the check.
25+ This ensures the chip used will have some modifications (features, or bugfixes).
2626
27- The complied binary will only support chips above this revision,
28- this will also help to reduce binary size.
27+ The complied binary will only support chips above this revision,
28+ this will also help to reduce binary size.
2929
3030config ESP32P4_REV_MIN_0
31- depends on ESP32P4_SELECTS_REV_LESS_V3
32- bool "Rev v0.0"
31+ depends on ESP32P4_SELECTS_REV_LESS_V3
32+ bool "Rev v0.0"
3333
3434config ESP32P4_REV_MIN_1
35- depends on ESP32P4_SELECTS_REV_LESS_V3
36- bool "Rev v0.1"
35+ depends on ESP32P4_SELECTS_REV_LESS_V3
36+ bool "Rev v0.1"
3737
3838config ESP32P4_REV_MIN_100
39- depends on ESP32P4_SELECTS_REV_LESS_V3
40- bool "Rev v1.0"
39+ depends on ESP32P4_SELECTS_REV_LESS_V3
40+ bool "Rev v1.0"
4141
4242config ESP32P4_REV_MIN_300
43- bool "Rev v3.0"
44- depends on !ESP32P4_SELECTS_REV_LESS_V3
43+ bool "Rev v3.0"
44+ depends on !ESP32P4_SELECTS_REV_LESS_V3
4545
46- endchoice
46+ endchoice # ESP32P4_REV_MIN
4747
4848config ESP32P4_REV_MIN_FULL
49- int
50- default 0 if ESP32P4_REV_MIN_0
51- default 1 if ESP32P4_REV_MIN_1
52- default 100 if ESP32P4_REV_MIN_100
53- default 300 if ESP32P4_REV_MIN_300
49+ int
50+ default 0 if ESP32P4_REV_MIN_0
51+ default 1 if ESP32P4_REV_MIN_1
52+ default 100 if ESP32P4_REV_MIN_100
53+ default 300 if ESP32P4_REV_MIN_300
5454
5555config ESP_REV_MIN_FULL
56- int
57- default ESP32P4_REV_MIN_FULL
56+ int
57+ default ESP32P4_REV_MIN_FULL
5858
5959config ESP32P4_REV_MAX_FULL
60- int
61- default 399 if !ESP32P4_SELECTS_REV_LESS_V3
62- default 199 if ESP32P4_SELECTS_REV_LESS_V3
63- # keep in sync the "Maximum Supported Revision" description with this value
60+ int
61+ default 399 if !ESP32P4_SELECTS_REV_LESS_V3
62+ default 199 if ESP32P4_SELECTS_REV_LESS_V3
63+
64+ # keep in sync the "Maximum Supported Revision" description with this value
6465
6566config ESP_REV_MAX_FULL
66- int
67- default ESP32P4_REV_MAX_FULL
67+ int
68+ default ESP32P4_REV_MAX_FULL
6869
6970config ESP_EFUSE_BLOCK_REV_MIN_FULL
70- int "Minimum Supported ESP32-P4 eFuse Block Revision"
71- default 0
72- ---help---
73- Required minimum eFuse Block revision. ESP-IDF will check it at the 2nd bootloader stage
74- whether the current image can work correctly for this eFuse Block revision.
75- So that to avoid running an incompatible image on a SoC that contains breaking change in the eFuse Block.
76- If you want to update this value to run the image that not compatible with the current eFuse Block revision,
77- please contact to Espressif's business team for details:
78- https://www.espressif.com.cn/en/contact-us/sales-questions
71+ int "Minimum Supported ESP32-P4 eFuse Block Revision"
72+ default 0
73+ ---help---
74+ Required minimum eFuse Block revision. ESP-IDF will check it at the 2nd bootloader stage
75+ whether the current image can work correctly for this eFuse Block revision.
76+ So that to avoid running an incompatible image on a SoC that contains breaking change in the eFuse Block.
77+ If you want to update this value to run the image that not compatible with the current eFuse Block revision,
78+ please contact to Espressif's business team for details:
79+ https://www.espressif.com.cn/en/contact-us/sales-questions
7980
8081config ESP_EFUSE_BLOCK_REV_MAX_FULL
81- int
82- default 199
83- comment "Maximum Supported ESP32-P4 eFuse Block Revision (eFuse Block Rev v0.99)"
84- # The revision in the comment must correspond to the default value of ESP_EFUSE_BLOCK_REV_MAX_FULL
82+ int
83+ default 199
84+ comment "Maximum Supported ESP32-P4 eFuse Block Revision (eFuse Block Rev v0.99)"
85+
86+ # The revision in the comment must correspond to the default value of ESP_EFUSE_BLOCK_REV_MAX_FULL
8587
8688endif # ARCH_CHIP_ESP32P4
8789
8890config P4_REV3_MSPI_CRASH_AFTER_POWER_UP_WORKAROUND
89- bool
90- default y if ESP32P4_REV_MIN_300
91+ bool
92+ default y if ESP32P4_REV_MIN_300
9193
9294config P4_REV3_MSPI_WORKAROUND_SIZE
93- hex
94- default 0x100 if ESP32P4_REV_MIN_300
95- default 0
95+ hex
96+ default 0x100 if ESP32P4_REV_MIN_300
97+ default 0
0 commit comments