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
Kirill Smelkov
linux
Commits
7940848a
Commit
7940848a
authored
Nov 29, 2010
by
Lennert Buytenhek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: stmp378x: irq_data conversion.
Signed-off-by:
Lennert Buytenhek
<
buytenh@secretlab.ca
>
parent
aab0c637
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
arch/arm/mach-stmp378x/stmp378x.c
arch/arm/mach-stmp378x/stmp378x.c
+8
-8
No files found.
arch/arm/mach-stmp378x/stmp378x.c
View file @
7940848a
...
...
@@ -47,7 +47,7 @@
/*
* IRQ handling
*/
static
void
stmp378x_ack_irq
(
unsigned
int
irq
)
static
void
stmp378x_ack_irq
(
struct
irq_data
*
d
)
{
/* Tell ICOLL to release IRQ line */
__raw_writel
(
0
,
REGS_ICOLL_BASE
+
HW_ICOLL_VECTOR
);
...
...
@@ -60,24 +60,24 @@ static void stmp378x_ack_irq(unsigned int irq)
(
void
)
__raw_readl
(
REGS_ICOLL_BASE
+
HW_ICOLL_STAT
);
}
static
void
stmp378x_mask_irq
(
unsigned
int
irq
)
static
void
stmp378x_mask_irq
(
struct
irq_data
*
d
)
{
/* IRQ disable */
stmp3xxx_clearl
(
BM_ICOLL_INTERRUPTn_ENABLE
,
REGS_ICOLL_BASE
+
HW_ICOLL_INTERRUPTn
+
irq
*
0x10
);
REGS_ICOLL_BASE
+
HW_ICOLL_INTERRUPTn
+
d
->
irq
*
0x10
);
}
static
void
stmp378x_unmask_irq
(
unsigned
int
irq
)
static
void
stmp378x_unmask_irq
(
struct
irq_data
*
d
)
{
/* IRQ enable */
stmp3xxx_setl
(
BM_ICOLL_INTERRUPTn_ENABLE
,
REGS_ICOLL_BASE
+
HW_ICOLL_INTERRUPTn
+
irq
*
0x10
);
REGS_ICOLL_BASE
+
HW_ICOLL_INTERRUPTn
+
d
->
irq
*
0x10
);
}
static
struct
irq_chip
stmp378x_chip
=
{
.
ack
=
stmp378x_ack_irq
,
.
mask
=
stmp378x_mask_irq
,
.
unmask
=
stmp378x_unmask_irq
,
.
irq_
ack
=
stmp378x_ack_irq
,
.
irq_
mask
=
stmp378x_mask_irq
,
.
irq_unmask
=
stmp378x_unmask_irq
,
};
void
__init
stmp378x_init_irq
(
void
)
...
...
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