rk2928: add aclk_vio_pre src_sel; fix peri_clk realc func, uart1 sel_con
authorchenxing <chenxing@rock-chips.com>
Thu, 18 Jul 2013 06:42:56 +0000 (14:42 +0800)
committerchenxing <chenxing@rock-chips.com>
Thu, 18 Jul 2013 06:43:09 +0000 (14:43 +0800)
arch/arm/mach-rk2928/clock_data.c

index ee828cf28f30ce8ba4d29147bcf1152409afa0b5..85e27eb40e8d894b44715c50237e21fcfdeb699c 100755 (executable)
@@ -1239,6 +1239,7 @@ static struct clk aclk_vio_pre = {
        .set_rate       = clksel_set_rate_freediv,
        .clksel_con     = CRU_CLKSELS_CON(31),
        CRU_DIV_SET(0x1f, 0, 32),
+       CRU_SRC_SET(0x1, 7),
        CRU_PARENTS_SET(clk_aclk_vio_pre_parents),
 };
 static struct clk hclk_vio_pre = {
@@ -1267,7 +1268,7 @@ static struct clk peri_aclk = {
 static struct clk peri_hclk = {
        .name           = "peri_hclk",
        .parent         = &peri_aclk,
-       .recalc         = clksel_recalc_div,
+       .recalc         = clksel_recalc_shift,
        .set_rate       = clksel_set_rate_shift,
        .clksel_con     = CRU_CLKSELS_CON(10),
        CRU_DIV_SET(PERI_HCLK_DIV_MASK, PERI_HCLK_DIV_SHIFT, 8),
@@ -1276,7 +1277,7 @@ static struct clk peri_hclk = {
 static struct clk peri_pclk = {
        .name           = "peri_pclk",
        .parent         = &peri_aclk,
-       .recalc         = clksel_recalc_div,
+       .recalc         = clksel_recalc_shift,
        .set_rate       = clksel_set_rate_shift,
        .clksel_con     = CRU_CLKSELS_CON(10),
        CRU_DIV_SET(PERI_PCLK_DIV_MASK, PERI_PCLK_DIV_SHIFT, 4),
@@ -1811,7 +1812,7 @@ static struct clk clk_uart1_div = {
        .recalc         = clksel_recalc_div,
        .set_rate       = clksel_set_rate_freediv,
        .round_rate     = clksel_freediv_round_rate,
-       .clksel_con     = CRU_CLKSELS_CON(15),
+       .clksel_con     = CRU_CLKSELS_CON(14),
        CRU_DIV_SET(0x7f, 0, 64),       
 };
 static struct clk clk_uart2_div = {