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