Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
994fa1c8
Commit
994fa1c8
authored
Aug 13, 2018
by
Max Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xtensa: move PLATFORM_NR_IRQS to Kconfig
Signed-off-by:
Max Filippov
<
jcmvbkbc@gmail.com
>
parent
aea731c8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
10 deletions
+7
-10
arch/xtensa/Kconfig
arch/xtensa/Kconfig
+4
-0
arch/xtensa/include/asm/irq.h
arch/xtensa/include/asm/irq.h
+3
-2
arch/xtensa/platforms/xt2000/include/platform/hardware.h
arch/xtensa/platforms/xt2000/include/platform/hardware.h
+0
-4
arch/xtensa/platforms/xtfpga/include/platform/hardware.h
arch/xtensa/platforms/xtfpga/include/platform/hardware.h
+0
-4
No files found.
arch/xtensa/Kconfig
View file @
994fa1c8
...
...
@@ -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]"
...
...
arch/xtensa/include/asm/irq.h
View file @
994fa1c8
...
...
@@ -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
...
...
arch/xtensa/platforms/xt2000/include/platform/hardware.h
View file @
994fa1c8
...
...
@@ -17,10 +17,6 @@
#include <variant/core.h>
/*
* Number of platform IRQs
*/
#define PLATFORM_NR_IRQS 3
/*
* On-board components.
*/
...
...
arch/xtensa/platforms/xtfpga/include/platform/hardware.h
View file @
994fa1c8
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment