esp32: drivers: interrupt_controller: make it common for xtensa socs

by including interrupt allocation feature whenever an Xtensa-based
Espressif SoC is selected.

Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
Glauber Maroto Ferreira 2021-08-20 20:12:07 -03:00 committed by Anas Nashif
parent 2689a6ee0a
commit 489c012198
2 changed files with 11 additions and 5 deletions

View File

@ -20,7 +20,6 @@ zephyr_library_sources_ifdef(CONFIG_PLIC intc_plic.c)
zephyr_library_sources_ifdef(CONFIG_RV32M1_INTMUX intc_rv32m1_intmux.c)
zephyr_library_sources_ifdef(CONFIG_SAM0_EIC intc_sam0_eic.c)
zephyr_library_sources_ifdef(CONFIG_SHARED_IRQ intc_shared_irq.c)
zephyr_library_sources_ifdef(CONFIG_SOC_ESP32 intc_esp32.c)
zephyr_library_sources_ifdef(CONFIG_SOC_ESP32S2 intc_esp32.c)
zephyr_library_sources_ifdef(CONFIG_INTC_ESP32 intc_esp32.c)
zephyr_library_sources_ifdef(CONFIG_SWERV_PIC intc_swerv_pic.c)
zephyr_library_sources_ifdef(CONFIG_VEXRISCV_LITEX_IRQ intc_vexriscv_litex.c)

View File

@ -1,11 +1,18 @@
# ESP32 Interrupt Allocator messages configuration
# Espressif's Interrupt Allocator driver for Xtensa SoCs
# Copyright (c) 2021 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0
config INTC_ESP32
bool "Interrupt allocator for Xtensa-based Espressif SoCs"
default y if SOC_ESP32 || SOC_ESP32S2
help
Enable custom interrupt allocator for Espressif SoCs based on Xtensa
architecture.
config INTC_ESP32_DECISIONS_LOG
bool "Enables ESP32 interrupt allocator logging"
depends on SOC_ESP32 || SOC_ESP32S2
bool "Enables Espressif's interrupt allocator logging"
depends on INTC_ESP32
select LOG
help
Enable this option to visualize information on decisions made by the