mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
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>
This commit is contained in:
parent
0ced25beb5
commit
cb9f8e6a73
3 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue