pcie: private-soc: Add dummy driver for soc specific pcie driver

The L4T packaging needs the soc specific dummy driver to be
available always. However, it is not available in generic build and
it creates the packaging/configuration fail.

Add soc specific dummy driver for pcie so that the respective binary
should be available always.

Bug 4695516

Change-Id: Ic40e60a12de35cebc7e9acec9b09e39aa267276b
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3154314
Tested-by: Ashish Mhetre <amhetre@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
This commit is contained in:
Laxman Dewangan
2024-06-10 10:29:39 +00:00
committed by mobile promotions
parent e44802987e
commit 1cf1d3f858
2 changed files with 21 additions and 0 deletions

View File

@@ -8,3 +8,9 @@
# file is just place-holder for empty Makefile to avoid any build
# issue when copy is not done from command line and building
# the tree independent of source copy.
# Exception: Adding the dummy driver for T264. It will be override by actual
# SOC specific driver.
obj-m += pcie-tegra264.o
pcie-tegra264-objs := pcie-tegra-soc-dummy.o

View File

@@ -0,0 +1,15 @@
// SPDX-License-Identifier: GPL-2.0-only
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#include <linux/module.h>
/* Dummy implementation for module */
static int __init pcie_tegra_soc_dummy_init(void)
{
return 0;
}
device_initcall(pcie_tegra_soc_dummy_init);
MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>");
MODULE_DESCRIPTION("PCIE tegra dummy driver");
MODULE_LICENSE("GPL");