misc: rk628: bt1120-2-hdmi: fix bt1120 timing cfg when switching the resolution

Type: Fix
Redmine ID: N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: Ied0d5322338feee4f59608cd3468444ec1f4dcc7
This commit is contained in:
Zhibin Huang
2024-02-27 12:39:49 +08:00
parent 9c4b50cda3
commit ed082688bf
2 changed files with 13 additions and 2 deletions

View File

@@ -440,8 +440,12 @@ static void rk628_display_enable(struct rk628 *rk628)
if (rk628_input_is_rgb(rk628))
rk628_rgb_rx_enable(rk628);
if (rk628_input_is_bt1120(rk628))
rk628_bt1120_rx_enable(rk628);
/*
* bt1120 needs to configure the timing register, but hdmitx will modify
* the timing as needed, so the bt1120 enable process is moved to the
* configuration of post_process (function rk628_post_process_enable in
* rk628_post_process.c)
*/
if (rk628_output_is_rgb(rk628))
rk628_rgb_tx_enable(rk628);

View File

@@ -10,6 +10,7 @@
#include "rk628_config.h"
#include "rk628_cru.h"
#include "rk628_post_process.h"
#include "rk628_rgb.h"
#define PQ_CSC_HUE_TABLE_NUM 256
#define PQ_CSC_MODE_COEF_COMMENT_LEN 32
@@ -1598,6 +1599,12 @@ static void rk628_post_process_csc(struct rk628 *rk628)
void rk628_post_process_enable(struct rk628 *rk628)
{
/*
* bt1120 needs to configure the timing register, but hdmitx will modify
* the timing as needed, so the bt1120 enable process is moved here.
*/
if (rk628_input_is_bt1120(rk628))
rk628_bt1120_rx_enable(rk628);
rk628_post_process_csc(rk628);
rk628_i2c_write(rk628, GRF_SCALER_CON0, SCL_EN(1));
}