firmware: Add dummy tegra BPMP driver for Linux 6.6

Tegra BPMP driver is not supported with Linux 6.6. However,
the packaging of the embedded-linux required this driver.
Add dummy driver to complete the packaging till packaging
files have solution to complete with and without this
driver.

Bug 4346767

Change-Id: I113019d6ef25860511683b326f9c90d6ff1e99a3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3012092
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Laxman Dewangan
2023-11-07 15:02:57 +00:00
committed by mobile promotions
parent b6dcd3d9ce
commit 4c575fd98c
2 changed files with 21 additions and 0 deletions

View File

@@ -13,4 +13,8 @@ tegra_bpmp-y += ../../soc/tegra/powergate-bpmp.o
tegra_bpmp-$(CONFIG_DEBUG_FS) += bpmp-debugfs.o tegra_bpmp-$(CONFIG_DEBUG_FS) += bpmp-debugfs.o
tegra_bpmp-y += bpmp-tegra186-hv.o tegra_bpmp-y += bpmp-tegra186-hv.o
obj-m += tegra_bpmp.o obj-m += tegra_bpmp.o
else
# Develop the dummy driver for packaging script temporarily
tegra_bpmp-y = tegra-bpmp-dummy.o
obj-m += tegra_bpmp.o
endif endif

View File

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