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
fec607aa
Commit
fec607aa
authored
Dec 06, 2011
by
Arnd Bergmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'imx/fix-irqdomain' of
git://git.linaro.org/people/shawnguo/linux-2.6
into fixes
parents
e6b6edf2
04aafd71
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
14 deletions
+19
-14
arch/arm/mach-imx/mach-imx6q.c
arch/arm/mach-imx/mach-imx6q.c
+5
-4
arch/arm/mach-mx5/imx51-dt.c
arch/arm/mach-mx5/imx51-dt.c
+7
-5
arch/arm/mach-mx5/imx53-dt.c
arch/arm/mach-mx5/imx53-dt.c
+7
-5
No files found.
arch/arm/mach-imx/mach-imx6q.c
View file @
fec607aa
...
...
@@ -37,14 +37,15 @@ static void __init imx6q_map_io(void)
imx6q_clock_map_io
();
}
static
void
__init
imx6q_gpio_add_irq_domain
(
struct
device_node
*
np
,
static
int
__init
imx6q_gpio_add_irq_domain
(
struct
device_node
*
np
,
struct
device_node
*
interrupt_parent
)
{
static
int
gpio_irq_base
=
MXC_GPIO_IRQ_START
+
ARCH_NR_GPIOS
-
32
*
7
;
/* imx6q gets 7 gpio ports */
static
int
gpio_irq_base
=
MXC_GPIO_IRQ_START
+
ARCH_NR_GPIOS
;
gpio_irq_base
-=
32
;
irq_domain_add_simple
(
np
,
gpio_irq_base
);
gpio_irq_base
+=
32
;
return
0
;
}
static
const
struct
of_device_id
imx6q_irq_match
[]
__initconst
=
{
...
...
arch/arm/mach-mx5/imx51-dt.c
View file @
fec607aa
...
...
@@ -44,20 +44,22 @@ static const struct of_dev_auxdata imx51_auxdata_lookup[] __initconst = {
{
/* sentinel */
}
};
static
void
__init
imx51_tzic_add_irq_domain
(
struct
device_node
*
np
,
static
int
__init
imx51_tzic_add_irq_domain
(
struct
device_node
*
np
,
struct
device_node
*
interrupt_parent
)
{
irq_domain_add_simple
(
np
,
0
);
return
0
;
}
static
void
__init
imx51_gpio_add_irq_domain
(
struct
device_node
*
np
,
static
int
__init
imx51_gpio_add_irq_domain
(
struct
device_node
*
np
,
struct
device_node
*
interrupt_parent
)
{
static
int
gpio_irq_base
=
MXC_GPIO_IRQ_START
+
ARCH_NR_GPIOS
-
32
*
4
;
/* imx51 gets 4 gpio ports */
static
int
gpio_irq_base
=
MXC_GPIO_IRQ_START
+
ARCH_NR_GPIOS
;
gpio_irq_base
-=
32
;
irq_domain_add_simple
(
np
,
gpio_irq_base
);
gpio_irq_base
+=
32
;
return
0
;
}
static
const
struct
of_device_id
imx51_irq_match
[]
__initconst
=
{
...
...
arch/arm/mach-mx5/imx53-dt.c
View file @
fec607aa
...
...
@@ -48,20 +48,22 @@ static const struct of_dev_auxdata imx53_auxdata_lookup[] __initconst = {
{
/* sentinel */
}
};
static
void
__init
imx53_tzic_add_irq_domain
(
struct
device_node
*
np
,
static
int
__init
imx53_tzic_add_irq_domain
(
struct
device_node
*
np
,
struct
device_node
*
interrupt_parent
)
{
irq_domain_add_simple
(
np
,
0
);
return
0
;
}
static
void
__init
imx53_gpio_add_irq_domain
(
struct
device_node
*
np
,
static
int
__init
imx53_gpio_add_irq_domain
(
struct
device_node
*
np
,
struct
device_node
*
interrupt_parent
)
{
static
int
gpio_irq_base
=
MXC_GPIO_IRQ_START
+
ARCH_NR_GPIOS
-
32
*
7
;
/* imx53 gets 7 gpio ports */
static
int
gpio_irq_base
=
MXC_GPIO_IRQ_START
+
ARCH_NR_GPIOS
;
gpio_irq_base
-=
32
;
irq_domain_add_simple
(
np
,
gpio_irq_base
);
gpio_irq_base
+=
32
;
return
0
;
}
static
const
struct
of_device_id
imx53_irq_match
[]
__initconst
=
{
...
...
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