mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
Update for Bpmp MRQ Call
Update Bpmp MRQ Call Api to use bpmp dtb node in mods dtb devices Used by MODS PCIE Test for bpmp uphy api JIRA: TM-586 Change-Id: I67b34979151fa57fd1707b2393237828f2c23cef Signed-off-by: Carl Dong <carld@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2577098 Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Danny Li <dali@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
62a67b00a8
commit
df0985a449
@@ -2,7 +2,7 @@
|
||||
/*
|
||||
* mods_internal.h - This file is part of NVIDIA MODS kernel driver.
|
||||
*
|
||||
* Copyright (c) 2008-2021, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2008-2021, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* NVIDIA MODS kernel driver is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License,
|
||||
@@ -38,6 +38,11 @@
|
||||
#include <linux/set_memory.h>
|
||||
#endif
|
||||
|
||||
#if KERNEL_VERSION(5, 1, 0) <= LINUX_VERSION_CODE
|
||||
#define MODS_ENABLE_BPMP_MRQ_API
|
||||
#include <soc/tegra/bpmp.h>
|
||||
#endif
|
||||
|
||||
#ifndef true
|
||||
#define true 1
|
||||
#define false 0
|
||||
@@ -205,6 +210,10 @@ struct SYS_MAP_MEMORY {
|
||||
|
||||
struct mods_smmu_dev {
|
||||
struct device *dev;
|
||||
#ifdef MODS_ENABLE_BPMP_MRQ_API
|
||||
struct tegra_bpmp *bpmp; //bpmp node for mrq
|
||||
int cid; //pcie ctrl id
|
||||
#endif
|
||||
char dev_name[MAX_DT_SIZE];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user