From 39c48cb8bfa686692ce2fea3f4fefc3ddfaae5ab Mon Sep 17 00:00:00 2001 From: Mahantesh Kumbar Date: Mon, 18 Jul 2016 14:47:20 +0530 Subject: 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 Reviewed-on: http://git-master/r/1202602 (cherry picked from commit fb7c7356f131a198bd655a25fc6ff17067477e1b) Reviewed-on: http://git-master/r/1217299 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gm206/bios_gm206.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'drivers/gpu/nvgpu/gm206/bios_gm206.h') 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 @@ #ifndef NVGPU_BIOS_GM206_H #define NVGPU_BIOS_GM206_H + +#define PERF_PTRS_WIDTH 0x4 + +enum { + CLOCKS_TABLE = 2, + CLOCK_PROGRAMMING_TABLE, + NAFLL_TABLE, + ADC_TABLE, +}; + +enum { + CONTINUOUS_VIRTUAL_BINNING_TABLE, +}; + +struct bit_token { + u8 token_id; + u8 data_version; + u16 data_size; + u16 data_ptr; +} __packed; + struct gpu_ops; void gm206_init_bios(struct gpu_ops *gops); -- cgit v1.2.2