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

Commit 51d6641a authored by Samantha Tran's avatar Samantha Tran Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: enable highest banking bit switching



While parsing device tree, this change will check for
DDR version and set the highest banking bit based
on revision.

Change-Id: Iec7e32bf454e64fcf149e75c9d7158f4a6f048d3
Signed-off-by: default avatarSamantha Tran <samtran@codeaurora.org>
parent 6e1d8d68
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3002,6 +3002,9 @@ static int _sde_parse_prop_check(struct sde_mdss_cfg *cfg,
	if (!prop_exists[BANK_BIT])
		cfg->mdp[0].highest_bank_bit = DEFAULT_SDE_HIGHEST_BANK_BIT;

	if (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])
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
#include <linux/bitmap.h>
#include <linux/err.h>
#include <linux/msm-bus.h>
#include <linux/of_fdt.h>
#include <drm/drmP.h>

/**