3 * NVIDIA Corporation <www.nvidia.com>
5 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef __ASM_ARCH_TEGRA_GPU_H
9 #define __ASM_ARCH_TEGRA_GPU_H
11 #if defined(CONFIG_TEGRA_GPU)
13 void config_gpu(void);
14 bool gpu_configured(void);
16 #else /* CONFIG_TEGRA_GPU */
18 static inline void config_gpu(void)
22 static inline bool gpu_configured(void)
27 #endif /* CONFIG_TEGRA_GPU */
29 #if defined(CONFIG_OF_LIBFDT)
31 int gpu_enable_node(void *blob, const char *gpupath);
33 #else /* CONFIG_OF_LIBFDT */
35 static inline int gpu_enable_node(void *blob, const char *gpupath)
40 #endif /* CONFIG_OF_LIBFDT */
42 #endif /* __ASM_ARCH_TEGRA_GPU_H */