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

Commit 24029597 authored by Kyle Piefer's avatar Kyle Piefer Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Add a function to identify A630v2



A630v2 requires some specific programming changes.
Add a helper function to identify v2.

CRs-Fixed: 2085877
Change-Id: I30d2324d4e1ced42606502ab75e5da463844286b
Signed-off-by: default avatarKyle Piefer <kpiefer@codeaurora.org>
parent 5bc5bb65
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