]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
video, ipu: make ldb_clock configurable
authorHeiko Schocher <hs@denx.de>
Mon, 20 Apr 2015 05:52:21 +0000 (07:52 +0200)
committerAnatolij Gustschin <agust@denx.de>
Mon, 20 Apr 2015 07:34:45 +0000 (09:34 +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 5873531953316a25799c020206328bd84280b97d..8ebb205f19b2e9b4c3f673f465bec3257899aded 100644 (file)
@@ -210,9 +210,13 @@ static struct clk ipu_clk = {
        .usecount = 0,
 };
 
+#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,
        .usecount = 0,
 };