clk: qcom: mdss: Update dfps data struct for FB targets

Update the dfps data struct by conditionally removing the
pll_codes_3 memmber. This is to align the data struct used
by the PLL driver in FB based targets with the same data
struct used by the bootloader.

Change-Id: I47708f4e49393f49bcdc60b87b167b965d1ce3e2
Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
This commit is contained in:
Nirmal Abraham 2020-09-01 20:25:33 +05:30
parent fc2864d771
commit 3ee5dd66b1

View file

@ -53,11 +53,18 @@ enum {
};
#define DFPS_MAX_NUM_OF_FRAME_RATES 16
#ifdef CONFIG_FB_MSM_MDSS
#define PLL_TRIM_CODES_SIZE 2
#else
#define PLL_TRIM_CODES_SIZE 3
#endif
struct dfps_pll_codes {
uint32_t pll_codes_1;
uint32_t pll_codes_2;
#ifndef CONFIG_FB_MSM_MDSS
uint32_t pll_codes_3;
#endif
};
struct dfps_codes_info {
@ -143,7 +150,7 @@ struct mdss_pll_resources {
/*
* caching the pll trim codes in the case of dynamic refresh
*/
int cache_pll_trim_codes[3];
int cache_pll_trim_codes[PLL_TRIM_CODES_SIZE];
/*
* for maintaining the status of saving trim codes