summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/pci.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2018-06-11 14:39:24 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-06-15 00:42:11 -0400
commita42c0ab9352e6017cbc1f53dad51d01496bb6acd (patch)
tree5944b20df783bafec4ee6f8bff7c6e8bf45c8640 /drivers/gpu/nvgpu/common/linux/pci.c
parent9751fb0b5405bb283f5bd884115465443f5f8608 (diff)
gpu: nvgpu: add support for PCI device 0x1eba
Add support for PCI device with ID 0x1eba Add corresponding platform data Change-Id: I2e5fe25666d4c00a6d4d27f0124fa02639f7aebd Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1746579 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Thomas Fleury <tfleury@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Richard Zhao <rizhao@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/pci.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/pci.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/pci.c b/drivers/gpu/nvgpu/common/linux/pci.c
index 871abef4..6b3f1092 100644
--- a/drivers/gpu/nvgpu/common/linux/pci.c
+++ b/drivers/gpu/nvgpu/common/linux/pci.c
@@ -390,6 +390,40 @@ static struct gk20a_platform nvgpu_pci_device[] = {
390 .hardcode_sw_threshold = false, 390 .hardcode_sw_threshold = false,
391 .unified_memory = false, 391 .unified_memory = false,
392 }, 392 },
393 { /* 0x1eba */
394 /* ptimer src frequency in hz */
395 .ptimer_src_freq = 31250000,
396
397 .probe = nvgpu_pci_tegra_probe,
398 .remove = nvgpu_pci_tegra_remove,
399
400 /* power management configuration */
401 .railgate_delay_init = 500,
402 .can_railgate_init = false,
403 .can_elpg_init = false,
404 .enable_elpg = false,
405 .enable_elcg = false,
406 .enable_slcg = false,
407 .enable_blcg = false,
408 .enable_mscg = false,
409 .can_slcg = false,
410 .can_blcg = false,
411 .can_elcg = false,
412
413 .disable_aspm = true,
414
415 /* power management callbacks */
416 .is_railgated = nvgpu_pci_tegra_is_railgated,
417 .clk_round_rate = nvgpu_pci_clk_round_rate,
418
419 .ch_wdt_timeout_ms = 7000,
420
421 .honors_aperture = true,
422 .dma_mask = DMA_BIT_MASK(40),
423 .vbios_min_version = 0x90040109,
424 .hardcode_sw_threshold = false,
425 .has_syncpoints = true,
426 },
393}; 427};
394 428
395static struct pci_device_id nvgpu_pci_table[] = { 429static struct pci_device_id nvgpu_pci_table[] = {
@@ -447,6 +481,12 @@ static struct pci_device_id nvgpu_pci_table[] = {
447 .class_mask = 0xff << 16, 481 .class_mask = 0xff << 16,
448 .driver_data = 8, 482 .driver_data = 8,
449 }, 483 },
484 {
485 PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1eba),
486 .class = PCI_BASE_CLASS_DISPLAY << 16,
487 .class_mask = 0xff << 16,
488 .driver_data = 9,
489 },
450 {} 490 {}
451}; 491};
452 492