summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorJordan Crouse <jcrouse@codeaurora.org>2016-02-10 09:28:52 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:20:35 -0700
commit5c39fe697f6abd54232138db60b9b9799750ff5e (patch)
tree16d153c873708af24831680877bab226fca9f825 /include/uapi/linux
parent8cd1ff747dc11e94147d11ffc6920485e956827a (diff)
msm: kgsl: Set the DDR high bank bit if specified in the device tree
On 5XX targets we need to program the bit of the highest DDR bank into a number of registers, one of which is protected which would cause problems if the user mode driver tried to write to it. Specify the high bank bit in the device tree files, set the problematic register in the kernel and then pass the value up to the user mode driver as a property and let them program the other registers. This makes the device tree the authoratative source of the high bit value which is exactly how it should be. If the value isn't specified by the device tree for whatever reason return an error for the property request - that will give the UMD a clue that the value wasn't specified and they should just set a default. CRs-Fixed: 970272 Change-Id: Ic0dedbad830321329b74da7fa3e172fdaf765c4d Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/msm_kgsl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/msm_kgsl.h b/include/uapi/linux/msm_kgsl.h
index fb944467f75b..f7c8ac15f21b 100644
--- a/include/uapi/linux/msm_kgsl.h
+++ b/include/uapi/linux/msm_kgsl.h
@@ -302,6 +302,7 @@ enum kgsl_timestamp_type {
#define KGSL_PROP_SP_GENERIC_MEM 0x14
#define KGSL_PROP_UCODE_VERSION 0x15
#define KGSL_PROP_GPMU_VERSION 0x16
+#define KGSL_PROP_HIGHEST_BANK_BIT 0x17
struct kgsl_shadowprop {
unsigned long gpuaddr;