2015-07-09 07:33:00 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2015
|
|
|
|
* NVIDIA Corporation <www.nvidia.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_ARCH_TEGRA_GPU_H
|
|
|
|
#define __ASM_ARCH_TEGRA_GPU_H
|
|
|
|
|
|
|
|
#if defined(CONFIG_TEGRA_GPU)
|
|
|
|
|
2015-10-19 04:57:03 +00:00
|
|
|
void tegra_gpu_config(void);
|
2015-07-09 07:33:00 +00:00
|
|
|
|
|
|
|
#else /* CONFIG_TEGRA_GPU */
|
|
|
|
|
2015-10-19 04:57:03 +00:00
|
|
|
static inline void tegra_gpu_config(void)
|
2015-07-09 07:33:00 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CONFIG_TEGRA_GPU */
|
2015-07-09 07:33:01 +00:00
|
|
|
|
|
|
|
#if defined(CONFIG_OF_LIBFDT)
|
|
|
|
|
2015-10-19 04:57:03 +00:00
|
|
|
int tegra_gpu_enable_node(void *blob, const char *gpupath);
|
2015-07-09 07:33:01 +00:00
|
|
|
|
|
|
|
#else /* CONFIG_OF_LIBFDT */
|
|
|
|
|
2016-04-12 17:17:39 +00:00
|
|
|
static inline int tegra_gpu_enable_node(void *blob, const char *compat)
|
2015-07-09 07:33:01 +00:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CONFIG_OF_LIBFDT */
|
|
|
|
|
|
|
|
#endif /* __ASM_ARCH_TEGRA_GPU_H */
|