Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Alexandre Courbot | 7f936d4 | 2015-07-09 16:33:00 +0900 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2015 |
| 4 | * NVIDIA Corporation <www.nvidia.com> |
Alexandre Courbot | 7f936d4 | 2015-07-09 16:33:00 +0900 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __ASM_ARCH_TEGRA_GPU_H |
| 8 | #define __ASM_ARCH_TEGRA_GPU_H |
| 9 | |
| 10 | #if defined(CONFIG_TEGRA_GPU) |
| 11 | |
Alexandre Courbot | f36729d | 2015-10-19 13:57:03 +0900 | [diff] [blame] | 12 | void tegra_gpu_config(void); |
Alexandre Courbot | 7f936d4 | 2015-07-09 16:33:00 +0900 | [diff] [blame] | 13 | |
| 14 | #else /* CONFIG_TEGRA_GPU */ |
| 15 | |
Alexandre Courbot | f36729d | 2015-10-19 13:57:03 +0900 | [diff] [blame] | 16 | static inline void tegra_gpu_config(void) |
Alexandre Courbot | 7f936d4 | 2015-07-09 16:33:00 +0900 | [diff] [blame] | 17 | { |
| 18 | } |
| 19 | |
Alexandre Courbot | 7f936d4 | 2015-07-09 16:33:00 +0900 | [diff] [blame] | 20 | #endif /* CONFIG_TEGRA_GPU */ |
Alexandre Courbot | 5e270dc | 2015-07-09 16:33:01 +0900 | [diff] [blame] | 21 | |
| 22 | #if defined(CONFIG_OF_LIBFDT) |
| 23 | |
Alexandre Courbot | f36729d | 2015-10-19 13:57:03 +0900 | [diff] [blame] | 24 | int tegra_gpu_enable_node(void *blob, const char *gpupath); |
Alexandre Courbot | 5e270dc | 2015-07-09 16:33:01 +0900 | [diff] [blame] | 25 | |
| 26 | #else /* CONFIG_OF_LIBFDT */ |
| 27 | |
Stephen Warren | f4949cd | 2016-04-12 11:17:39 -0600 | [diff] [blame] | 28 | static inline int tegra_gpu_enable_node(void *blob, const char *compat) |
Alexandre Courbot | 5e270dc | 2015-07-09 16:33:01 +0900 | [diff] [blame] | 29 | { |
| 30 | return 0; |
| 31 | } |
| 32 | |
| 33 | #endif /* CONFIG_OF_LIBFDT */ |
| 34 | |
| 35 | #endif /* __ASM_ARCH_TEGRA_GPU_H */ |