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
33651702
Commit
33651702
authored
Sep 28, 2006
by
Juha Yrjola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: OMAP: Enable 24xx GPIO autoidling
Signed-off-by:
Juha Yrjola
<
juha.yrjola@solidboot.com
>
parent
6d2c05e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
arch/arm/plat-omap/gpio.c
arch/arm/plat-omap/gpio.c
+10
-0
No files found.
arch/arm/plat-omap/gpio.c
View file @
33651702
...
@@ -1083,6 +1083,10 @@ static int __init _omap_gpio_init(void)
...
@@ -1083,6 +1083,10 @@ static int __init _omap_gpio_init(void)
if
(
bank
->
method
==
METHOD_GPIO_24XX
)
{
if
(
bank
->
method
==
METHOD_GPIO_24XX
)
{
__raw_writel
(
0x00000000
,
bank
->
base
+
OMAP24XX_GPIO_IRQENABLE1
);
__raw_writel
(
0x00000000
,
bank
->
base
+
OMAP24XX_GPIO_IRQENABLE1
);
__raw_writel
(
0xffffffff
,
bank
->
base
+
OMAP24XX_GPIO_IRQSTATUS1
);
__raw_writel
(
0xffffffff
,
bank
->
base
+
OMAP24XX_GPIO_IRQSTATUS1
);
__raw_writew
(
0x0015
,
bank
->
base
+
OMAP24XX_GPIO_SYSCONFIG
);
/* Initialize interface clock ungated, module enabled */
__raw_writel
(
0
,
bank
->
base
+
OMAP24XX_GPIO_CTRL
);
gpio_count
=
32
;
gpio_count
=
32
;
}
}
...
@@ -1105,6 +1109,12 @@ static int __init _omap_gpio_init(void)
...
@@ -1105,6 +1109,12 @@ static int __init _omap_gpio_init(void)
if
(
cpu_is_omap16xx
())
if
(
cpu_is_omap16xx
())
omap_writel
(
omap_readl
(
ULPD_CAM_CLK_CTRL
)
|
0x04
,
ULPD_CAM_CLK_CTRL
);
omap_writel
(
omap_readl
(
ULPD_CAM_CLK_CTRL
)
|
0x04
,
ULPD_CAM_CLK_CTRL
);
#ifdef CONFIG_ARCH_OMAP24XX
/* Enable autoidle for the OCP interface */
if
(
cpu_is_omap24xx
())
omap_writel
(
1
<<
0
,
0x48019010
);
#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