mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-31 22:39:08 +09:00
![Alexandre Courbot](/assets/img/avatar_default.png)
T124/210 requires some specific configuration (VPR setup) to be performed by the bootloader before the GPU can be used. For this reason, the GPU node in the device tree is disabled by default. This patch enables the node if U-boot has performed VPR configuration. Boards enabled by this patch are T124's Jetson TK1 and Venice2 and T210's P2571. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Cc: Stephen Warren <swarren@nvidia.com> Cc: Tom Warren <twarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
43 lines
684 B
C
43 lines
684 B
C
/*
|
|
* (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)
|
|
|
|
void config_gpu(void);
|
|
bool gpu_configured(void);
|
|
|
|
#else /* CONFIG_TEGRA_GPU */
|
|
|
|
static inline void config_gpu(void)
|
|
{
|
|
}
|
|
|
|
static inline bool gpu_configured(void)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
#endif /* CONFIG_TEGRA_GPU */
|
|
|
|
#if defined(CONFIG_OF_LIBFDT)
|
|
|
|
int gpu_enable_node(void *blob, const char *gpupath);
|
|
|
|
#else /* CONFIG_OF_LIBFDT */
|
|
|
|
static inline int gpu_enable_node(void *blob, const char *gpupath)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif /* CONFIG_OF_LIBFDT */
|
|
|
|
#endif /* __ASM_ARCH_TEGRA_GPU_H */
|