Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-seco-imx
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Jira
Code
Merge requests
11
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clea OS
bsp
nxp
linux-seco-imx
Commits
cb55bc5f
Commit
cb55bc5f
authored
14 years ago
by
Lennert Buytenhek
Browse files
Options
Downloads
Patches
Plain Diff
ARM: stmp37xx: irq_data conversion.
Signed-off-by:
Lennert Buytenhek
<
buytenh@secretlab.ca
>
parent
7940848a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/arm/mach-stmp37xx/stmp37xx.c
+12
-12
12 additions, 12 deletions
arch/arm/mach-stmp37xx/stmp37xx.c
with
12 additions
and
12 deletions
arch/arm/mach-stmp37xx/stmp37xx.c
+
12
−
12
View file @
cb55bc5f
...
@@ -43,11 +43,11 @@
...
@@ -43,11 +43,11 @@
/*
/*
* IRQ handling
* IRQ handling
*/
*/
static
void
stmp37xx_ack_irq
(
unsigned
int
irq
)
static
void
stmp37xx_ack_irq
(
struct
irq_data
*
d
)
{
{
/* Disable IRQ */
/* Disable IRQ */
stmp3xxx_clearl
(
0x04
<<
((
irq
%
4
)
*
8
),
stmp3xxx_clearl
(
0x04
<<
((
d
->
irq
%
4
)
*
8
),
REGS_ICOLL_BASE
+
HW_ICOLL_PRIORITYn
+
irq
/
4
*
0x10
);
REGS_ICOLL_BASE
+
HW_ICOLL_PRIORITYn
+
d
->
irq
/
4
*
0x10
);
/* ACK current interrupt */
/* ACK current interrupt */
__raw_writel
(
1
,
REGS_ICOLL_BASE
+
HW_ICOLL_LEVELACK
);
__raw_writel
(
1
,
REGS_ICOLL_BASE
+
HW_ICOLL_LEVELACK
);
...
@@ -56,24 +56,24 @@ static void stmp37xx_ack_irq(unsigned int irq)
...
@@ -56,24 +56,24 @@ static void stmp37xx_ack_irq(unsigned int irq)
(
void
)
__raw_readl
(
REGS_ICOLL_BASE
+
HW_ICOLL_STAT
);
(
void
)
__raw_readl
(
REGS_ICOLL_BASE
+
HW_ICOLL_STAT
);
}
}
static
void
stmp37xx_mask_irq
(
unsigned
int
irq
)
static
void
stmp37xx_mask_irq
(
struct
irq_data
*
d
)
{
{
/* IRQ disable */
/* IRQ disable */
stmp3xxx_clearl
(
0x04
<<
((
irq
%
4
)
*
8
),
stmp3xxx_clearl
(
0x04
<<
((
d
->
irq
%
4
)
*
8
),
REGS_ICOLL_BASE
+
HW_ICOLL_PRIORITYn
+
irq
/
4
*
0x10
);
REGS_ICOLL_BASE
+
HW_ICOLL_PRIORITYn
+
d
->
irq
/
4
*
0x10
);
}
}
static
void
stmp37xx_unmask_irq
(
unsigned
int
irq
)
static
void
stmp37xx_unmask_irq
(
struct
irq_data
*
d
)
{
{
/* IRQ enable */
/* IRQ enable */
stmp3xxx_setl
(
0x04
<<
((
irq
%
4
)
*
8
),
stmp3xxx_setl
(
0x04
<<
((
d
->
irq
%
4
)
*
8
),
REGS_ICOLL_BASE
+
HW_ICOLL_PRIORITYn
+
irq
/
4
*
0x10
);
REGS_ICOLL_BASE
+
HW_ICOLL_PRIORITYn
+
d
->
irq
/
4
*
0x10
);
}
}
static
struct
irq_chip
stmp37xx_chip
=
{
static
struct
irq_chip
stmp37xx_chip
=
{
.
ack
=
stmp37xx_ack_irq
,
.
irq_
ack
=
stmp37xx_ack_irq
,
.
mask
=
stmp37xx_mask_irq
,
.
irq_
mask
=
stmp37xx_mask_irq
,
.
unmask
=
stmp37xx_unmask_irq
,
.
irq_
unmask
=
stmp37xx_unmask_irq
,
};
};
void
__init
stmp37xx_init_irq
(
void
)
void
__init
stmp37xx_init_irq
(
void
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment