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
d8e81cbd
Commit
d8e81cbd
authored
Dec 23, 2015
by
Jason Cooper
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'irqchip/sunxi' into irqchip/core
parents
86e57ca7
bbbb03c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
Documentation/devicetree/bindings/interrupt-controller/allwinner,sunxi-nmi.txt
...ree/bindings/interrupt-controller/allwinner,sunxi-nmi.txt
+1
-1
drivers/irqchip/irq-sunxi-nmi.c
drivers/irqchip/irq-sunxi-nmi.c
+13
-0
No files found.
Documentation/devicetree/bindings/interrupt-controller/allwinner,sun
67i-sc
-nmi.txt
→
Documentation/devicetree/bindings/interrupt-controller/allwinner,sun
xi
-nmi.txt
View file @
d8e81cbd
...
...
@@ -4,7 +4,7 @@ Allwinner Sunxi NMI Controller
Required properties:
- compatible : should be "allwinner,sun7i-a20-sc-nmi" or
"allwinner,sun6i-a31-sc-nmi"
"allwinner,sun6i-a31-sc-nmi"
or "allwinner,sun9i-a80-nmi"
- reg : Specifies base physical address and size of the registers.
- interrupt-controller : Identifies the node as an interrupt controller
- #interrupt-cells : Specifies the number of cells needed to encode an
...
...
drivers/irqchip/irq-sunxi-nmi.c
View file @
d8e81cbd
...
...
@@ -50,6 +50,12 @@ static struct sunxi_sc_nmi_reg_offs sun6i_reg_offs = {
.
enable
=
0x34
,
};
static
struct
sunxi_sc_nmi_reg_offs
sun9i_reg_offs
=
{
.
ctrl
=
0x00
,
.
pend
=
0x08
,
.
enable
=
0x04
,
};
static
inline
void
sunxi_sc_nmi_write
(
struct
irq_chip_generic
*
gc
,
u32
off
,
u32
val
)
{
...
...
@@ -207,3 +213,10 @@ static int __init sun7i_sc_nmi_irq_init(struct device_node *node,
return
sunxi_sc_nmi_irq_init
(
node
,
&
sun7i_reg_offs
);
}
IRQCHIP_DECLARE
(
sun7i_sc_nmi
,
"allwinner,sun7i-a20-sc-nmi"
,
sun7i_sc_nmi_irq_init
);
static
int
__init
sun9i_nmi_irq_init
(
struct
device_node
*
node
,
struct
device_node
*
parent
)
{
return
sunxi_sc_nmi_irq_init
(
node
,
&
sun9i_reg_offs
);
}
IRQCHIP_DECLARE
(
sun9i_nmi
,
"allwinner,sun9i-a80-nmi"
,
sun9i_nmi_irq_init
);
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