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

Commit cbf362d7 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: Add a function to identify A630v2"

parents 88c49091 24029597
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1172,6 +1172,12 @@ static inline int adreno_is_a630v1(struct adreno_device *adreno_dev)
		(ADRENO_CHIPID_PATCH(adreno_dev->chipid) == 0);
}

static inline int adreno_is_a630v2(struct adreno_device *adreno_dev)
{
	return (ADRENO_GPUREV(adreno_dev) == ADRENO_REV_A630) &&
		(ADRENO_CHIPID_PATCH(adreno_dev->chipid) == 1);
}

/*
 * adreno_checkreg_off() - Checks the validity of a register enum
 * @adreno_dev:		Pointer to adreno device