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
8afaada2
Commit
8afaada2
authored
Jun 15, 2009
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mxc gpio: CONFIG_ARCH_* -> cpu_is_*()
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
61b032ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
arch/arm/plat-mxc/gpio.c
arch/arm/plat-mxc/gpio.c
+11
-14
No files found.
arch/arm/plat-mxc/gpio.c
View file @
8afaada2
...
@@ -162,7 +162,6 @@ static void mxc_gpio_irq_handler(struct mxc_gpio_port *port, u32 irq_stat)
...
@@ -162,7 +162,6 @@ static void mxc_gpio_irq_handler(struct mxc_gpio_port *port, u32 irq_stat)
}
}
}
}
#if defined(CONFIG_ARCH_MX3) || defined(CONFIG_ARCH_MX1)
/* MX1 and MX3 has one interrupt *per* gpio port */
/* MX1 and MX3 has one interrupt *per* gpio port */
static
void
mx3_gpio_irq_handler
(
u32
irq
,
struct
irq_desc
*
desc
)
static
void
mx3_gpio_irq_handler
(
u32
irq
,
struct
irq_desc
*
desc
)
{
{
...
@@ -174,9 +173,7 @@ static void mx3_gpio_irq_handler(u32 irq, struct irq_desc *desc)
...
@@ -174,9 +173,7 @@ static void mx3_gpio_irq_handler(u32 irq, struct irq_desc *desc)
mxc_gpio_irq_handler
(
port
,
irq_stat
);
mxc_gpio_irq_handler
(
port
,
irq_stat
);
}
}
#endif
#ifdef CONFIG_ARCH_MX2
/* MX2 has one interrupt *for all* gpio ports */
/* MX2 has one interrupt *for all* gpio ports */
static
void
mx2_gpio_irq_handler
(
u32
irq
,
struct
irq_desc
*
desc
)
static
void
mx2_gpio_irq_handler
(
u32
irq
,
struct
irq_desc
*
desc
)
{
{
...
@@ -195,7 +192,6 @@ static void mx2_gpio_irq_handler(u32 irq, struct irq_desc *desc)
...
@@ -195,7 +192,6 @@ static void mx2_gpio_irq_handler(u32 irq, struct irq_desc *desc)
mxc_gpio_irq_handler
(
&
port
[
i
],
irq_stat
);
mxc_gpio_irq_handler
(
&
port
[
i
],
irq_stat
);
}
}
}
}
#endif
static
struct
irq_chip
gpio_irq_chip
=
{
static
struct
irq_chip
gpio_irq_chip
=
{
.
ack
=
gpio_ack_irq
,
.
ack
=
gpio_ack_irq
,
...
@@ -284,17 +280,18 @@ int __init mxc_gpio_init(struct mxc_gpio_port *port, int cnt)
...
@@ -284,17 +280,18 @@ int __init mxc_gpio_init(struct mxc_gpio_port *port, int cnt)
/* its a serious configuration bug when it fails */
/* its a serious configuration bug when it fails */
BUG_ON
(
gpiochip_add
(
&
port
[
i
].
chip
)
<
0
);
BUG_ON
(
gpiochip_add
(
&
port
[
i
].
chip
)
<
0
);
#if defined(CONFIG_ARCH_MX3) || defined(CONFIG_ARCH_MX1)
if
(
cpu_is_mx1
()
||
cpu_is_mx3
())
{
/* setup one handler for each entry */
/* setup one handler for each entry */
set_irq_chained_handler
(
port
[
i
].
irq
,
mx3_gpio_irq_handler
);
set_irq_chained_handler
(
port
[
i
].
irq
,
mx3_gpio_irq_handler
);
set_irq_data
(
port
[
i
].
irq
,
&
port
[
i
]);
set_irq_data
(
port
[
i
].
irq
,
&
port
[
i
]);
#endif
}
}
if
(
cpu_is_mx2
())
{
/* setup one handler for all GPIO interrupts */
set_irq_chained_handler
(
port
[
0
].
irq
,
mx2_gpio_irq_handler
);
set_irq_data
(
port
[
0
].
irq
,
port
);
}
}
#ifdef CONFIG_ARCH_MX2
/* setup one handler for all GPIO interrupts */
set_irq_chained_handler
(
port
[
0
].
irq
,
mx2_gpio_irq_handler
);
set_irq_data
(
port
[
0
].
irq
,
port
);
#endif
return
0
;
return
0
;
}
}
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