]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
video, ipu: make ldb_clock configurable
authorHeiko Schocher <hs@denx.de>
Mon, 20 Apr 2015 05:52:21 +0000 (07:52 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:29:09 +0000 (22:29 +0200)
make the ldb_clock configurable through the new define
CONFIG_SYS_LDB_CLOCK. This is needed as the ldb clock is not
always 650000000, for example on the aristainetos2 board,
where the ldb clock derives from PLL5 clock.

Signed-off-by: Heiko Schocher <hs@denx.de>
Tested-by: Eric Nelson <eric.nelson@boundarydevices.com>
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,
 };