From a42c0ab9352e6017cbc1f53dad51d01496bb6acd Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Mon, 11 Jun 2018 11:39:24 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1746579 Reviewed-by: svc-mobile-coverity Reviewed-by: Thomas Fleury GVS: Gerrit_Virtual_Submit Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Richard Zhao Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/pci.c | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'drivers/gpu/nvgpu/common/linux/pci.c') 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[] = { .hardcode_sw_threshold = false, .unified_memory = false, }, + { /* 0x1eba */ + /* ptimer src frequency in hz */ + .ptimer_src_freq = 31250000, + + .probe = nvgpu_pci_tegra_probe, + .remove = nvgpu_pci_tegra_remove, + + /* power management configuration */ + .railgate_delay_init = 500, + .can_railgate_init = false, + .can_elpg_init = false, + .enable_elpg = false, + .enable_elcg = false, + .enable_slcg = false, + .enable_blcg = false, + .enable_mscg = false, + .can_slcg = false, + .can_blcg = false, + .can_elcg = false, + + .disable_aspm = true, + + /* power management callbacks */ + .is_railgated = nvgpu_pci_tegra_is_railgated, + .clk_round_rate = nvgpu_pci_clk_round_rate, + + .ch_wdt_timeout_ms = 7000, + + .honors_aperture = true, + .dma_mask = DMA_BIT_MASK(40), + .vbios_min_version = 0x90040109, + .hardcode_sw_threshold = false, + .has_syncpoints = true, + }, }; static struct pci_device_id nvgpu_pci_table[] = { @@ -447,6 +481,12 @@ static struct pci_device_id nvgpu_pci_table[] = { .class_mask = 0xff << 16, .driver_data = 8, }, + { + PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1eba), + .class = PCI_BASE_CLASS_DISPLAY << 16, + .class_mask = 0xff << 16, + .driver_data = 9, + }, {} }; -- cgit v1.2.2