Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
ae8a5348
Commit
ae8a5348
authored
Apr 25, 2008
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: r7780rp: Kill off unneded ifdefs for irq setup.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
e305ec80
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
27 deletions
+7
-27
arch/sh/boards/renesas/r7780rp/irq-r7780mp.c
arch/sh/boards/renesas/r7780rp/irq-r7780mp.c
+1
-1
arch/sh/boards/renesas/r7780rp/irq-r7780rp.c
arch/sh/boards/renesas/r7780rp/irq-r7780rp.c
+1
-1
arch/sh/boards/renesas/r7780rp/irq-r7785rp.c
arch/sh/boards/renesas/r7780rp/irq-r7785rp.c
+1
-1
arch/sh/boards/renesas/r7780rp/setup.c
arch/sh/boards/renesas/r7780rp/setup.c
+3
-21
include/asm-sh/r7780rp.h
include/asm-sh/r7780rp.h
+1
-3
No files found.
arch/sh/boards/renesas/r7780rp/irq-r7780mp.c
View file @
ae8a5348
...
...
@@ -62,7 +62,7 @@ static unsigned char irl2irq[HL_NR_IRL] __initdata = {
static
DECLARE_INTC_DESC
(
intc_desc
,
"r7780mp"
,
vectors
,
NULL
,
mask_registers
,
NULL
,
NULL
);
unsigned
char
*
__init
highlander_
init_irq_r7780m
p
(
void
)
unsigned
char
*
__init
highlander_
plat_irq_setu
p
(
void
)
{
if
((
ctrl_inw
(
0xa4000700
)
&
0xf000
)
==
0x2000
)
{
printk
(
KERN_INFO
"Using r7780mp interrupt controller.
\n
"
);
...
...
arch/sh/boards/renesas/r7780rp/irq-r7780rp.c
View file @
ae8a5348
...
...
@@ -55,7 +55,7 @@ static unsigned char irl2irq[HL_NR_IRL] __initdata = {
static
DECLARE_INTC_DESC
(
intc_desc
,
"r7780rp"
,
vectors
,
NULL
,
mask_registers
,
NULL
,
NULL
);
unsigned
char
*
__init
highlander_
init_irq_r7780r
p
(
void
)
unsigned
char
*
__init
highlander_
plat_irq_setu
p
(
void
)
{
if
(
ctrl_inw
(
0xa5000600
))
{
printk
(
KERN_INFO
"Using r7780rp interrupt controller.
\n
"
);
...
...
arch/sh/boards/renesas/r7780rp/irq-r7785rp.c
View file @
ae8a5348
...
...
@@ -64,7 +64,7 @@ static unsigned char irl2irq[HL_NR_IRL] __initdata = {
static
DECLARE_INTC_DESC
(
intc_desc
,
"r7785rp"
,
vectors
,
NULL
,
mask_registers
,
NULL
,
NULL
);
unsigned
char
*
__init
highlander_
init_irq_r7785r
p
(
void
)
unsigned
char
*
__init
highlander_
plat_irq_setu
p
(
void
)
{
if
((
ctrl_inw
(
0xa4000158
)
&
0xf000
)
!=
0x1000
)
return
NULL
;
...
...
arch/sh/boards/renesas/r7780rp/setup.c
View file @
ae8a5348
...
...
@@ -316,7 +316,7 @@ static void __init highlander_setup(char **cmdline_p)
static
unsigned
char
irl2irq
[
HL_NR_IRL
];
int
highlander_irq_demux
(
int
irq
)
static
int
highlander_irq_demux
(
int
irq
)
{
if
(
irq
>=
HL_NR_IRL
||
!
irl2irq
[
irq
])
return
irq
;
...
...
@@ -324,27 +324,9 @@ int highlander_irq_demux(int irq)
return
irl2irq
[
irq
];
}
void
__init
highlander_init_irq
(
void
)
static
void
__init
highlander_init_irq
(
void
)
{
unsigned
char
*
ucp
=
NULL
;
do
{
#ifdef CONFIG_SH_R7780MP
ucp
=
highlander_init_irq_r7780mp
();
if
(
ucp
)
break
;
#endif
#ifdef CONFIG_SH_R7785RP
ucp
=
highlander_init_irq_r7785rp
();
if
(
ucp
)
break
;
#endif
#ifdef CONFIG_SH_R7780RP
ucp
=
highlander_init_irq_r7780rp
();
if
(
ucp
)
break
;
#endif
}
while
(
0
);
unsigned
char
*
ucp
=
highlander_plat_irq_setup
();
if
(
ucp
)
{
plat_irq_setup_pins
(
IRQ_MODE_IRL3210
);
...
...
include/asm-sh/r7780rp.h
View file @
ae8a5348
...
...
@@ -193,8 +193,6 @@
#define IRQ_SCIF0 (HL_FPGA_IRQ_BASE + 15)
#define IRQ_SCIF1 (HL_FPGA_IRQ_BASE + 16)
unsigned
char
*
highlander_init_irq_r7780mp
(
void
);
unsigned
char
*
highlander_init_irq_r7780rp
(
void
);
unsigned
char
*
highlander_init_irq_r7785rp
(
void
);
unsigned
char
*
highlander_plat_irq_setup
(
void
);
#endif
/* __ASM_SH_RENESAS_R7780RP */
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