Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ee5dd66 authored by Nirmal Abraham's avatar Nirmal Abraham
Browse files

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: default avatarNirmal Abraham <nabrah@codeaurora.org>
parent fc2864d7
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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