]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/video/ipu_common.c
video, ipu: make ldb_clock configurable
[karo-tx-uboot.git] / drivers / video / ipu_common.c
index ee9c2110edaf81187254ae269c25c6b8577c9755..18fc606f60fe551ea2c5e654f1c293d4f6a71b07 100644 (file)
@@ -112,9 +112,13 @@ static void clk_ldb_disable(struct clk *clk)
        ldb_clk_disable(1);
 }
 
+#if !defined CONFIG_SYS_LDB_CLOCK
+#define CONFIG_SYS_LDB_CLOCK 65000000
+#endif
+
 static struct clk ldb_clk = {
        .name = "ldb_clk",
-       .rate = 65000000,
+       .rate = CONFIG_SYS_LDB_CLOCK,
        .enable = clk_ldb_enable,
        .disable = clk_ldb_disable,
 };