[U-Boot] [PATCH 6/9] ipu_common: Do not hardcode the ipu_clk frequency
Fabio Estevam
fabio.estevam at freescale.com
Thu May 31 19:24:00 CEST 2012
Do not hardcode the ipu_clk frequency and let the board file pass this value.
Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
drivers/video/ipu_common.c | 2 +-
include/configs/mx51evk.h | 1 +
include/configs/mx53loco.h | 1 +
include/configs/vision2.h | 1 +
4 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/video/ipu_common.c b/drivers/video/ipu_common.c
index 84892dc..e43a6ec 100644
--- a/drivers/video/ipu_common.c
+++ b/drivers/video/ipu_common.c
@@ -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,
diff --git a/include/configs/mx51evk.h b/include/configs/mx51evk.h
index 8b04dc7..755312f 100644
--- a/include/configs/mx51evk.h
+++ b/include/configs/mx51evk.h
@@ -133,6 +133,7 @@
#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
diff --git a/include/configs/mx53loco.h b/include/configs/mx53loco.h
index 7a4a9ea..c9653a0 100644
--- a/include/configs/mx53loco.h
+++ b/include/configs/mx53loco.h
@@ -230,5 +230,6 @@
#define CONFIG_SPLASH_SCREEN
#define CONFIG_BMP_16BPP
#define CONFIG_VIDEO_LOGO
+#define CONFIG_IPUV3_CLK 133000000
#endif /* __CONFIG_H */
diff --git a/include/configs/vision2.h b/include/configs/vision2.h
index 6eebbb6..7ffe655 100644
--- a/include/configs/vision2.h
+++ b/include/configs/vision2.h
@@ -221,5 +221,6 @@
#define CONFIG_SPLASH_SCREEN
#define CONFIG_CMD_BMP
#define CONFIG_BMP_16BPP
+#define CONFIG_IPUV3_CLK 133000000
#endif /* __CONFIG_H */
--
1.7.1
More information about the U-Boot
mailing list