drm/bridge: tc358767: Set LSCLK divider for SYSCLK to 1
The only information in the datasheet regarding this divider is a note in SYS_PLLPARAM register documentation which states that when LSCLK is 270 MHz, LSCLK_DIV should be 1. What should LSCLK_DIV be set to when LSCLK is 162 MHz (for DP 1.62G mode) is unclear, but empirical test confirms using LSCLK_DIV 1 has no adverse effects either. In the worst case, the internal TC358767 clock would run faster. Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com> Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Robert Foss <rfoss@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240625120334.145320-4-marex@denx.de
This commit is contained in:
parent
3f13e53bcf
commit
9c433c87e8
@ -738,7 +738,7 @@ static int tc_stream_clock_calc(struct tc_data *tc)
|
||||
static int tc_set_syspllparam(struct tc_data *tc)
|
||||
{
|
||||
unsigned long rate;
|
||||
u32 pllparam = SYSCLK_SEL_LSCLK | LSCLK_DIV_2;
|
||||
u32 pllparam = SYSCLK_SEL_LSCLK | LSCLK_DIV_1;
|
||||
|
||||
rate = clk_get_rate(tc->refclk);
|
||||
switch (rate) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user