mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 07:10:27 +00:00
xtensa: move PLATFORM_NR_IRQS to Kconfig
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
parent
aea731c81f
commit
994fa1c83d
@ -435,6 +435,10 @@ config XTENSA_PLATFORM_XTFPGA
|
||||
|
||||
endchoice
|
||||
|
||||
config PLATFORM_NR_IRQS
|
||||
int
|
||||
default 3 if XTENSA_PLATFORM_XT2000
|
||||
default 0
|
||||
|
||||
config XTENSA_CPU_CLOCK
|
||||
int "CPU clock rate [MHz]"
|
||||
|
@ -12,7 +12,6 @@
|
||||
#define _XTENSA_IRQ_H
|
||||
|
||||
#include <linux/init.h>
|
||||
#include <platform/hardware.h>
|
||||
#include <variant/core.h>
|
||||
|
||||
#ifdef CONFIG_VARIANT_IRQ_SWITCH
|
||||
@ -25,7 +24,9 @@ static inline void variant_irq_disable(unsigned int irq) { }
|
||||
#ifndef VARIANT_NR_IRQS
|
||||
# define VARIANT_NR_IRQS 0
|
||||
#endif
|
||||
#ifndef PLATFORM_NR_IRQS
|
||||
#ifdef CONFIG_PLATFORM_NR_IRQS
|
||||
# define PLATFORM_NR_IRQS CONFIG_PLATFORM_NR_IRQS
|
||||
#else
|
||||
# define PLATFORM_NR_IRQS 0
|
||||
#endif
|
||||
#define XTENSA_NR_IRQS XCHAL_NUM_INTERRUPTS
|
||||
|
@ -17,10 +17,6 @@
|
||||
|
||||
#include <variant/core.h>
|
||||
|
||||
/*
|
||||
* Number of platform IRQs
|
||||
*/
|
||||
#define PLATFORM_NR_IRQS 3
|
||||
/*
|
||||
* On-board components.
|
||||
*/
|
||||
|
@ -17,10 +17,6 @@
|
||||
#ifndef __XTENSA_XTAVNET_HARDWARE_H
|
||||
#define __XTENSA_XTAVNET_HARDWARE_H
|
||||
|
||||
/* Interrupt configuration. */
|
||||
|
||||
#define PLATFORM_NR_IRQS 0
|
||||
|
||||
/* Default assignment of LX60 devices to external interrupts. */
|
||||
|
||||
#ifdef CONFIG_XTENSA_MX
|
||||
|
Loading…
x
Reference in New Issue
Block a user