blob: d4d6deb4947fd9a6fbd38fec1f0decd7f09b7b10 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Alexandre Courbot7f936d42015-07-09 16:33:00 +09002/*
3 * (C) Copyright 2015
4 * NVIDIA Corporation <www.nvidia.com>
Alexandre Courbot7f936d42015-07-09 16:33:00 +09005 */
6
7#ifndef __ASM_ARCH_TEGRA_GPU_H
8#define __ASM_ARCH_TEGRA_GPU_H
9
10#if defined(CONFIG_TEGRA_GPU)
11
Alexandre Courbotf36729d2015-10-19 13:57:03 +090012void tegra_gpu_config(void);
Alexandre Courbot7f936d42015-07-09 16:33:00 +090013
14#else /* CONFIG_TEGRA_GPU */
15
Alexandre Courbotf36729d2015-10-19 13:57:03 +090016static inline void tegra_gpu_config(void)
Alexandre Courbot7f936d42015-07-09 16:33:00 +090017{
18}
19
Alexandre Courbot7f936d42015-07-09 16:33:00 +090020#endif /* CONFIG_TEGRA_GPU */
Alexandre Courbot5e270dc2015-07-09 16:33:01 +090021
22#if defined(CONFIG_OF_LIBFDT)
23
Alexandre Courbotf36729d2015-10-19 13:57:03 +090024int tegra_gpu_enable_node(void *blob, const char *gpupath);
Alexandre Courbot5e270dc2015-07-09 16:33:01 +090025
26#else /* CONFIG_OF_LIBFDT */
27
Stephen Warrenf4949cd2016-04-12 11:17:39 -060028static inline int tegra_gpu_enable_node(void *blob, const char *compat)
Alexandre Courbot5e270dc2015-07-09 16:33:01 +090029{
30 return 0;
31}
32
33#endif /* CONFIG_OF_LIBFDT */
34
35#endif /* __ASM_ARCH_TEGRA_GPU_H */