Part Number: PROCESSOR-SDK-AM62X
Other Parts Discussed in Thread: AM625
Hi,
I am using am62x based custom board.
Is it possible to configure the clock of oldi and rgb? not the panel clock.
Thanks.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: PROCESSOR-SDK-AM62X
Other Parts Discussed in Thread: AM625
Hi,
I am using am62x based custom board.
Is it possible to configure the clock of oldi and rgb? not the panel clock.
Thanks.
Hello,
In general, the driver needs to request for a clock and the system firmware will generate the appropriate signals. Could you please share more details about your usecase and what you are trying to achieve?
Regards,
Krunal
Hello,
In the driver you can do something like the following:
int dispc_vp_set_clk_rate(struct dispc_device *dispc, u32 vp_idx,
unsigned long rate)
{
int r;
unsigned long new_rate;
/*
* For AM625 OLDI video ports, the requested pixel clock needs to take into account the
* serial clock required for the serialization of DPI signals into LVDS signals. The
* incoming pixel clock on the OLDI video port gets divided by 7 whenever OLDI enable bit
* gets set.
*/
if (dispc_get_output_type(dispc, vp_idx) == DISPC_OUTPUT_OLDI &&
dispc->feat->subrev == DISPC_AM625)
rate = 170000000;
else if (dispc_get_output_type(dispc, vp_idx) == DISPC_OUTPUT_DPI &&
dispc->feat->subrev == DISPC_AM625)
rate = 165000000;
By setting the rate, you can define the frequency that you desire.
Regards,
Krunal