target: msm8994: extend DSI adjustment offset to DSI PHY/PLL/regulator
For msm8992, the DSI adjustment offset API only checks for DSI controller
base adjustments. Add support to check the adjustments for other register
base as well.
Change-Id: I430989857294755cd8b6ca93bbc469186d6aef80
diff --git a/target/msm8994/target_display.c b/target/msm8994/target_display.c
index bb3fa2f..2384b1f 100644
--- a/target/msm8994/target_display.c
+++ b/target/msm8994/target_display.c
@@ -589,9 +589,11 @@
int target_display_get_base_offset(uint32_t base)
{
if(platform_is_msm8992()) {
- if (base == MIPI_DSI0_BASE)
+ if ((base == MIPI_DSI0_BASE) || (base == DSI0_PHY_BASE) ||
+ (base == DSI0_PLL_BASE) || (base == DSI0_REGULATOR_BASE))
return DSI0_BASE_ADJUST;
- else if (base == MIPI_DSI1_BASE)
+ else if ((base == MIPI_DSI1_BASE) || (base == DSI1_PHY_BASE) ||
+ (base == DSI1_PLL_BASE))
return DSI1_BASE_ADJUST;
}