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
8ad357ca
Commit
8ad357ca
authored
Nov 29, 2010
by
Lennert Buytenhek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: clps711x: irq_data conversion.
Signed-off-by:
Lennert Buytenhek
<
buytenh@secretlab.ca
>
parent
cf1d4d50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
arch/arm/mach-clps711x/irq.c
arch/arm/mach-clps711x/irq.c
+20
-20
No files found.
arch/arm/mach-clps711x/irq.c
View file @
8ad357ca
...
...
@@ -27,24 +27,24 @@
#include <asm/hardware/clps7111.h>
static
void
int1_mask
(
unsigned
int
irq
)
static
void
int1_mask
(
struct
irq_data
*
d
)
{
u32
intmr1
;
intmr1
=
clps_readl
(
INTMR1
);
intmr1
&=
~
(
1
<<
irq
);
intmr1
&=
~
(
1
<<
d
->
irq
);
clps_writel
(
intmr1
,
INTMR1
);
}
static
void
int1_ack
(
unsigned
int
irq
)
static
void
int1_ack
(
struct
irq_data
*
d
)
{
u32
intmr1
;
intmr1
=
clps_readl
(
INTMR1
);
intmr1
&=
~
(
1
<<
irq
);
intmr1
&=
~
(
1
<<
d
->
irq
);
clps_writel
(
intmr1
,
INTMR1
);
switch
(
irq
)
{
switch
(
d
->
irq
)
{
case
IRQ_CSINT
:
clps_writel
(
0
,
COEOI
);
break
;
case
IRQ_TC1OI
:
clps_writel
(
0
,
TC1EOI
);
break
;
case
IRQ_TC2OI
:
clps_writel
(
0
,
TC2EOI
);
break
;
...
...
@@ -54,56 +54,56 @@ static void int1_ack(unsigned int irq)
}
}
static
void
int1_unmask
(
unsigned
int
irq
)
static
void
int1_unmask
(
struct
irq_data
*
d
)
{
u32
intmr1
;
intmr1
=
clps_readl
(
INTMR1
);
intmr1
|=
1
<<
irq
;
intmr1
|=
1
<<
d
->
irq
;
clps_writel
(
intmr1
,
INTMR1
);
}
static
struct
irq_chip
int1_chip
=
{
.
ack
=
int1_ack
,
.
mask
=
int1_mask
,
.
unmask
=
int1_unmask
,
.
irq_
ack
=
int1_ack
,
.
irq_
mask
=
int1_mask
,
.
irq_unmask
=
int1_unmask
,
};
static
void
int2_mask
(
unsigned
int
irq
)
static
void
int2_mask
(
struct
irq_data
*
d
)
{
u32
intmr2
;
intmr2
=
clps_readl
(
INTMR2
);
intmr2
&=
~
(
1
<<
(
irq
-
16
));
intmr2
&=
~
(
1
<<
(
d
->
irq
-
16
));
clps_writel
(
intmr2
,
INTMR2
);
}
static
void
int2_ack
(
unsigned
int
irq
)
static
void
int2_ack
(
struct
irq_data
*
d
)
{
u32
intmr2
;
intmr2
=
clps_readl
(
INTMR2
);
intmr2
&=
~
(
1
<<
(
irq
-
16
));
intmr2
&=
~
(
1
<<
(
d
->
irq
-
16
));
clps_writel
(
intmr2
,
INTMR2
);
switch
(
irq
)
{
switch
(
d
->
irq
)
{
case
IRQ_KBDINT
:
clps_writel
(
0
,
KBDEOI
);
break
;
}
}
static
void
int2_unmask
(
unsigned
int
irq
)
static
void
int2_unmask
(
struct
irq_data
*
d
)
{
u32
intmr2
;
intmr2
=
clps_readl
(
INTMR2
);
intmr2
|=
1
<<
(
irq
-
16
);
intmr2
|=
1
<<
(
d
->
irq
-
16
);
clps_writel
(
intmr2
,
INTMR2
);
}
static
struct
irq_chip
int2_chip
=
{
.
ack
=
int2_ack
,
.
mask
=
int2_mask
,
.
unmask
=
int2_unmask
,
.
irq_
ack
=
int2_ack
,
.
irq_
mask
=
int2_mask
,
.
irq_unmask
=
int2_unmask
,
};
void
__init
clps711x_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