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
993a01a7
Commit
993a01a7
authored
Jan 16, 2006
by
Toshihiro Kobayashi
Committed by
Tony Lindgren
Jan 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ARM: OMAP: patch-dsp_ckfix3
Here's a further patch to centralize the pm code.
parent
fb60ce82
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
24 deletions
+2
-24
arch/arm/mach-omap1/pm.c
arch/arm/mach-omap1/pm.c
+2
-4
arch/arm/plat-omap/dsp/dsp_common.c
arch/arm/plat-omap/dsp/dsp_common.c
+0
-18
include/asm-arm/arch-omap/dsp_common.h
include/asm-arm/arch-omap/dsp_common.h
+0
-2
No files found.
arch/arm/mach-omap1/pm.c
View file @
993a01a7
...
...
@@ -239,6 +239,7 @@ static void omap_pm_wakeup_setup(void)
#define EN_DSPCK 13
/* ARM_CKCTL */
#define EN_APICK 6
/* ARM_IDLECT2 */
#define DSP_EN 1
/* ARM_RSTCT1 */
void
omap_pm_suspend
(
void
)
{
...
...
@@ -323,7 +324,7 @@ void omap_pm_suspend(void)
*/
/* stop DSP */
omap_
dsp_pm_suspend
(
);
omap_
writew
(
omap_readw
(
ARM_RSTCT1
)
&
~
(
1
<<
DSP_EN
),
ARM_RSTCT1
);
/* shut down dsp_ck */
omap_writew
(
omap_readw
(
ARM_CKCTL
)
&
~
(
1
<<
EN_DSPCK
),
ARM_CKCTL
);
...
...
@@ -388,9 +389,6 @@ void omap_pm_suspend(void)
/* Restore DSP domain clocks */
DSP_RESTORE
(
DSP_IDLECT2
);
/* resume DSP */
omap_dsp_pm_resume
();
/*
* Restore ARM state, except ARM_IDLECT1/2 which omap_cpu_suspend did
*/
...
...
arch/arm/plat-omap/dsp/dsp_common.c
View file @
993a01a7
...
...
@@ -240,22 +240,6 @@ void dsp_set_idle_boot_base(unsigned long adr, size_t size)
static
int
init_done
;
/*
* note: if we are in pm_suspend / pm_resume function,
*/
void
omap_dsp_pm_suspend
(
void
)
{
/* Reset DSP */
__dsp_reset
();
}
void
omap_dsp_pm_resume
(
void
)
{
/* Run DSP, if it was running */
if
(
cpustat
.
stat
!=
CPUSTAT_RESET
)
__dsp_run
();
}
static
int
__init
omap_dsp_init
(
void
)
{
dspmem_size
=
0
;
...
...
@@ -503,8 +487,6 @@ void dsp_unregister_mem_cb(void)
arch_initcall
(
omap_dsp_init
);
EXPORT_SYMBOL
(
omap_dsp_pm_suspend
);
EXPORT_SYMBOL
(
omap_dsp_pm_resume
);
EXPORT_SYMBOL
(
omap_dsp_request_mpui
);
EXPORT_SYMBOL
(
omap_dsp_release_mpui
);
EXPORT_SYMBOL
(
omap_dsp_request_mem
);
...
...
include/asm-arm/arch-omap/dsp_common.h
View file @
993a01a7
...
...
@@ -27,8 +27,6 @@
#ifndef ASM_ARCH_DSP_COMMON_H
#define ASM_ARCH_DSP_COMMON_H
void
omap_dsp_pm_suspend
(
void
);
void
omap_dsp_pm_resume
(
void
);
void
omap_dsp_request_mpui
(
void
);
void
omap_dsp_release_mpui
(
void
);
int
omap_dsp_request_mem
(
void
);
...
...
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