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
e981a302
Commit
e981a302
authored
Nov 29, 2010
by
Lennert Buytenhek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: mx3: irq_data conversion.
Signed-off-by:
Lennert Buytenhek
<
buytenh@secretlab.ca
>
parent
0f86ee08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
arch/arm/mach-mx3/mach-mx31ads.c
arch/arm/mach-mx3/mach-mx31ads.c
+9
-9
No files found.
arch/arm/mach-mx3/mach-mx31ads.c
View file @
e981a302
...
...
@@ -162,9 +162,9 @@ static void mx31ads_expio_irq_handler(u32 irq, struct irq_desc *desc)
* Disable an expio pin's interrupt by setting the bit in the imr.
* @param irq an expio virtual irq number
*/
static
void
expio_mask_irq
(
u32
irq
)
static
void
expio_mask_irq
(
struct
irq_data
*
d
)
{
u32
expio
=
MXC_IRQ_TO_EXPIO
(
irq
);
u32
expio
=
MXC_IRQ_TO_EXPIO
(
d
->
irq
);
/* mask the interrupt */
__raw_writew
(
1
<<
expio
,
PBC_INTMASK_CLEAR_REG
);
__raw_readw
(
PBC_INTMASK_CLEAR_REG
);
...
...
@@ -174,9 +174,9 @@ static void expio_mask_irq(u32 irq)
* Acknowledge an expanded io pin's interrupt by clearing the bit in the isr.
* @param irq an expanded io virtual irq number
*/
static
void
expio_ack_irq
(
u32
irq
)
static
void
expio_ack_irq
(
struct
irq_data
*
d
)
{
u32
expio
=
MXC_IRQ_TO_EXPIO
(
irq
);
u32
expio
=
MXC_IRQ_TO_EXPIO
(
d
->
irq
);
/* clear the interrupt status */
__raw_writew
(
1
<<
expio
,
PBC_INTSTATUS_REG
);
}
...
...
@@ -185,18 +185,18 @@ static void expio_ack_irq(u32 irq)
* Enable a expio pin's interrupt by clearing the bit in the imr.
* @param irq a expio virtual irq number
*/
static
void
expio_unmask_irq
(
u32
irq
)
static
void
expio_unmask_irq
(
struct
irq_data
*
d
)
{
u32
expio
=
MXC_IRQ_TO_EXPIO
(
irq
);
u32
expio
=
MXC_IRQ_TO_EXPIO
(
d
->
irq
);
/* unmask the interrupt */
__raw_writew
(
1
<<
expio
,
PBC_INTMASK_SET_REG
);
}
static
struct
irq_chip
expio_irq_chip
=
{
.
name
=
"EXPIO(CPLD)"
,
.
ack
=
expio_ack_irq
,
.
mask
=
expio_mask_irq
,
.
unmask
=
expio_unmask_irq
,
.
irq_
ack
=
expio_ack_irq
,
.
irq_
mask
=
expio_mask_irq
,
.
irq_
unmask
=
expio_unmask_irq
,
};
static
void
__init
mx31ads_init_expio
(
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