-
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.
ARM: OMAP4: PM: Add dummy hooks for OMAP4 dpll api's
This patch adds dummy hooks for OMAP4 dpll api's. Removes dummy hooks for clkdev api's and enables CLKDEV for OMAP4. Also comments clockdomain calls from within the clock framework as its not supported yet for OMAP4. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com> Cc: Benoit Cousson <b-cousson@ti.com>
- Loading branch information
Rajendra Nayak
authored and
paul
committed
Dec 12, 2009
1 parent
972c542
commit d79b126
Showing
8 changed files
with
75 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* OMAP4-specific clock framework functions | ||
* | ||
* Copyright (C) 2009 Texas Instruments, Inc. | ||
* | ||
* 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 <linux/errno.h> | ||
#include "clock.h" | ||
|
||
struct clk_functions omap2_clk_functions = { | ||
.clk_enable = omap2_clk_enable, | ||
.clk_disable = omap2_clk_disable, | ||
.clk_round_rate = omap2_clk_round_rate, | ||
.clk_set_rate = omap2_clk_set_rate, | ||
.clk_set_parent = omap2_clk_set_parent, | ||
.clk_disable_unused = omap2_clk_disable_unused, | ||
}; | ||
|
||
/* | ||
* Dummy functions for DPLL control. Plan is to re-use | ||
* existing OMAP3 dpll control functions. | ||
*/ | ||
|
||
unsigned long omap3_dpll_recalc(struct clk *clk) | ||
{ | ||
return 0; | ||
} | ||
|
||
int omap3_noncore_dpll_set_rate(struct clk *clk, unsigned long rate) | ||
{ | ||
return 0; | ||
} | ||
|
||
int omap3_noncore_dpll_enable(struct clk *clk) | ||
{ | ||
return 0; | ||
} | ||
|
||
void omap3_noncore_dpll_disable(struct clk *clk) | ||
{ | ||
return; | ||
} | ||
|
||
const struct clkops clkops_noncore_dpll_ops = { | ||
.enable = &omap3_noncore_dpll_enable, | ||
.disable = &omap3_noncore_dpll_disable, | ||
}; | ||
|
||
void omap2_clk_prepare_for_reboot(void) | ||
{ | ||
return; | ||
} |
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 |
---|---|---|
|
@@ -27,6 +27,7 @@ config ARCH_OMAP4 | |
bool "TI OMAP4" | ||
select CPU_V7 | ||
select ARM_GIC | ||
select COMMON_CLKDEV | ||
|
||
endchoice | ||
|
||
|
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