
On Tuesday 07 August 2012 04:07:47 Bob Liu wrote:
--- a/arch/blackfin/lib/clocks.c +++ b/arch/blackfin/lib/clocks.c
+u_long get_dclk(void) +{ +#ifndef CONFIG_BFIN_GET_DCLK
- return _get_sclk(&cached_dclk);
+#else
- return CONFIG_BFIN_GET_DCLK;
+#endif +}
this looks like my incomplete hack where the implementation of clock lookups weren't finished. that was because at the time, the hardware blocks of the bf60x were not finished which means i couldn't query the MMRs to calculate the values. please implement this ...
--- a/include/configs/bf609-ezkit.h +++ b/include/configs/bf609-ezkit.h
#define CONFIG_BFIN_GET_SCLK (CONFIG_PLL_CLK/CONFIG_SYSCLK_DIV) #define CONFIG_BFIN_GET_SCLK0 (get_sclk()/CONFIG_SCLK0_DIV) #define CONFIG_BFIN_GET_SCLK1 (get_sclk()/CONFIG_SCLK1_DIV) +#define CONFIG_BFIN_GET_DCLK (get_cclk()/CONFIG_DCLK_DIV)
and then point all these hard coded defines. these existed purely for initial FPGA bring up and were not intended to be shipped as the final code. -mike