blob: 4423386f28051071e7453921daf99d40040ebd67 [file] [log] [blame]
Alexandre Courbot7f936d42015-07-09 16:33:00 +09001/*
2 * (C) Copyright 2015
3 * NVIDIA Corporation <www.nvidia.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8#ifndef __ASM_ARCH_TEGRA_GPU_H
9#define __ASM_ARCH_TEGRA_GPU_H
10
11#if defined(CONFIG_TEGRA_GPU)
12
Alexandre Courbotf36729d2015-10-19 13:57:03 +090013void tegra_gpu_config(void);
Alexandre Courbot7f936d42015-07-09 16:33:00 +090014
15#else /* CONFIG_TEGRA_GPU */
16
Alexandre Courbotf36729d2015-10-19 13:57:03 +090017static inline void tegra_gpu_config(void)
Alexandre Courbot7f936d42015-07-09 16:33:00 +090018{
19}
20
Alexandre Courbot7f936d42015-07-09 16:33:00 +090021#endif /* CONFIG_TEGRA_GPU */
Alexandre Courbot5e270dc2015-07-09 16:33:01 +090022
23#if defined(CONFIG_OF_LIBFDT)
24
Alexandre Courbotf36729d2015-10-19 13:57:03 +090025int tegra_gpu_enable_node(void *blob, const char *gpupath);
Alexandre Courbot5e270dc2015-07-09 16:33:01 +090026
27#else /* CONFIG_OF_LIBFDT */
28
Alexandre Courbotf36729d2015-10-19 13:57:03 +090029static inline int tegra_gpu_enable_node(void *blob, const char *gpupath)
Alexandre Courbot5e270dc2015-07-09 16:33:01 +090030{
31 return 0;
32}
33
34#endif /* CONFIG_OF_LIBFDT */
35
36#endif /* __ASM_ARCH_TEGRA_GPU_H */