[U-Boot] [PATCH 2/2] Blackfin: workaround anomaly 05000440

Sergei Shtylyov sshtylyov at mvista.com
Sun Oct 17 22:10:49 CEST 2010


Hello.

On 15-10-2010 04:23, Mike Frysinger wrote:

> We cannot rely on the syscontrol rom func to program PLL_DIV with anomaly
> 05000440 is in effect, so manually program the MMR when necessary.

> Signed-off-by: Mike Frysinger<vapier at gentoo.org>
[...]

> diff --git a/arch/blackfin/cpu/initcode.c b/arch/blackfin/cpu/initcode.c
> index 007f5ce..433d477 100644
> --- a/arch/blackfin/cpu/initcode.c
> +++ b/arch/blackfin/cpu/initcode.c
> @@ -391,7 +391,9 @@ program_clocks(ADI_BOOT_DATA *bs, bool put_into_srfs)
>
>   		/* Always programming PLL_LOCKCNT avoids Anomaly 05000430 */
>   		ADI_SYSCTRL_VALUES memory_settings;
> -		uint32_t actions = SYSCTRL_WRITE | SYSCTRL_PLLCTL | SYSCTRL_PLLDIV | SYSCTRL_LOCKCNT;
> +		uint32_t actions = SYSCTRL_WRITE | SYSCTRL_PLLCTL | SYSCTRL_LOCKCNT;

    An empty line is needed here...

> +		if (!ANOMALY_05000440)
> +			actions |= SYSCTRL_PLLDIV;
>   		if (CONFIG_HAS_VR) {
>   			actions |= SYSCTRL_VRCTL;
>   			if (CONFIG_VR_CTL_VAL&  FREQ_MASK)

WBR, Sergei


More information about the U-Boot mailing list