summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
diff options
context:
space:
mode:
authorSupriya <ssharatkumar@nvidia.com>2015-12-10 02:24:38 -0500
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:10 -0500
commit640d0e2c3b58294cd11f420a5fc8377d490c43d3 (patch)
tree1ea4161fcb84d264c9e3dd8e8d0a446e8aff590e /drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
parent02ee4d418834c99746487b72b04d5f10139eea90 (diff)
gpu: nvgpu: ECC override
-sysfs functions to call into LS PMU and modify ECC overide register Bug 1699676 Change-Id: Iaf6cc3a86160b806e52ab168577caad42b2c5d22 Signed-off-by: Supriya <ssharatkumar@nvidia.com> Reviewed-on: http://git-master/r/921252 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
index 3221e423..c4a5179a 100644
--- a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
+++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
@@ -34,6 +34,7 @@
34#include "ltc_gp10b.h" 34#include "ltc_gp10b.h"
35#include "hw_gr_gp10b.h" 35#include "hw_gr_gp10b.h"
36#include "hw_ltc_gp10b.h" 36#include "hw_ltc_gp10b.h"
37#include "gp10b_sysfs.h"
37 38
38#define GP10B_MAX_SUPPORTED_FREQS 11 39#define GP10B_MAX_SUPPORTED_FREQS 11
39static unsigned long gp10b_freq_table[GP10B_MAX_SUPPORTED_FREQS]; 40static unsigned long gp10b_freq_table[GP10B_MAX_SUPPORTED_FREQS];
@@ -142,7 +143,8 @@ static int gp10b_tegra_late_probe(struct platform_device *pdev)
142{ 143{
143 /* Make gk20a power domain a subdomain of host1x */ 144 /* Make gk20a power domain a subdomain of host1x */
144 nvhost_register_client_domain(dev_to_genpd(&pdev->dev)); 145 nvhost_register_client_domain(dev_to_genpd(&pdev->dev));
145 146 /*Create GP10B specific sysfs*/
147 gp10b_create_sysfs(pdev);
146 return 0; 148 return 0;
147} 149}
148 150
@@ -150,9 +152,9 @@ static int gp10b_tegra_remove(struct platform_device *pdev)
150{ 152{
151 /* remove gk20a power subdomain from host1x */ 153 /* remove gk20a power subdomain from host1x */
152 nvhost_unregister_client_domain(dev_to_genpd(&pdev->dev)); 154 nvhost_unregister_client_domain(dev_to_genpd(&pdev->dev));
153
154 gr_gp10b_remove_sysfs(&pdev->dev); 155 gr_gp10b_remove_sysfs(&pdev->dev);
155 156 /*Remove GP10B specific sysfs*/
157 gp10b_remove_sysfs(&pdev->dev);
156 return 0; 158 return 0;
157 159
158} 160}