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
nexedi
linux
Commits
a5a8c31d
Commit
a5a8c31d
authored
Feb 10, 2013
by
Paul Walmsley
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'sg_aess_reset_devel_3.9' and 'omap4_pm_fixes_a_3.9' into omap4_prcm_devel_a_3.9
parents
5cebb23c
cd19010c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
12 deletions
+29
-12
arch/arm/mach-omap2/pm.c
arch/arm/mach-omap2/pm.c
+10
-10
arch/arm/mach-omap2/pm44xx.c
arch/arm/mach-omap2/pm44xx.c
+19
-2
No files found.
arch/arm/mach-omap2/pm.c
View file @
a5a8c31d
...
...
@@ -345,19 +345,19 @@ int __init omap2_common_pm_late_init(void)
* a completely different mechanism.
* Disable this part if a DT blob is available.
*/
if
(
of_have_populated_dt
())
return
0
;
if
(
!
of_have_populated_dt
())
{
/* Init the voltage layer */
omap_pmic_late_init
();
omap_voltage_late_init
();
/* Init the voltage layer */
omap_pmic_late_init
();
omap_voltage_late_init
();
/* Initialize the voltages */
omap3_init_voltages
();
omap4_init_voltages
();
/* Initialize the voltages */
omap3_init_voltages
();
omap4_init_voltages
();
/* Smartreflex device init */
omap_devinit_smartreflex
();
/* Smartreflex device init */
omap_devinit_smartreflex
();
}
#ifdef CONFIG_SUSPEND
suspend_set_ops
(
&
omap_pm_ops
);
...
...
arch/arm/mach-omap2/pm44xx.c
View file @
a5a8c31d
...
...
@@ -77,10 +77,20 @@ static int omap4_pm_suspend(void)
omap_set_pwrdm_state
(
pwrst
->
pwrdm
,
pwrst
->
saved_state
);
pwrdm_set_logic_retst
(
pwrst
->
pwrdm
,
pwrst
->
saved_logic_state
);
}
if
(
ret
)
if
(
ret
)
{
pr_crit
(
"Could not enter target state in pm_suspend
\n
"
);
else
/*
* OMAP4 chip PM currently works only with certain (newer)
* versions of bootloaders. This is due to missing code in the
* kernel to properly reset and initialize some devices.
* Warn the user about the bootloader version being one of the
* possible causes.
* http://www.spinics.net/lists/arm-kernel/msg218641.html
*/
pr_warn
(
"A possible cause could be an old bootloader - try u-boot >= v2012.07
\n
"
);
}
else
{
pr_info
(
"Successfully put all powerdomains to target state
\n
"
);
}
return
0
;
}
...
...
@@ -146,6 +156,13 @@ int __init omap4_pm_init(void)
}
pr_err
(
"Power Management for TI OMAP4.
\n
"
);
/*
* OMAP4 chip PM currently works only with certain (newer)
* versions of bootloaders. This is due to missing code in the
* kernel to properly reset and initialize some devices.
* http://www.spinics.net/lists/arm-kernel/msg218641.html
*/
pr_warn
(
"OMAP4 PM: u-boot >= v2012.07 is required for full PM support
\n
"
);
ret
=
pwrdm_for_each
(
pwrdms_setup
,
NULL
);
if
(
ret
)
{
...
...
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