mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: add is_pci_gpu
Add a flag is_pci_gpu into platform data and gk20a, to support igpu as pcie device. JIRA NVGPU-9348 Change-Id: Iff1439ebb834b1673cb75ea26ca1e7626e1af0d5 Signed-off-by: Ramalingam C <ramalingamc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2835340 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
4bbc766454
commit
d6be1bdcfe
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* GK20A Platform (SoC) Interface
|
||||
*
|
||||
* Copyright (c) 2014-2022, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2014-2023, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -355,6 +355,9 @@ struct gk20a_platform {
|
||||
|
||||
/* synchronized access to platform->clks */
|
||||
struct nvgpu_mutex clks_lock;
|
||||
|
||||
/* Check if igpu is available as pci device. */
|
||||
bool is_pci_igpu;
|
||||
};
|
||||
|
||||
static inline struct gk20a_platform *gk20a_get_platform(
|
||||
|
||||
Reference in New Issue
Block a user