summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/volt/volt.h
diff options
context:
space:
mode:
authorMahantesh Kumbar <mkumbar@nvidia.com>2016-09-19 01:37:46 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:56:50 -0500
commit173bdefc92e2e4ef8f1e7e6ead7f86e746bee935 (patch)
tree69d9a43a453e988c54927ade2f5ce04457eaf312 /drivers/gpu/nvgpu/volt/volt.h
parentdb529935a5f50e9e683d44d2eb01d0d76a915792 (diff)
gpu: nvgpu: add support for voltage config
- changes to read voltage tables from VBIOS & create boardobj then send to pmu - Rail, Device & Policy objects are read from VBIOS & created boardobjs - RPC support to load, Set & get voltage. JIRA DNVGPU-122 Change-Id: I61621a514eef9c081a64c4ab066f01dfc28f8402 Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: http://git-master/r/1222774 (cherry picked from commit 9da86d8c2c547623cf5f38c89afeb3f5bb1667ac) Reviewed-on: http://git-master/r/1244656 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/volt/volt.h')
-rw-r--r--drivers/gpu/nvgpu/volt/volt.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/volt/volt.h b/drivers/gpu/nvgpu/volt/volt.h
new file mode 100644
index 00000000..0d64c265
--- /dev/null
+++ b/drivers/gpu/nvgpu/volt/volt.h
@@ -0,0 +1,30 @@
1/*
2* Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
3*
4* This program is free software; you can redistribute it and/or modify it
5* under the terms and conditions of the GNU General Public License,
6* version 2, as published by the Free Software Foundation.
7*
8* This program is distributed in the hope it will be useful, but WITHOUT
9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11* more details.
12*/
13
14#ifndef _VOLT_H_
15#define _VOLT_H_
16
17#include "volt_rail.h"
18#include "volt_dev.h"
19#include "volt_policy.h"
20#include "volt_pmu.h"
21
22#define VOLTAGE_DESCRIPTOR_TABLE_ENTRY_INVALID 0xFF
23
24struct obj_volt {
25 struct voltage_rail_metadata volt_rail_metadata;
26 struct voltage_device_metadata volt_dev_metadata;
27 struct voltage_policy_metadata volt_policy_metadata;
28};
29
30#endif /* DRIVERS_GPU_NVGPU_VOLT_VOLT_H_ */