Loading msm/sde/sde_hw_catalog.c +12 −8 Original line number Diff line number Diff line Loading @@ -41,8 +41,11 @@ /* max mixer blend stages */ #define DEFAULT_SDE_MIXER_BLENDSTAGES 7 /* max bank bit for macro tile and ubwc format */ #define DEFAULT_SDE_HIGHEST_BANK_BIT 15 /* * max bank bit for macro tile and ubwc format. * this value is left shifted and written to register */ #define DEFAULT_SDE_HIGHEST_BANK_BIT 0x02 /* default ubwc version */ #define DEFAULT_SDE_UBWC_VERSION SDE_HW_UBWC_VER_10 Loading Loading @@ -3098,19 +3101,20 @@ static int _sde_parse_prop_check(struct sde_mdss_cfg *cfg, if (!prop_exists[WB_LINEWIDTH]) cfg->max_wb_linewidth = DEFAULT_SDE_LINE_WIDTH; cfg->ubwc_version = SDE_HW_UBWC_VER(PROP_VALUE_ACCESS(prop_value, UBWC_VERSION, 0)); if (!prop_exists[UBWC_VERSION]) cfg->ubwc_version = DEFAULT_SDE_UBWC_VERSION; cfg->mdp[0].highest_bank_bit = PROP_VALUE_ACCESS(prop_value, BANK_BIT, 0); if (!prop_exists[BANK_BIT]) cfg->mdp[0].highest_bank_bit = DEFAULT_SDE_HIGHEST_BANK_BIT; if (of_fdt_get_ddrtype() == LP_DDR4_TYPE) if (cfg->ubwc_version == SDE_HW_UBWC_VER_40 && of_fdt_get_ddrtype() == LP_DDR4_TYPE) cfg->mdp[0].highest_bank_bit = 0x02; cfg->ubwc_version = SDE_HW_UBWC_VER(PROP_VALUE_ACCESS(prop_value, UBWC_VERSION, 0)); if (!prop_exists[UBWC_VERSION]) cfg->ubwc_version = DEFAULT_SDE_UBWC_VERSION; cfg->macrotile_mode = PROP_VALUE_ACCESS(prop_value, MACROTILE_MODE, 0); if (!prop_exists[MACROTILE_MODE]) cfg->macrotile_mode = DEFAULT_SDE_UBWC_MACROTILE_MODE; Loading Loading
msm/sde/sde_hw_catalog.c +12 −8 Original line number Diff line number Diff line Loading @@ -41,8 +41,11 @@ /* max mixer blend stages */ #define DEFAULT_SDE_MIXER_BLENDSTAGES 7 /* max bank bit for macro tile and ubwc format */ #define DEFAULT_SDE_HIGHEST_BANK_BIT 15 /* * max bank bit for macro tile and ubwc format. * this value is left shifted and written to register */ #define DEFAULT_SDE_HIGHEST_BANK_BIT 0x02 /* default ubwc version */ #define DEFAULT_SDE_UBWC_VERSION SDE_HW_UBWC_VER_10 Loading Loading @@ -3098,19 +3101,20 @@ static int _sde_parse_prop_check(struct sde_mdss_cfg *cfg, if (!prop_exists[WB_LINEWIDTH]) cfg->max_wb_linewidth = DEFAULT_SDE_LINE_WIDTH; cfg->ubwc_version = SDE_HW_UBWC_VER(PROP_VALUE_ACCESS(prop_value, UBWC_VERSION, 0)); if (!prop_exists[UBWC_VERSION]) cfg->ubwc_version = DEFAULT_SDE_UBWC_VERSION; cfg->mdp[0].highest_bank_bit = PROP_VALUE_ACCESS(prop_value, BANK_BIT, 0); if (!prop_exists[BANK_BIT]) cfg->mdp[0].highest_bank_bit = DEFAULT_SDE_HIGHEST_BANK_BIT; if (of_fdt_get_ddrtype() == LP_DDR4_TYPE) if (cfg->ubwc_version == SDE_HW_UBWC_VER_40 && of_fdt_get_ddrtype() == LP_DDR4_TYPE) cfg->mdp[0].highest_bank_bit = 0x02; cfg->ubwc_version = SDE_HW_UBWC_VER(PROP_VALUE_ACCESS(prop_value, UBWC_VERSION, 0)); if (!prop_exists[UBWC_VERSION]) cfg->ubwc_version = DEFAULT_SDE_UBWC_VERSION; cfg->macrotile_mode = PROP_VALUE_ACCESS(prop_value, MACROTILE_MODE, 0); if (!prop_exists[MACROTILE_MODE]) cfg->macrotile_mode = DEFAULT_SDE_UBWC_MACROTILE_MODE; Loading