public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ipu_common: Let the MX6 IPU clock be calculated in run-time
Date: Mon, 11 Sep 2017 13:13:59 +0200	[thread overview]
Message-ID: <20170911131359.3ed1b60b@crub> (raw)
In-Reply-To: <1504716571-3208-1-git-send-email-festevam@gmail.com>

Hi Fabio,

On Wed,  6 Sep 2017 13:49:31 -0300
Fabio Estevam festevam at gmail.com wrote:

> From: Fabio Estevam <fabio.estevam@nxp.com>
> 
> MX6Q/QP IPU operates at 264MHz and MX6DL IPU at 198MHz.
> 
> When running a SPL target, which supports multiple MX6 variants we cannot
> properly setup the IPU clock frequency via CONFIG_IPUV3_CLK option as
> such decision is done in build-time currently.
> 
> Remove the CONFIG_IPUV3_CLK option and let the IPU clock frequency be
> configured in run-time on mx6.
> 
> Reported-by: Eric Nelson <eric@nelint.com>
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
> Changes since v1:
> - Improve the mx6 detection logic (Troy)
> 
>  drivers/video/ipu_common.c            | 14 +++++++++++++-
>  include/configs/advantech_dms-ba16.h  |  1 -
>  include/configs/apalis_imx6.h         |  1 -
>  include/configs/aristainetos-common.h |  1 -
>  include/configs/cgtqmx6eval.h         |  4 ----
>  include/configs/cm_fx6.h              |  1 -
>  include/configs/colibri_imx6.h        |  1 -
>  include/configs/embestmx6boards.h     |  1 -
>  include/configs/ge_bx50v3.h           |  1 -
>  include/configs/gw_ventana.h          |  1 -
>  include/configs/imx6-engicam.h        |  1 -
>  include/configs/m53evk.h              |  1 -
>  include/configs/mx51evk.h             |  1 -
>  include/configs/mx53cx9020.h          |  1 -
>  include/configs/mx53loco.h            |  1 -
>  include/configs/mx6cuboxi.h           |  1 -
>  include/configs/mx6sabre_common.h     |  5 -----
>  include/configs/nitrogen6x.h          |  1 -
>  include/configs/novena.h              |  1 -
>  include/configs/tbs2910.h             |  1 -
>  include/configs/wandboard.h           |  1 -
>  scripts/config_whitelist.txt          |  1 -
>  22 files changed, 13 insertions(+), 29 deletions(-)

Applied to u-boot-video/master after fixing cgtqmx6eval build. Thanks!

...
> diff --git a/include/configs/cgtqmx6eval.h b/include/configs/cgtqmx6eval.h
> index 4996a89..6a6c063 100644
> --- a/include/configs/cgtqmx6eval.h
> +++ b/include/configs/cgtqmx6eval.h
> @@ -87,10 +87,6 @@
>  #define CONFIG_BMP_16BPP
>  #define CONFIG_VIDEO_LOGO
>  #define CONFIG_VIDEO_BMP_LOGO
> -#ifdef CONFIG_MX6DL
> -#define CONFIG_IPUV3_CLK 198000000
> -#else
> -#define CONFIG_IPUV3_CLK 264000000
>  #endif

dropped this #endif.

Thanks,

Anatolij

      parent reply	other threads:[~2017-09-11 11:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-06 16:49 [U-Boot] [PATCH] ipu_common: Let the MX6 IPU clock be calculated in run-time Fabio Estevam
2017-09-06 17:56 ` Eric Nelson
2017-09-07  8:54 ` Stefano Babic
2017-09-11  8:56 ` Anatolij Gustschin
2017-09-11 11:04   ` Fabio Estevam
2017-09-11 11:14     ` Anatolij Gustschin
2017-09-11 11:13 ` Anatolij Gustschin [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=20170911131359.3ed1b60b@crub \
    --to=agust@denx.de \
    --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