soc/qualcomm/sc7280: Add support to configure 6bit color depth

Some of the eDp panels use 6bit color depth as default.
Set the default color depth configuration to 6 bit when there
is no match with the supported color depths.

BUG=b:255870643
TEST=Validated on sc7280 Zombie development board

Change-Id: I2cea10ad417a05f020e4c418f15212fee06a2369
Signed-off-by: Vinod Polimera <quic_vpolimer@quicinc.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72744
Reviewed-by: Shelley Chen <shchen@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Vinod Polimera 2023-02-03 10:59:56 +05:30 committed by Felix Held
parent a21df14924
commit 50bdc61cff
1 changed files with 4 additions and 1 deletions

View File

@ -493,6 +493,9 @@ static void edp_config_ctrl(struct edp_ctrl *ctrl, uint8_t *dpcd)
depth = EDP_12BIT; depth = EDP_12BIT;
else if (ctrl->color_depth == 16) else if (ctrl->color_depth == 16)
depth = EDP_16BIT; depth = EDP_16BIT;
else
depth = EDP_6BIT;
config |= depth << EDP_CONFIGURATION_CTRL_BPC_SHIFT; config |= depth << EDP_CONFIGURATION_CTRL_BPC_SHIFT;
/* Num of Lanes */ /* Num of Lanes */
@ -895,7 +898,7 @@ static int edp_do_link_train(struct edp_ctrl *ctrl, uint8_t *dpcd)
static void edp_ctrl_config_misc(struct edp_ctrl *ctrl) static void edp_ctrl_config_misc(struct edp_ctrl *ctrl)
{ {
uint32_t misc_val; uint32_t misc_val;
enum edp_color_depth depth = EDP_8BIT; enum edp_color_depth depth = EDP_6BIT;
misc_val = read32(&edp_lclk->misc1_misc0); misc_val = read32(&edp_lclk->misc1_misc0);
if (ctrl->color_depth == 8) if (ctrl->color_depth == 8)