From ec17cad69da11243487e22d1aee0b9a8e05cbea4 Mon Sep 17 00:00:00 2001 From: zhuyanlin Date: Wed, 4 Aug 2021 18:29:01 +0800 Subject: [PATCH] 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 --- arch/xtensa/include/irq.h | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/arch/xtensa/include/irq.h b/arch/xtensa/include/irq.h index 08b009b576..2a2cdff965 100644 --- a/arch/xtensa/include/irq.h +++ b/arch/xtensa/include/irq.h @@ -42,30 +42,18 @@ #include #include +/* Include chip-specific IRQ definitions (including IRQ numbers) */ + +#include + /* Include architecture-specific IRQ definitions */ #ifdef CONFIG_ARCH_FAMILY_LX6 # include -/* Include implementation-specific IRQ definitions (including IRQ numbers) */ - -# ifdef CONFIG_ARCH_CHIP_ESP32 -# include -# else -# error Unknown LX6 implementation -# endif - #elif CONFIG_ARCH_FAMILY_LX7 # include -/* Include implementation-specific IRQ definitions (including IRQ numbers) */ - -# ifdef CONFIG_ARCH_CHIP_ESP32S2 -# include -# else -# error Unknown LX7 implementation -# endif - #else # error Unknown XTENSA architecture #endif