Skip to contentSkip to conversation

video, ipu: make ldb_clock configurable

PATCH New Heiko Schocher 2 participants 2 messages Apr 20, 2015 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---

Changes in v2:
- add comment from Eric Nelson
check CONFIG_SYS_LDB_CLOCK default value
- add Tested-by from Eric Nelson

 drivers/video/ipu_common.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/video/ipu_common.c +5 -1
index 5873531..8ebb205 100644
@@ -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,
 };
 
Signature · 1 line
2.1.0
#1 lore raw

PATCH v2 1/1 video, ipu: make ldb_clock configurable

Quoted 7 lines · On Mon, 20 Apr 2015 07:52:21 +0200 Heiko Schocher <[email protected]> wrote:

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.

applied to u-boot-video/master. Thanks!

--
Anatolij