mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
There is two implementation of the prod setting, legacy where driver directly get the register offset/mask/value and upstreamable where configuration come as property of the respective field. The legacy is supported till K5.15 and afterwards, the upstreamable solution is supported. Add the dummy header incase the core kernel have not implemented the prods and organise the oot prod accordingly. Bug 4097475 Change-Id: Idd0e8759342c1c4ffd88df046785595aa4fab52d Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2996588 GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
27 lines
674 B
C
27 lines
674 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _TEGRA_OOT_PRODS_H
|
|
#define _TEGRA_OOT_PRODS_H
|
|
|
|
#include <linux/version.h>
|
|
|
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0)
|
|
#ifdef CONFIG_TEGRA_PROD_ENABLE
|
|
#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_ENABLE
|
|
#include <linux/tegra_prod.h>
|
|
#else
|
|
#include <linux/tegra-prod-legacy-dummy.h>
|
|
#endif
|
|
#endif /* LINUX_VERSION_CODE */
|
|
#endif /* _TEGRA_OOT_PRODS_H */
|