summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm206/bios_gm206.h
diff options
context:
space:
mode:
authorMahantesh Kumbar <mkumbar@nvidia.com>2016-07-18 05:17:20 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-09-08 23:05:58 -0400
commit39c48cb8bfa686692ce2fea3f4fefc3ddfaae5ab (patch)
treeaa23fe7dc474569fe8265ad702a3d92935f9bb01 /drivers/gpu/nvgpu/gm206/bios_gm206.h
parentf56ed459dde2a292b3af0dd4deb96b1090eb53a2 (diff)
gpu: nvgpu: get bios perf and clk table ptr
Implement support for reading perf and clk tables from VBIOS. JIRA DNVGPU-83 Change-Id: I095fea08479161362e4c2ffa7500ee6a57d6d447 Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: http://git-master/r/1202602 (cherry picked from commit fb7c7356f131a198bd655a25fc6ff17067477e1b) Reviewed-on: http://git-master/r/1217299 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm206/bios_gm206.h')
-rw-r--r--drivers/gpu/nvgpu/gm206/bios_gm206.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm206/bios_gm206.h b/drivers/gpu/nvgpu/gm206/bios_gm206.h
index 28bfd7b8..f93e5f58 100644
--- a/drivers/gpu/nvgpu/gm206/bios_gm206.h
+++ b/drivers/gpu/nvgpu/gm206/bios_gm206.h
@@ -13,6 +13,27 @@
13 13
14#ifndef NVGPU_BIOS_GM206_H 14#ifndef NVGPU_BIOS_GM206_H
15#define NVGPU_BIOS_GM206_H 15#define NVGPU_BIOS_GM206_H
16
17#define PERF_PTRS_WIDTH 0x4
18
19enum {
20 CLOCKS_TABLE = 2,
21 CLOCK_PROGRAMMING_TABLE,
22 NAFLL_TABLE,
23 ADC_TABLE,
24};
25
26enum {
27 CONTINUOUS_VIRTUAL_BINNING_TABLE,
28};
29
30struct bit_token {
31 u8 token_id;
32 u8 data_version;
33 u16 data_size;
34 u16 data_ptr;
35} __packed;
36
16struct gpu_ops; 37struct gpu_ops;
17 38
18void gm206_init_bios(struct gpu_ops *gops); 39void gm206_init_bios(struct gpu_ops *gops);