diff options
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/platform_gp10b.h | 25 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | 6 |
2 files changed, 28 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b.h b/drivers/gpu/nvgpu/gp10b/platform_gp10b.h new file mode 100644 index 00000000..66261989 --- /dev/null +++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * GP10B Platform (SoC) Interface | ||
3 | * | ||
4 | * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms and conditions of the GNU General Public License, | ||
8 | * version 2, as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
13 | * more details. | ||
14 | */ | ||
15 | |||
16 | #ifndef _GP10B_PLATFORM_H_ | ||
17 | #define _GP10B_PLATFORM_H_ | ||
18 | |||
19 | struct device; | ||
20 | |||
21 | int gp10b_tegra_get_clocks(struct device *dev); | ||
22 | int gp10b_tegra_reset_assert(struct device *dev); | ||
23 | int gp10b_tegra_reset_deassert(struct device *dev); | ||
24 | |||
25 | #endif | ||
diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c index 90d0bb57..6795c99a 100644 --- a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | |||
@@ -69,7 +69,7 @@ static void gr_gp10b_remove_sysfs(struct device *dev); | |||
69 | * the clock information to gp10b platform data. | 69 | * the clock information to gp10b platform data. |
70 | */ | 70 | */ |
71 | 71 | ||
72 | static int gp10b_tegra_get_clocks(struct device *dev) | 72 | int gp10b_tegra_get_clocks(struct device *dev) |
73 | { | 73 | { |
74 | struct gk20a_platform *platform = dev_get_drvdata(dev); | 74 | struct gk20a_platform *platform = dev_get_drvdata(dev); |
75 | unsigned int i; | 75 | unsigned int i; |
@@ -264,7 +264,7 @@ static int gp10b_tegra_suspend(struct device *dev) | |||
264 | return 0; | 264 | return 0; |
265 | } | 265 | } |
266 | 266 | ||
267 | static int gp10b_tegra_reset_assert(struct device *dev) | 267 | int gp10b_tegra_reset_assert(struct device *dev) |
268 | { | 268 | { |
269 | struct gk20a_platform *platform = gk20a_get_platform(dev); | 269 | struct gk20a_platform *platform = gk20a_get_platform(dev); |
270 | int ret = 0; | 270 | int ret = 0; |
@@ -277,7 +277,7 @@ static int gp10b_tegra_reset_assert(struct device *dev) | |||
277 | return ret; | 277 | return ret; |
278 | } | 278 | } |
279 | 279 | ||
280 | static int gp10b_tegra_reset_deassert(struct device *dev) | 280 | int gp10b_tegra_reset_deassert(struct device *dev) |
281 | { | 281 | { |
282 | struct gk20a_platform *platform = gk20a_get_platform(dev); | 282 | struct gk20a_platform *platform = gk20a_get_platform(dev); |
283 | int ret = 0; | 283 | int ret = 0; |