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 | |
| 13 | void config_gpu(void); |
| 14 | bool gpu_configured(void); |
| 15 | |
| 16 | #else /* CONFIG_TEGRA_GPU */ |
| 17 | |
| 18 | static inline void config_gpu(void) |
| 19 | { |
| 20 | } |
| 21 | |
| 22 | static inline bool gpu_configured(void) |
| 23 | { |
| 24 | return false; |
| 25 | } |
| 26 | |
| 27 | #endif /* CONFIG_TEGRA_GPU */ |
Alexandre Courbot | 5e270dc | 2015-07-09 16:33:01 +0900 | [diff] [blame^] | 28 | |
| 29 | #if defined(CONFIG_OF_LIBFDT) |
| 30 | |
| 31 | int gpu_enable_node(void *blob, const char *gpupath); |
| 32 | |
| 33 | #else /* CONFIG_OF_LIBFDT */ |
| 34 | |
| 35 | static inline int gpu_enable_node(void *blob, const char *gpupath) |
| 36 | { |
| 37 | return 0; |
| 38 | } |
| 39 | |
| 40 | #endif /* CONFIG_OF_LIBFDT */ |
| 41 | |
| 42 | #endif /* __ASM_ARCH_TEGRA_GPU_H */ |