]> git.dujemihanovic.xyz Git - u-boot.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)
committerAnatolij Gustschin <agust@denx.de>
Mon, 20 Apr 2015 07:36:59 +0000 (09:36 +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.h
drivers/video/ipu_common.c

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 091b58fb47bfccfa4bc30bfdd9e87006bbafa438..348be58bf6abaa729401d0db9744bdc0cf801c90 100644 (file)
@@ -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
index 8ebb205f19b2e9b4c3f673f465bec3257899aded..9f851029157624605e8ae4450432accf283f3bdc 100644 (file)
@@ -1198,3 +1198,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;
+}