summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h
diff options
context:
space:
mode:
authorMahantesh Kumbar <mkumbar@nvidia.com>2017-05-12 04:28:43 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-13 05:40:16 -0400
commite9267bb3e5624825114fedc03d511035785f2fd7 (patch)
tree06b1e72c311f63c15254f5e13e33e363dea62d39 /drivers/gpu/nvgpu/gk20a/pmu_gk20a.h
parent8c66aef3bdbfbbeb1d3c3ef3bd6b1bee3ac05411 (diff)
gpu: nvgpu: reorganize PMU F/W support
- Moved pmu f/w related support from pmu_gk20a.c to "drivers/gpu/nvgpu/common/pmu/pmu_fw.c" file - Prepended with nvgpu_ for global functions & replaced wherever used - Moved below list related to PMU f/w init/remove, PMU version specific ops, non-secure ucode blob prepare, JIRA NVGPU-56 Change-Id: Ifdad8c560bd233e98728717d5868119e9d8e8d90 Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: http://git-master/r/1480636 GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/pmu_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/pmu_gk20a.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h
index 1d2e20e6..b5038bd4 100644
--- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h
@@ -30,24 +30,6 @@ struct nvgpu_firmware;
30 30
31#define ZBC_MASK(i) (~(~(0) << ((i)+1)) & 0xfffe) 31#define ZBC_MASK(i) (~(~(0) << ((i)+1)) & 0xfffe)
32 32
33#define APP_VERSION_NC_3 22204331
34#define APP_VERSION_NC_2 20429989
35#define APP_VERSION_NC_1 20313802
36#define APP_VERSION_NC_0 20360931
37#define APP_VERSION_GM206 20652057
38#define APP_VERSION_NV_GPU 21307569
39#define APP_VERSION_NV_GPU_1 21308030
40#define APP_VERSION_GM20B_5 20490253
41#define APP_VERSION_GM20B_4 19008461
42#define APP_VERSION_GM20B_3 18935575
43#define APP_VERSION_GM20B_2 18694072
44#define APP_VERSION_GM20B_1 18547257
45#define APP_VERSION_GM20B 17615280
46#define APP_VERSION_3 18357968
47#define APP_VERSION_2 18542378
48#define APP_VERSION_1 17997577 /*Obsolete this once 18357968 gets in*/
49#define APP_VERSION_0 16856675
50
51/*Fuse defines*/ 33/*Fuse defines*/
52#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0) 34#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0)
53#define FUSE_GCPLEX_CONFIG_FUSE_0 0x2C8 35#define FUSE_GCPLEX_CONFIG_FUSE_0 0x2C8
@@ -127,11 +109,7 @@ void pmu_copy_from_dmem(struct nvgpu_pmu *pmu,
127 u32 src, u8 *dst, u32 size, u8 port); 109 u32 src, u8 *dst, u32 size, u8 port);
128int pmu_reset(struct nvgpu_pmu *pmu); 110int pmu_reset(struct nvgpu_pmu *pmu);
129int pmu_bootstrap(struct nvgpu_pmu *pmu); 111int pmu_bootstrap(struct nvgpu_pmu *pmu);
130int gk20a_init_pmu(struct nvgpu_pmu *pmu);
131void pmu_dump_falcon_stats(struct nvgpu_pmu *pmu); 112void pmu_dump_falcon_stats(struct nvgpu_pmu *pmu);
132void gk20a_remove_pmu_support(struct nvgpu_pmu *pmu);
133
134int gk20a_init_pmu(struct nvgpu_pmu *pmu);
135 113
136int gk20a_pmu_ap_send_command(struct gk20a *g, 114int gk20a_pmu_ap_send_command(struct gk20a *g,
137 union pmu_ap_cmd *p_ap_cmd, bool b_block); 115 union pmu_ap_cmd *p_ap_cmd, bool b_block);