xref: /rk3399_rockchip-uboot/arch/arm/include/asm/arch-tegra/gpu.h (revision 871d78ed1b906a79d8a6dad96a9f83dea7b9170f)
1*871d78edSAlexandre Courbot /*
2*871d78edSAlexandre Courbot  *  (C) Copyright 2015
3*871d78edSAlexandre Courbot  *  NVIDIA Corporation <www.nvidia.com>
4*871d78edSAlexandre Courbot  *
5*871d78edSAlexandre Courbot  * SPDX-License-Identifier:	GPL-2.0+
6*871d78edSAlexandre Courbot  */
7*871d78edSAlexandre Courbot 
8*871d78edSAlexandre Courbot #ifndef __ASM_ARCH_TEGRA_GPU_H
9*871d78edSAlexandre Courbot #define __ASM_ARCH_TEGRA_GPU_H
10*871d78edSAlexandre Courbot 
11*871d78edSAlexandre Courbot #if defined(CONFIG_TEGRA_GPU)
12*871d78edSAlexandre Courbot 
13*871d78edSAlexandre Courbot void config_gpu(void);
14*871d78edSAlexandre Courbot bool gpu_configured(void);
15*871d78edSAlexandre Courbot 
16*871d78edSAlexandre Courbot #else /* CONFIG_TEGRA_GPU */
17*871d78edSAlexandre Courbot 
18*871d78edSAlexandre Courbot static inline void config_gpu(void)
19*871d78edSAlexandre Courbot {
20*871d78edSAlexandre Courbot }
21*871d78edSAlexandre Courbot 
22*871d78edSAlexandre Courbot static inline bool gpu_configured(void)
23*871d78edSAlexandre Courbot {
24*871d78edSAlexandre Courbot 	return false;
25*871d78edSAlexandre Courbot }
26*871d78edSAlexandre Courbot 
27*871d78edSAlexandre Courbot #endif /* CONFIG_TEGRA_GPU */
28