ARM: tegra: move VPR configuration to a later stage
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>
This commit is contained in:
committed by
Tom Warren
parent
95486f843b
commit
871d78ed1b
@@ -64,15 +64,6 @@ int tegra_get_sku_info(void);
|
||||
/* Do any chip-specific cache config */
|
||||
void config_cache(void);
|
||||
|
||||
#if defined(CONFIG_TEGRA124) || defined(CONFIG_TEGRA210)
|
||||
/* Do chip-specific vpr config */
|
||||
void config_vpr(void);
|
||||
#else
|
||||
static inline void config_vpr(void)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_TEGRA_SUPPORT_NON_SECURE)
|
||||
bool tegra_cpu_is_non_secure(void);
|
||||
#endif
|
||||
|
||||
27
arch/arm/include/asm/arch-tegra/gpu.h
Normal file
27
arch/arm/include/asm/arch-tegra/gpu.h
Normal file
@@ -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 */
|
||||
Reference in New Issue
Block a user