blob: 2fdb2c5049e6c185831297f8247d011d20b49f4b [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
13void config_gpu(void);
Alexandre Courbot7f936d42015-07-09 16:33:00 +090014
15#else /* CONFIG_TEGRA_GPU */
16
17static inline void config_gpu(void)
18{
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
25int gpu_enable_node(void *blob, const char *gpupath);
26
27#else /* CONFIG_OF_LIBFDT */
28
29static inline int gpu_enable_node(void *blob, const char *gpupath)
30{
31 return 0;
32}
33
34#endif /* CONFIG_OF_LIBFDT */
35
36#endif /* __ASM_ARCH_TEGRA_GPU_H */