]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
video, ipu: make ldb clock frequency overwritable through board code
authorHeiko Schocher <hs@denx.de>
Mon, 20 Apr 2015 05:53:48 +0000 (07:53 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:29:17 +0000 (22:29 +0200)
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.

Signed-off-by: Heiko Schocher <hs@denx.de>
Tested-by: Eric Nelson <eric.nelson@boundarydevices.com>
arch/arm/include/asm/imx-common/video.h
drivers/video/ipu_common.c
include/ipu.h

index 1a907d44e405a4a51898f9d3eab6da833101633b..cad5f861cb857ed91af00f5304c5ec7b9e73440b 100644 (file)
@@ -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
index 18fc606f60fe551ea2c5e654f1c293d4f6a71b07..7ed24376c0c11c7c0deceb03ba5d6eeb28df0055 100644 (file)
@@ -1168,3 +1168,11 @@ ipu_color_space_t format_to_colorspace(uint32_t fmt)
        }
        return RGB;
 }
+
+/* should be removed when clk framework is availiable */
+int ipu_set_ldb_clock(int rate)
+{
+       ldb_clk.rate = rate;
+
+       return 0;
+}
index b1143a42703bea06da690667e9df211f10b5dc92..3b44613490d93051c00c93de53b95381df72cf0f 100644 (file)
@@ -290,5 +290,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 /* __IPU_H */
+#endif