From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Mon, 11 Sep 2017 13:13:59 +0200 Subject: [U-Boot] [PATCH] ipu_common: Let the MX6 IPU clock be calculated in run-time In-Reply-To: <1504716571-3208-1-git-send-email-festevam@gmail.com> References: <1504716571-3208-1-git-send-email-festevam@gmail.com> Message-ID: <20170911131359.3ed1b60b@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Fabio, On Wed, 6 Sep 2017 13:49:31 -0300 Fabio Estevam festevam at gmail.com wrote: > From: Fabio Estevam > > 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 > Signed-off-by: Fabio Estevam > --- > 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