[U-Boot] [Patch v2, batch 2 17/23] powerpc/85xx: add missing QMAN frequency calculation

Andy Fleming afleming at gmail.com
Wed May 8 01:04:05 CEST 2013


On Mon, Mar 25, 2013 at 12:33 PM, York Sun <yorksun at freescale.com> wrote:

> From: Shaohui Xie <Shaohui.Xie at freescale.com>
>
> When CONFIG_SYS_FSL_QORIQ_CHASSIS2 is not defined, QMAN frequency will not
> be initialized, and QMAN will have a wrong frequency display.
>
> Signed-off-by: Shaohui Xie <Shaohui.Xie at freescale.com>
> ---
>  arch/powerpc/cpu/mpc85xx/speed.c |    4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/arch/powerpc/cpu/mpc85xx/speed.c
> b/arch/powerpc/cpu/mpc85xx/speed.c
> index 9fc7b54..f00b1ab 100644
> --- a/arch/powerpc/cpu/mpc85xx/speed.c
> +++ b/arch/powerpc/cpu/mpc85xx/speed.c
> @@ -293,6 +293,10 @@ void get_sys_info (sys_info_t * sysInfo)
>  #endif
>  #endif
>
> +#ifdef CONFIG_SYS_DPAA_QBMAN
> +       sysInfo->freqQMAN = sysInfo->freqSystemBus / 2;
> +#endif
> +
>


Can we just move the original copy of the above lines out of the #ifdef? I
don't see any reason to do it the same way in two places.

Andy


More information about the U-Boot mailing list