Skip to contentSkip to conversation

video, ipu: make ldb clock frequenz overwriteable through board code

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

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 video, ipu: make ldb clock frequenz overwriteable through board code

the ldb clock can be setup in board code (for example set through PLL5). Update the ldb_clock rate also through board code.

This should be removed, if a clock framework is availiable.

---

Changes in v2:
- add comment from Eric Nelson
- move ipu_set_ldb_clock() from drivers/video/ipu.h to imx-common/video.h
- remove g_ldb_clk with ldb_clk.rate, call ldb_clk directly, instead of using g_ldb_clk
- add Tested-by from Eric Nelson

 arch/arm/include/asm/imx-common/video.h | 1 +
 drivers/video/ipu.h                     | 1 -
 drivers/video/ipu_common.c              | 8 ++++++++
 3 files changed, 9 insertions(+), 1 deletion(-)
arch/arm/include/asm/imx-common/video.h +1 -0
index 1a907d4..cad5f86 100644
@@ -26,4 +26,5 @@ extern struct display_info_t const displays[];
 extern size_t display_count;
 #endif
 
+int ipu_set_ldb_clock(int rate);
 #endif
drivers/video/ipu.h +0 -1
index 091b58f..348be58 100644
@@ -265,5 +265,4 @@ int ipu_dp_init(ipu_channel_t channel, uint32_t in_pixel_fmt,
 void ipu_dp_uninit(ipu_channel_t channel);
 void ipu_dp_dc_disable(ipu_channel_t channel, unsigned char swap);
 ipu_color_space_t format_to_colorspace(uint32_t fmt);
-
 #endif
drivers/video/ipu_common.c +8 -0
index 8ebb205..c851e4f 100644
@@ -1198,3 +1198,11 @@ ipu_color_space_t format_to_colorspace(uint32_t fmt)
 	}
 	return RGB;
 }
+
+/* should removed when clk framework is availiable */
+int ipu_set_ldb_clock(int rate)
+{
+	ldb_clk.rate = rate;
+
+	return 0;
+}
Signature · 1 line
2.1.0
#1 lore raw

PATCH v2 1/1 video, ipu: make ldb clock frequenz overwriteable through board code

Quoted 18 lines · On Mon, 20 Apr 2015 07:53:48 +0200 Heiko Schocher <[email protected]> wrote:

the ldb clock can be setup in board code (for example set through PLL5). Update the ldb_clock rate also through board code.

This should be removed, if a clock framework is availiable.

---

Changes in v2:
- add comment from Eric Nelson
- move ipu_set_ldb_clock() from drivers/video/ipu.h to imx-common/video.h
- remove g_ldb_clk with ldb_clk.rate, call ldb_clk directly, instead of using g_ldb_clk
- add Tested-by from Eric Nelson

Quoted 4 lines
 arch/arm/include/asm/imx-common/video.h | 1 +
 drivers/video/ipu.h                     | 1 -
 drivers/video/ipu_common.c              | 8 ++++++++
 3 files changed, 9 insertions(+), 1 deletion(-)

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

--
Anatolij