xref: /rk3399_rockchip-uboot/arch/arm/include/asm/arch-tegra/gpu.h (revision 52b1eaf93d6b55e1467f97b8eefdc2f8b6031c43)
1871d78edSAlexandre Courbot /*
2871d78edSAlexandre Courbot  *  (C) Copyright 2015
3871d78edSAlexandre Courbot  *  NVIDIA Corporation <www.nvidia.com>
4871d78edSAlexandre Courbot  *
5871d78edSAlexandre Courbot  * SPDX-License-Identifier:	GPL-2.0+
6871d78edSAlexandre Courbot  */
7871d78edSAlexandre Courbot 
8871d78edSAlexandre Courbot #ifndef __ASM_ARCH_TEGRA_GPU_H
9871d78edSAlexandre Courbot #define __ASM_ARCH_TEGRA_GPU_H
10871d78edSAlexandre Courbot 
11871d78edSAlexandre Courbot #if defined(CONFIG_TEGRA_GPU)
12871d78edSAlexandre Courbot 
13eca676bdSAlexandre Courbot void tegra_gpu_config(void);
14871d78edSAlexandre Courbot 
15871d78edSAlexandre Courbot #else /* CONFIG_TEGRA_GPU */
16871d78edSAlexandre Courbot 
tegra_gpu_config(void)17eca676bdSAlexandre Courbot static inline void tegra_gpu_config(void)
18871d78edSAlexandre Courbot {
19871d78edSAlexandre Courbot }
20871d78edSAlexandre Courbot 
21871d78edSAlexandre Courbot #endif /* CONFIG_TEGRA_GPU */
22a38a3c4aSAlexandre Courbot 
23a38a3c4aSAlexandre Courbot #if defined(CONFIG_OF_LIBFDT)
24a38a3c4aSAlexandre Courbot 
25eca676bdSAlexandre Courbot int tegra_gpu_enable_node(void *blob, const char *gpupath);
26a38a3c4aSAlexandre Courbot 
27a38a3c4aSAlexandre Courbot #else /* CONFIG_OF_LIBFDT */
28a38a3c4aSAlexandre Courbot 
tegra_gpu_enable_node(void * blob,const char * compat)29*d9b6f58eSStephen Warren static inline int tegra_gpu_enable_node(void *blob, const char *compat)
30a38a3c4aSAlexandre Courbot {
31a38a3c4aSAlexandre Courbot 	return 0;
32a38a3c4aSAlexandre Courbot }
33a38a3c4aSAlexandre Courbot 
34a38a3c4aSAlexandre Courbot #endif /* CONFIG_OF_LIBFDT */
35a38a3c4aSAlexandre Courbot 
36a38a3c4aSAlexandre Courbot #endif	/* __ASM_ARCH_TEGRA_GPU_H */
37