[U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals
Sylvain Munaut
tnt at 246tNt.com
Thu Nov 16 09:45:58 CET 2006
Wolfgang Denk wrote:
> In message <1162846858442-git-send-email-grant.likely at secretlab.ca> you wrote:
>
>> The soc node of the mpc52xx needs to be loaded with the IPB bus frequency,
>> not the XLB frequency.
>>
> ...
>
>
>> p = ft_get_prop(blob, "/cpus/" OF_CPU "/bus-frequency", &len);
>> if (p != NULL)
>> - *p = cpu_to_be32(clock);
>> + *p = cpu_to_be32(bd->bi_busfreq);
>>
>
> "/bus-frequency" ==> bi_busfreq. OK.
>
>
>> p = ft_get_prop(blob, "/" OF_SOC "/bus-frequency", &len);
>> if (p != NULL)
>> - *p = cpu_to_be32(clock);
>> + *p = cpu_to_be32(bd->bi_ipbfreq);
>>
>
> "/bus-frequency" ==> bi_ipbfreq. ???
>
FWIW,
Looks good to me and it's a requirement for the new arch/powerpc that's
coming soon.
Signed-off-by: Sylvain Munaut <tnt at 246tNt.com>
Sylvain
More information about the U-Boot
mailing list