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
cb162e78
Commit
cb162e78
authored
Sep 30, 2005
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: OMAP: Enable GPIO clocks for 24xx
Enable GPIO clocks for 24xx
parent
287d8b5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
arch/arm/plat-omap/gpio.c
arch/arm/plat-omap/gpio.c
+19
-6
No files found.
arch/arm/plat-omap/gpio.c
View file @
cb162e78
...
@@ -774,7 +774,7 @@ static void gpio_irq_handler(unsigned int irq, struct irqdesc *desc,
...
@@ -774,7 +774,7 @@ static void gpio_irq_handler(unsigned int irq, struct irqdesc *desc,
d
=
irq_desc
+
gpio_irq
;
d
=
irq_desc
+
gpio_irq
;
desc_handle_irq
(
gpio_irq
,
d
,
regs
);
desc_handle_irq
(
gpio_irq
,
d
,
regs
);
}
}
}
}
}
}
static
void
gpio_ack_irq
(
unsigned
int
irq
)
static
void
gpio_ack_irq
(
unsigned
int
irq
)
...
@@ -837,8 +837,9 @@ static struct irqchip mpuio_irq_chip = {
...
@@ -837,8 +837,9 @@ static struct irqchip mpuio_irq_chip = {
.
unmask
=
mpuio_unmask_irq
.
unmask
=
mpuio_unmask_irq
};
};
static
int
initialized
=
0
;
static
int
initialized
;
static
struct
clk
*
gpio_ck
=
NULL
;
static
struct
clk
*
gpio_ick
;
static
struct
clk
*
gpio_fck
;
static
int
__init
_omap_gpio_init
(
void
)
static
int
__init
_omap_gpio_init
(
void
)
{
{
...
@@ -848,11 +849,23 @@ static int __init _omap_gpio_init(void)
...
@@ -848,11 +849,23 @@ static int __init _omap_gpio_init(void)
initialized
=
1
;
initialized
=
1
;
if
(
cpu_is_omap1510
())
{
if
(
cpu_is_omap1510
())
{
gpio_ck
=
clk_get
(
NULL
,
"arm_gpio_ck"
);
gpio_
i
ck
=
clk_get
(
NULL
,
"arm_gpio_ck"
);
if
(
IS_ERR
(
gpio_ck
))
if
(
IS_ERR
(
gpio_
i
ck
))
printk
(
"Could not get arm_gpio_ck
\n
"
);
printk
(
"Could not get arm_gpio_ck
\n
"
);
else
else
clk_use
(
gpio_ck
);
clk_use
(
gpio_ick
);
}
if
(
cpu_is_omap24xx
())
{
gpio_ick
=
clk_get
(
NULL
,
"gpios_ick"
);
if
(
IS_ERR
(
gpio_ick
))
printk
(
"Could not get gpios_ick
\n
"
);
else
clk_use
(
gpio_ick
);
gpio_fck
=
clk_get
(
NULL
,
"gpios_fck"
);
if
(
IS_ERR
(
gpio_ick
))
printk
(
"Could not get gpios_fck
\n
"
);
else
clk_use
(
gpio_fck
);
}
}
#ifdef CONFIG_ARCH_OMAP15XX
#ifdef CONFIG_ARCH_OMAP15XX
...
...
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