[U-Boot] [PATCH 08/16] Blackfin: add more print info for Bf60x

Bob Liu lliubbo at gmail.com
Mon Aug 20 10:12:57 CEST 2012


On Wed, Aug 8, 2012 at 1:04 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> 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 ...

Will be implemented.

>
>> --- 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.

Will be updated.
Thank you
-- 
Regards,
--Bob


More information about the U-Boot mailing list