[U-Boot] [PATCH] ipu_common: Let the MX6 IPU clock be calculated in run-time
Anatolij Gustschin
agust at denx.de
Mon Sep 11 11:13:59 UTC 2017
Hi Fabio,
On Wed, 6 Sep 2017 13:49:31 -0300
Fabio Estevam festevam at gmail.com wrote:
> From: Fabio Estevam <fabio.estevam at 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 at nelint.com>
> Signed-off-by: Fabio Estevam <fabio.estevam at 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
More information about the U-Boot
mailing list