summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorLakshmanan M <lm@nvidia.com>2016-09-08 13:20:59 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-10-27 05:50:54 -0400
commit315d8c6caa3a149b83c9894e94da852a50310c2d (patch)
treedac221b8c28e6eac255df34336c252d92c88a6a4 /drivers/gpu/nvgpu/gk20a/gk20a.h
parentbc9df802feaeff0b1d7d1a2fc964267ebd10058d (diff)
gpu: nvgpu: Add pmgr support
This CL covers the following implementation, 1) Power Sensor Table parsing. 2) Power Topology Table parsing. 3) Add debugfs interface to get the current power(mW), current(mA) and voltage(uV) information from PMU. 4) Power Policy Table Parsing 5) Implement PMU boardobj interface for pmgr module. 6) Over current protection. JIRA DNVGPU-47 Change-Id: I620f4470aa704f1cc920e03947831440fbb0eb05 Signed-off-by: Lakshmanan M <lm@nvidia.com> Reviewed-on: http://git-master/r/1217176 (cherry picked from commit ed56743c2ac8dc325c75f85a82271d2d5ed8d96a) Reviewed-on: http://git-master/r/1241952 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 58e69cbe..22a9ce4c 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -57,9 +57,11 @@ struct acr_desc;
57#ifdef CONFIG_ARCH_TEGRA_18x_SOC 57#ifdef CONFIG_ARCH_TEGRA_18x_SOC
58#include "clk/clk.h" 58#include "clk/clk.h"
59#include "perf/perf.h" 59#include "perf/perf.h"
60#include "pmgr/pmgr.h"
60#endif 61#endif
61#include "gm206/bios_gm206.h" 62#include "gm206/bios_gm206.h"
62 63
64
63/* PTIMER_REF_FREQ_HZ corresponds to a period of 32 nanoseconds. 65/* PTIMER_REF_FREQ_HZ corresponds to a period of 32 nanoseconds.
64 32 ns is the resolution of ptimer. */ 66 32 ns is the resolution of ptimer. */
65#define PTIMER_REF_FREQ_HZ 31250000 67#define PTIMER_REF_FREQ_HZ 31250000
@@ -784,6 +786,7 @@ struct gk20a {
784#ifdef CONFIG_ARCH_TEGRA_18x_SOC 786#ifdef CONFIG_ARCH_TEGRA_18x_SOC
785 struct clk_pmupstate clk_pmu; 787 struct clk_pmupstate clk_pmu;
786 struct perf_pmupstate perf_pmu; 788 struct perf_pmupstate perf_pmu;
789 struct pmgr_pmupstate pmgr_pmu;
787#endif 790#endif
788 791
789#ifdef CONFIG_DEBUG_FS 792#ifdef CONFIG_DEBUG_FS