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

Commit 6d60e4d6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: A430 has more protected mode registers available"

parents c2b53269 649d3b58
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1143,7 +1143,11 @@ static inline void adreno_set_protected_registers(struct kgsl_device *device,
	unsigned int val;
	struct adreno_device *adreno_dev = ADRENO_DEVICE(device);

	/* There are only 16 registers available */
	/* A430 has 24 registers (yay!).  Everything else has 16 (boo!) */

	if (adreno_is_a430(adreno_dev))
		BUG_ON(*index >= 24);
	else
		BUG_ON(*index >= 16);

	val = 0x60000000 | ((mask_len & 0x1F) << 24) | ((reg << 2) & 0xFFFFF);