arch:xtensa:include chip/irq.h instead of depend on chip config.

Many duplicate code when more chips add-in,
follow arch/arm/include/irq.h method, use chip/irq.h instead.

Change-Id: I42f516c1dda68e973939c669f627c457cd0bc65e
This commit is contained in:
zhuyanlin 2021-08-04 18:29:01 +08:00 committed by Abdelatif Guettouche
parent 8f7ad8f9ce
commit ec17cad69d
1 changed files with 4 additions and 16 deletions

View File

@ -42,30 +42,18 @@
#include <arch/xtensa/xtensa_corebits.h> #include <arch/xtensa/xtensa_corebits.h>
#include <arch/xtensa/xtensa_coproc.h> #include <arch/xtensa/xtensa_coproc.h>
/* Include chip-specific IRQ definitions (including IRQ numbers) */
#include <arch/chip/irq.h>
/* Include architecture-specific IRQ definitions */ /* Include architecture-specific IRQ definitions */
#ifdef CONFIG_ARCH_FAMILY_LX6 #ifdef CONFIG_ARCH_FAMILY_LX6
# include <arch/lx6/irq.h> # include <arch/lx6/irq.h>
/* Include implementation-specific IRQ definitions (including IRQ numbers) */
# ifdef CONFIG_ARCH_CHIP_ESP32
# include <arch/esp32/irq.h>
# else
# error Unknown LX6 implementation
# endif
#elif CONFIG_ARCH_FAMILY_LX7 #elif CONFIG_ARCH_FAMILY_LX7
# include <arch/lx7/irq.h> # include <arch/lx7/irq.h>
/* Include implementation-specific IRQ definitions (including IRQ numbers) */
# ifdef CONFIG_ARCH_CHIP_ESP32S2
# include <arch/esp32s2/irq.h>
# else
# error Unknown LX7 implementation
# endif
#else #else
# error Unknown XTENSA architecture # error Unknown XTENSA architecture
#endif #endif