summaryrefslogtreecommitdiffstats
path: root/drivers/clk/spear/spear1310_clock.c
diff options
context:
space:
mode:
authorDeepak Sikri <deepak.sikri@st.com>2012-11-10 12:13:45 +0530
committerMike Turquette <mturquette@linaro.org>2012-11-21 11:45:59 -0800
commitef0fd0a207c00b09449f33724322ba762d822d97 (patch)
tree189ce9d8cf39a07acb36f437b763ca020c69eb02 /drivers/clk/spear/spear1310_clock.c
parentcd4b519aa5bdce92fcacc1d4bbe0fa16b4e16144 (diff)
downloadlinux-ef0fd0a207c00b09449f33724322ba762d822d97.tar.gz
linux-ef0fd0a207c00b09449f33724322ba762d822d97.tar.bz2
linux-ef0fd0a207c00b09449f33724322ba762d822d97.zip
CLK: SPEAr: Update clock rate table
This patch updates the existing rate tables with new frequencies. Signed-off-by: Deepak Sikri <deepak.sikri@st.com> Signed-off-by: Vipul Kumar Samar <vipulkumar.samar@st.com> Signed-off-by: Rajeev Kumar <rajeev-dlh.kumar@st.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/spear/spear1310_clock.c')
-rw-r--r--drivers/clk/spear/spear1310_clock.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/clk/spear/spear1310_clock.c b/drivers/clk/spear/spear1310_clock.c
index b64d51153a78..bc7f37e131cd 100644
--- a/drivers/clk/spear/spear1310_clock.c
+++ b/drivers/clk/spear/spear1310_clock.c
@@ -313,6 +313,20 @@ static struct aux_clk_masks i2s_sclk_masks = {
/* i2s prs1 aux rate configuration table, in ascending order of rates */
static struct aux_rate_tbl i2s_prs1_rtbl[] = {
/* For parent clk = 49.152 MHz */
+ {.xscale = 1, .yscale = 12, .eq = 0}, /* 2.048 MHz, smp freq = 8Khz */
+ {.xscale = 11, .yscale = 96, .eq = 0}, /* 2.816 MHz, smp freq = 11Khz */
+ {.xscale = 1, .yscale = 6, .eq = 0}, /* 4.096 MHz, smp freq = 16Khz */
+ {.xscale = 11, .yscale = 48, .eq = 0}, /* 5.632 MHz, smp freq = 22Khz */
+
+ /*
+ * with parent clk = 49.152, freq gen is 8.192 MHz, smp freq = 32Khz
+ * with parent clk = 12.288, freq gen is 2.048 MHz, smp freq = 8Khz
+ */
+ {.xscale = 1, .yscale = 3, .eq = 0},
+
+ /* For parent clk = 49.152 MHz */
+ {.xscale = 17, .yscale = 37, .eq = 0}, /* 11.289 MHz, smp freq = 44Khz*/
+
{.xscale = 1, .yscale = 2, .eq = 0}, /* 12.288 MHz */
};