summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2015-04-20 07:52:21 +0200
committerAnatolij Gustschin <agust@denx.de>2015-04-20 09:34:45 +0200
commit0ced25beb5c0ee6aefe183c980560bed3d664fdb (patch)
tree19f439b72c54a6abd9a303181c1ce79429c08876 /drivers
parent604c7d4a5a3cf70949f6e6094bf0d52ee3b4804d (diff)
downloadtalos-obmc-uboot-0ced25beb5c0ee6aefe183c980560bed3d664fdb.tar.gz
talos-obmc-uboot-0ced25beb5c0ee6aefe183c980560bed3d664fdb.zip
video, ipu: make ldb_clock configurable
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/ipu_common.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/video/ipu_common.c b/drivers/video/ipu_common.c
index 5873531953..8ebb205f19 100644
--- a/drivers/video/ipu_common.c
+++ b/drivers/video/ipu_common.c
@@ -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,
};
OpenPOWER on IntegriCloud