void __init board_clock_init(void)
{
- rk30_clock_data_init(periph_pll_384mhz, codec_pll_594mhz, RK30_CLOCKS_DEFAULT_FLAGS);
- //rk30_clock_data_init(periph_pll_default, codec_pll_default, RK30_CLOCKS_DEFAULT_FLAGS);
+ rk30_clock_data_init(periph_pll_default, codec_pll_default, RK30_CLOCKS_DEFAULT_FLAGS);
//dvfs_set_arm_logic_volt(dvfs_cpu_logic_table, cpu_dvfs_table, dep_cpu2core_table);
dvfs_set_freq_volt_table(clk_get(NULL, "cpu"), dvfs_arm_table);
dvfs_set_freq_volt_table(clk_get(NULL, "gpu"), dvfs_gpu_table);
clk_set_rate_nolock(&clk_uart1_div,rate);
clk_set_rate_nolock(&clk_uart2_div,rate);
clk_set_rate_nolock(&clk_uart3_div,rate);
- clk_set_rate_nolock(&clk_uart1,rate);
}
static void inline clock_set_div(struct clk *clk,u32 div)
#define RK30_CLOCKS_DEFAULT_FLAGS (CLK_FLG_MAX_I2S_12288KHZ/*|CLK_FLG_EXT_27MHZ*/)
-#if (RK30_CLOCKS_DEFAULT_FLAGS&CLK_FLG_UART_1_3M)
-#define codec_pll_default codec_pll_768mhz
-#else
-#define codec_pll_default codec_pll_798mhz
-#endif
-#define periph_pll_default periph_pll_594mhz
-
+#define codec_pll_default codec_pll_594mhz
+#define periph_pll_default periph_pll_384mhz
#endif