mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
prod: Add support for legacy and next-gen prod via config
Instead of using the Linux kernel version, use the
configs coming from core kernel to find out whether
legacy or next-gen prod configuration method is used.
This will help on porting changes on any kernel and
configuring via core kernel configs.
Bug 3389584
Change-Id: I19c242c573dd63c7dbecbf87d4ba807857dcf4fb
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3013911
(cherry picked from commit 1dd2ef3473)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3087161
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
e748c978d5
commit
3713d89fdb
@@ -8,19 +8,13 @@
|
||||
|
||||
#include <linux/version.h>
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0)
|
||||
#ifdef CONFIG_TEGRA_PROD_LEGACY
|
||||
#if defined(CONFIG_TEGRA_PROD_NEXT_GEN)
|
||||
#include <soc/tegra/tegra-prod.h>
|
||||
#include <linux/tegra_prod.h>
|
||||
#else
|
||||
#include <linux/tegra-prod-upstream-dummy.h>
|
||||
#include <linux/tegra-prod-legacy-dummy.h>
|
||||
#endif
|
||||
#else /* LINUX_VERSION_CODE */
|
||||
#ifdef CONFIG_TEGRA_PROD_LEGACY
|
||||
#elif defined(CONFIG_TEGRA_PROD_LEGACY)
|
||||
#include <linux/tegra_prod.h>
|
||||
#else
|
||||
#include <linux/tegra-prod-legacy-dummy.h>
|
||||
#endif
|
||||
#endif /* LINUX_VERSION_CODE */
|
||||
|
||||
#endif /* _TEGRA_OOT_PRODS_H */
|
||||
|
||||
Reference in New Issue
Block a user