diff options
author | Heiko Schocher <hs@denx.de> | 2015-04-20 05:53:48 (GMT) |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2015-04-20 07:36:59 (GMT) |
commit | cb9f8e6a737e60f460896111b32bbebc45aa1cd1 (patch) | |
tree | 1a85ecf3f8386908b57ada54da064bc6194af436 /drivers/video/ipu_common.c | |
parent | 0ced25beb5c0ee6aefe183c980560bed3d664fdb (diff) | |
download | u-boot-cb9f8e6a737e60f460896111b32bbebc45aa1cd1.tar.xz |
video, ipu: make ldb clock frequency overwritable 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.
Signed-off-by: Heiko Schocher <hs@denx.de>
Tested-by: Eric Nelson <eric.nelson@boundarydevices.com>
Diffstat (limited to 'drivers/video/ipu_common.c')
-rw-r--r-- | drivers/video/ipu_common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/video/ipu_common.c b/drivers/video/ipu_common.c index 8ebb205..9f85102 100644 --- a/drivers/video/ipu_common.c +++ b/drivers/video/ipu_common.c @@ -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; +} |