ipu_common: Do not hardcode the ipu_clk frequency
Do not hardcode the ipu_clk frequency and let the board file pass this value.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
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 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,