From db41ae567c21589c59804bf5a41ef3b15ba9984e Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Fri, 13 Jan 2017 15:38:33 -0800 Subject: gpu: nvgpu: enable PG419 SKU610 probing Add PG419 SKU610 compatible device for PCI enumeration Jira DNVGPU-213 Change-Id: Ib2361fa8007b56d852b2e02d27f1c05540f34924 Signed-off-by: Thomas Fleury Reviewed-on: http://git-master/r/1285107 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/pci.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/drivers/gpu/nvgpu/pci.c b/drivers/gpu/nvgpu/pci.c index dd8abc82..feb253b6 100644 --- a/drivers/gpu/nvgpu/pci.c +++ b/drivers/gpu/nvgpu/pci.c @@ -152,6 +152,40 @@ static struct gk20a_platform nvgpu_pci_device[] = { .vidmem_is_vidmem = true, .vbios_min_version = 0x86063000, .hardcode_sw_threshold = true, + }, + { /* DEVICE=0x1c75 */ + /* ptimer src frequency in hz */ + .ptimer_src_freq = 31250000, + + .probe = nvgpu_pci_tegra_probe, + .remove = nvgpu_pci_tegra_remove, + + /* power management configuration */ + .railgate_delay = 500, + .can_railgate = false, + .can_elpg = true, + .enable_elpg = true, + .enable_elcg = false, + .enable_slcg = true, + .enable_blcg = true, + .enable_mscg = true, + .default_pri_timeout = 0x3ff, + + .disable_aspm = true, + + /* power management callbacks */ + .is_railgated = nvgpu_pci_tegra_is_railgated, + .clk_round_rate = nvgpu_pci_clk_round_rate, + + .default_big_page_size = SZ_64K, + + .ch_wdt_timeout_ms = 7000, + + .has_ce = true, + + .vidmem_is_vidmem = true, + .vbios_min_version = 0x86064700, + .hardcode_sw_threshold = false, } }; @@ -174,6 +208,12 @@ static struct pci_device_id nvgpu_pci_table[] = { .class_mask = 0xff << 16, .driver_data = 2, }, + { + PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1c75), + .class = PCI_BASE_CLASS_DISPLAY << 16, + .class_mask = 0xff << 16, + .driver_data = 3, + }, {} }; -- cgit v1.2.2