Files
linux-nv-oot/include/linux/tegra-oot-prod.h
Laxman Dewangan 1dd2ef3473 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
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-10 08:33:42 -08:00

21 lines
489 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 defined(CONFIG_TEGRA_PROD_NEXT_GEN)
#include <soc/tegra/tegra-prod.h>
#include <linux/tegra-prod-legacy-dummy.h>
#elif defined(CONFIG_TEGRA_PROD_LEGACY)
#include <linux/tegra_prod.h>
#else
#include <linux/tegra-prod-legacy-dummy.h>
#endif
#endif /* _TEGRA_OOT_PRODS_H */