-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OMAP: clockdomain: Arch specific funcs for sleep/wakeup of clkdm
Define the following architecture specific funtions for omap2/3/4 .clkdm_sleep .clkdm_wakeup Convert the platform-independent framework to call these functions. Also rename the api's by removing the omap2_ preamble. Hence call omap2_clkdm_wakeup as clkdm_wakeup and omap2_clkdm_sleep as clkdm_sleep. Signed-off-by: Rajendra Nayak <rnayak@ti.com> [paul@pwsan.com: fixed omap3_clkdm_clear_all_sleepdeps() and omap2_clkdm_clear_all_wkdeps() to test against the correct loop termination condition; thanks to Kevin Hilman for finding and helping fix] Cc: Kevin Hilman <khilman@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
- Loading branch information
Rajendra Nayak
authored and
Paul Walmsley
committed
Feb 25, 2011
1 parent
4aef7a2
commit 68b921a
Showing
9 changed files
with
96 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* OMAP4 clockdomain control | ||
* | ||
* Copyright (C) 2008-2010 Texas Instruments, Inc. | ||
* Copyright (C) 2008-2010 Nokia Corporation | ||
* | ||
* Derived from mach-omap2/clockdomain.c written by Paul Walmsley | ||
* Rajendra Nayak <rnayak@ti.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#include "clockdomain.h" | ||
#include "cminst44xx.h" | ||
|
||
static int omap4_clkdm_sleep(struct clockdomain *clkdm) | ||
{ | ||
omap4_cminst_clkdm_force_sleep(clkdm->prcm_partition, | ||
clkdm->cm_inst, clkdm->clkdm_offs); | ||
return 0; | ||
} | ||
|
||
static int omap4_clkdm_wakeup(struct clockdomain *clkdm) | ||
{ | ||
omap4_cminst_clkdm_force_wakeup(clkdm->prcm_partition, | ||
clkdm->cm_inst, clkdm->clkdm_offs); | ||
return 0; | ||
} | ||
|
||
struct clkdm_ops omap4_clkdm_operations = { | ||
.clkdm_sleep = omap4_clkdm_sleep, | ||
.clkdm_wakeup = omap4_clkdm_wakeup, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters