summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/dm646x.c
diff options
context:
space:
mode:
authorSekhar Nori2011-06-14 17:33:20 +0200
committerSekhar Nori2011-07-06 13:18:45 +0200
commit56e580d7783ba49a50ccc1b1f3130e5ed2dc52e7 (patch)
tree89ae7f1de834df5fd7425c40e6a7697d0a696401 /arch/arm/mach-davinci/dm646x.c
parentdavinci: psc.h: clean up indentation done using spaces (diff)
downloadkernel-qcow2-linux-56e580d7783ba49a50ccc1b1f3130e5ed2dc52e7.tar.gz
kernel-qcow2-linux-56e580d7783ba49a50ccc1b1f3130e5ed2dc52e7.tar.xz
kernel-qcow2-linux-56e580d7783ba49a50ccc1b1f3130e5ed2dc52e7.zip
davinci: dm6467/T EVM: fix setting up of reference clock rate
The DM6467 and DM6467T EVMs use different reference clock frequencies. This difference is currently supported by having the SoC code call a public board routine which sets up the reference clock frequency. This does not scale as more boards are added. Instead, use the clk_set_rate() API to setup the reference clock frequency to a different value from the board file. Suggested-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com> Acked-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/dm646x.c')
-rw-r--r--arch/arm/mach-davinci/dm646x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c
index 1e0f809644bb..46739c96cd38 100644
--- a/arch/arm/mach-davinci/dm646x.c
+++ b/arch/arm/mach-davinci/dm646x.c
@@ -42,6 +42,7 @@
/*
* Device specific clocks
*/
+#define DM646X_REF_FREQ 27000000
#define DM646X_AUX_FREQ 24000000
static struct pll_data pll1_data = {
@@ -56,6 +57,8 @@ static struct pll_data pll2_data = {
static struct clk ref_clk = {
.name = "ref_clk",
+ .rate = DM646X_REF_FREQ,
+ .set_rate = davinci_simple_set_rate,
};
static struct clk aux_clkin = {
@@ -901,7 +904,6 @@ int __init dm646x_init_edma(struct edma_rsv_info *rsv)
void __init dm646x_init(void)
{
- dm646x_board_setup_refclk(&ref_clk);
davinci_common_init(&davinci_soc_info_dm646x);
}