U-boot is responsible for enabling the GPU DT node after all necessary configuration (VPR setup for T124) is performed. In order to be able to check whether this configuration has been performed right before booting the kernel, make it happen during board_init(). Also move VPR configuration into the more generic gpu.c file, which will also host other GPU-related functions, and let boards specify individually whether they need VPR setup or not. 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>master
parent
95486f843b
commit
871d78ed1b
@ -0,0 +1,27 @@ |
||||
/*
|
||||
* (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 */ |
Loading…
Reference in new issue