Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: interrupt_controller: esp32c6: reserve IRQ 1 for WiFi #83213

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions drivers/interrupt_controller/intc_esp32c3.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,20 @@ LOG_MODULE_REGISTER(intc_esp32c3, CONFIG_LOG_DEFAULT_LEVEL);
#define ESP32C6_INTC_SRCS_PER_IRQ 2
#define ESP32C6_INTC_AVAILABLE_IRQS 31

/* For ESP32C6 only CPU peripheral interrupts number
* 1, 2, 5, 6, 8 ~ 31 are available.
* IRQ 31 is reserved for disabled interrupts
/* Interrupt overview for ESP32C6:
* - 0, 3, 4, and 7 are used by the CPU for core-local interrupts (CLINT)
* - 1 is used for Wi-Fi in Espressif HAL
* - 2, 5, 6, 8 .. 31 are available for Zephyr
* - 31 is reserved for disabled interrupts
*/
static uint8_t esp_intr_irq_alloc[ESP32C6_INTC_AVAILABLE_IRQS][ESP32C6_INTC_SRCS_PER_IRQ] = {
[0] = {IRQ_NA, IRQ_NA},
[1] = {IRQ_NA, IRQ_NA},
[2] = {IRQ_FREE, IRQ_FREE},
[3] = {IRQ_NA, IRQ_NA},
[4] = {IRQ_NA, IRQ_NA},
[5 ... 6] = {IRQ_FREE, IRQ_FREE},
[7] = {IRQ_NA, IRQ_NA},
martinjaeger marked this conversation as resolved.
Show resolved Hide resolved
[1 ... 2] = {IRQ_FREE, IRQ_FREE},
[5 ... 6] = {IRQ_FREE, IRQ_FREE},
[8 ... 30] = {IRQ_FREE, IRQ_FREE}
};
#endif
Expand Down
Loading