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

Mike Frysinger vapier at gentoo.org
Wed Aug 8 07:04:51 CEST 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120808/908c9934/attachment.pgp>


More information about the U-Boot mailing list