public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Scott Wood <oss@buserror.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [Patch V2 3/3] armv8/fsl-layerscape: fdt: add fixup for fman
Date: Fri, 22 Jan 2016 14:05:44 -0600	[thread overview]
Message-ID: <1453493144.19133.90.camel@buserror.net> (raw)
In-Reply-To: <1453464475-21801-3-git-send-email-Qianyu.Gong@nxp.com>

On Fri, 2016-01-22 at 20:07 +0800, Gong Qianyu wrote:
> Add fdt fixup for Fman clock and inserting Fman ucode blob
> into the device tree.
> 
> Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
> ---
> V2:
>  - Removed the duplicated function.
> 
>  arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
> b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
> index eafdd71..8a6b694 100644
> --- a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
> +++ b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
> @@ -8,12 +8,16 @@
>  #include <libfdt.h>
>  #include <fdt_support.h>
>  #include <phy.h>
> +#include <asm/arch/speed.h>
>  #ifdef CONFIG_FSL_LSCH3
>  #include <asm/arch/fdt.h>
>  #endif
>  #ifdef CONFIG_FSL_ESDHC
>  #include <fsl_esdhc.h>
>  #endif
> +#ifdef CONFIG_SYS_DPAA_FMAN
> +#include <fsl_fman.h>
> +#endif
>  #ifdef CONFIG_MP
>  #include <asm/arch/mp.h>
>  #endif
> @@ -181,6 +185,10 @@ static void fdt_fixup_smmu(void *blob)
>  
>  void ft_cpu_setup(void *blob, bd_t *bd)
>  {
> +	struct sys_info sysinfo;
> +
> +	get_sys_info(&sysinfo);
> +
>  #ifdef CONFIG_MP
>  	ft_fixup_cpu(blob);
>  #endif
> @@ -201,4 +209,10 @@ void ft_cpu_setup(void *blob, bd_t *bd)
>  #ifdef CONFIG_FSL_LSCH3
>  	fdt_fixup_smmu(blob);
>  #endif
> +
> +#ifdef CONFIG_SYS_DPAA_FMAN
> +	do_fixup_by_compat_u32(blob, "fsl,fman",
> +			       "clock-frequency", sysinfo.freq_fman[0], 1);
> +	fdt_fixup_fman_firmware(blob);
> +#endif
>  }


There is no clock-frequency in the fman binding.  A clocks property is used
instead (which does not require a fixup).

-Scott

      reply	other threads:[~2016-01-22 20:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-22 12:07 [U-Boot] [Patch V2 1/3] qe: move drivers/qe/qe.h to include/fsl_qe.h Gong Qianyu
2016-01-22 12:07 ` [U-Boot] [Patch V2 2/3] fm: fdt: Move fman ucode fixup to Fman driver code Gong Qianyu
2016-01-22 20:02   ` Scott Wood
2016-01-22 12:07 ` [U-Boot] [Patch V2 3/3] armv8/fsl-layerscape: fdt: add fixup for fman Gong Qianyu
2016-01-22 20:05   ` Scott Wood [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1453493144.19133.90.camel@buserror.net \
    --to=oss@buserror.net \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox