]> git.sur5r.net Git - u-boot/commitdiff
ipu_common: Do not hardcode the ipu_clk frequency
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 31 May 2012 07:24:00 +0000 (07:24 +0000)
committerAnatolij Gustschin <agust@denx.de>
Tue, 10 Jul 2012 09:35:39 +0000 (11:35 +0200)
Do not hardcode the ipu_clk frequency and let the board file pass this value.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
drivers/video/ipu_common.c
include/configs/mx51evk.h
include/configs/mx53loco.h
include/configs/vision2.h

index 84892dcbfd2da34ca87d0b417318d995efb16189..e43a6ecde7a20e78333fe5cbd7540bfa3d38cb33 100644 (file)
@@ -210,7 +210,7 @@ static void clk_ipu_disable(struct clk *clk)
 
 static struct clk ipu_clk = {
        .name = "ipu_clk",
-       .rate = 133000000,
+       .rate = CONFIG_IPUV3_CLK,
        .enable_reg = (u32 *)(CCM_BASE_ADDR +
                offsetof(struct mxc_ccm_reg, CCGR5)),
        .enable_shift = MXC_CCM_CCGR5_CG5_OFFSET,
index c3f4521988b4cdd434838b0e044a3063663ccd97..6af5ed7fe4b861aeae8f2e171966a7c33cc6c793 100644 (file)
 #define CONFIG_SPLASH_SCREEN
 #define CONFIG_BMP_16BPP
 #define CONFIG_VIDEO_LOGO
+#define CONFIG_IPUV3_CLK       133000000
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
index e58548ebeda8962a203d190e9782089bb9ecfc50..f936785cdc728ad21b21a6d1da0d59f952eef510 100644 (file)
 #define CONFIG_SPLASH_SCREEN
 #define CONFIG_BMP_16BPP
 #define CONFIG_VIDEO_LOGO
+#define CONFIG_IPUV3_CLK       133000000
 
 #endif                         /* __CONFIG_H */
index 919f5ce5e5449cda337c043c039b5adbbb890e58..0ed53d2e0461168482eac9bdf4d7ae99372422b8 100644 (file)
 #define CONFIG_SPLASH_SCREEN
 #define CONFIG_CMD_BMP
 #define CONFIG_BMP_16BPP
+#define CONFIG_IPUV3_CLK       133000000
 
 #endif                         /* __CONFIG_H */