1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * (C) Copyright 2015 4 * NVIDIA Corporation <www.nvidia.com> 5 */ 6 7 #ifndef __ASM_ARCH_TEGRA_GPU_H 8 #define __ASM_ARCH_TEGRA_GPU_H 9 10 #if defined(CONFIG_TEGRA_GPU) 11 12 void tegra_gpu_config(void); 13 14 #else /* CONFIG_TEGRA_GPU */ 15 16 static inline void tegra_gpu_config(void) 17 { 18 } 19 20 #endif /* CONFIG_TEGRA_GPU */ 21 22 #if defined(CONFIG_OF_LIBFDT) 23 24 int tegra_gpu_enable_node(void *blob, const char *gpupath); 25 26 #else /* CONFIG_OF_LIBFDT */ 27 28 static inline int tegra_gpu_enable_node(void *blob, const char *compat) 29 { 30 return 0; 31 } 32 33 #endif /* CONFIG_OF_LIBFDT */ 34 35 #endif /* __ASM_ARCH_TEGRA_GPU_H */ 36