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
b6de943b
Commit
b6de943b
authored
Sep 20, 2011
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM i.MX avic: add handle_irq function
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
fcb8ce5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
arch/arm/plat-mxc/avic.c
arch/arm/plat-mxc/avic.c
+13
-0
arch/arm/plat-mxc/include/mach/common.h
arch/arm/plat-mxc/include/mach/common.h
+10
-0
No files found.
arch/arm/plat-mxc/avic.c
View file @
b6de943b
...
@@ -116,6 +116,19 @@ static struct mxc_irq_chip mxc_avic_chip = {
...
@@ -116,6 +116,19 @@ static struct mxc_irq_chip mxc_avic_chip = {
#endif
#endif
};
};
asmlinkage
void
__exception_irq_entry
avic_handle_irq
(
struct
pt_regs
*
regs
)
{
u32
nivector
;
do
{
nivector
=
__raw_readl
(
avic_base
+
AVIC_NIVECSR
)
>>
16
;
if
(
nivector
==
0xffff
)
break
;
handle_IRQ
(
nivector
,
regs
);
}
while
(
1
);
}
/*
/*
* This function initializes the AVIC hardware and disables all the
* This function initializes the AVIC hardware and disables all the
* interrupts. It registers the interrupt enable and disable functions
* interrupts. It registers the interrupt enable and disable functions
...
...
arch/arm/plat-mxc/include/mach/common.h
View file @
b6de943b
...
@@ -72,4 +72,14 @@ extern void mxc_arch_reset_init(void __iomem *);
...
@@ -72,4 +72,14 @@ extern void mxc_arch_reset_init(void __iomem *);
extern
void
mx51_efikamx_reset
(
void
);
extern
void
mx51_efikamx_reset
(
void
);
extern
int
mx53_revision
(
void
);
extern
int
mx53_revision
(
void
);
extern
int
mx53_display_revision
(
void
);
extern
int
mx53_display_revision
(
void
);
void
avic_handle_irq
(
struct
pt_regs
*
);
#define imx1_handle_irq avic_handle_irq
#define imx21_handle_irq avic_handle_irq
#define imx25_handle_irq avic_handle_irq
#define imx27_handle_irq avic_handle_irq
#define imx31_handle_irq avic_handle_irq
#define imx35_handle_irq avic_handle_irq
#endif
#endif
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