dwc3-pci.c (917dc99b659114a4aad2ee8b20bcdc05c80e5f09) | dwc3-pci.c (ec799c8a92e0be91e0940cc739a27f483242df65) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * dwc3-pci.c - PCI Specific glue layer 4 * 5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com 6 * 7 * Authors: Felipe Balbi <balbi@ti.com>, 8 * Sebastian Andrzej Siewior <bigeasy@linutronix.de> --- 35 unchanged lines hidden (view full) --- 44#define PCI_DEVICE_ID_INTEL_ADL_PCH 0x51ee 45#define PCI_DEVICE_ID_INTEL_ADLN 0x465e 46#define PCI_DEVICE_ID_INTEL_ADLN_PCH 0x54ee 47#define PCI_DEVICE_ID_INTEL_ADLS 0x7ae1 48#define PCI_DEVICE_ID_INTEL_RPL 0xa70e 49#define PCI_DEVICE_ID_INTEL_RPLS 0x7a61 50#define PCI_DEVICE_ID_INTEL_MTLM 0x7eb1 51#define PCI_DEVICE_ID_INTEL_MTLP 0x7ec1 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * dwc3-pci.c - PCI Specific glue layer 4 * 5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com 6 * 7 * Authors: Felipe Balbi <balbi@ti.com>, 8 * Sebastian Andrzej Siewior <bigeasy@linutronix.de> --- 35 unchanged lines hidden (view full) --- 44#define PCI_DEVICE_ID_INTEL_ADL_PCH 0x51ee 45#define PCI_DEVICE_ID_INTEL_ADLN 0x465e 46#define PCI_DEVICE_ID_INTEL_ADLN_PCH 0x54ee 47#define PCI_DEVICE_ID_INTEL_ADLS 0x7ae1 48#define PCI_DEVICE_ID_INTEL_RPL 0xa70e 49#define PCI_DEVICE_ID_INTEL_RPLS 0x7a61 50#define PCI_DEVICE_ID_INTEL_MTLM 0x7eb1 51#define PCI_DEVICE_ID_INTEL_MTLP 0x7ec1 |
52#define PCI_DEVICE_ID_INTEL_MTLS 0x7f6f |
|
52#define PCI_DEVICE_ID_INTEL_MTL 0x7e7e 53#define PCI_DEVICE_ID_INTEL_TGL 0x9a15 54#define PCI_DEVICE_ID_AMD_MR 0x163a 55 56#define PCI_INTEL_BXT_DSM_GUID "732b85d5-b7a7-4a1b-9ba0-4bbd00ffd511" 57#define PCI_INTEL_BXT_FUNC_PMU_PWR 4 58#define PCI_INTEL_BXT_STATE_D0 0 59#define PCI_INTEL_BXT_STATE_D3 3 --- 322 unchanged lines hidden (view full) --- 382#endif 383 device_init_wakeup(&pci->dev, false); 384 pm_runtime_get(&pci->dev); 385 device_remove_software_node(&dwc->dwc3->dev); 386 platform_device_unregister(dwc->dwc3); 387} 388 389static const struct pci_device_id dwc3_pci_id_table[] = { | 53#define PCI_DEVICE_ID_INTEL_MTL 0x7e7e 54#define PCI_DEVICE_ID_INTEL_TGL 0x9a15 55#define PCI_DEVICE_ID_AMD_MR 0x163a 56 57#define PCI_INTEL_BXT_DSM_GUID "732b85d5-b7a7-4a1b-9ba0-4bbd00ffd511" 58#define PCI_INTEL_BXT_FUNC_PMU_PWR 4 59#define PCI_INTEL_BXT_STATE_D0 0 60#define PCI_INTEL_BXT_STATE_D3 3 --- 322 unchanged lines hidden (view full) --- 383#endif 384 device_init_wakeup(&pci->dev, false); 385 pm_runtime_get(&pci->dev); 386 device_remove_software_node(&dwc->dwc3->dev); 387 platform_device_unregister(dwc->dwc3); 388} 389 390static const struct pci_device_id dwc3_pci_id_table[] = { |
390 { PCI_DEVICE_DATA(INTEL, BSW, &dwc3_pci_intel_swnode) }, 391 { PCI_DEVICE_DATA(INTEL, BYT, &dwc3_pci_intel_byt_swnode) }, 392 { PCI_DEVICE_DATA(INTEL, MRFLD, &dwc3_pci_intel_mrfld_swnode) }, 393 { PCI_DEVICE_DATA(INTEL, CMLLP, &dwc3_pci_intel_swnode) }, 394 { PCI_DEVICE_DATA(INTEL, CMLH, &dwc3_pci_intel_swnode) }, 395 { PCI_DEVICE_DATA(INTEL, SPTLP, &dwc3_pci_intel_swnode) }, 396 { PCI_DEVICE_DATA(INTEL, SPTH, &dwc3_pci_intel_swnode) }, 397 { PCI_DEVICE_DATA(INTEL, BXT, &dwc3_pci_intel_swnode) }, 398 { PCI_DEVICE_DATA(INTEL, BXT_M, &dwc3_pci_intel_swnode) }, 399 { PCI_DEVICE_DATA(INTEL, APL, &dwc3_pci_intel_swnode) }, 400 { PCI_DEVICE_DATA(INTEL, KBP, &dwc3_pci_intel_swnode) }, 401 { PCI_DEVICE_DATA(INTEL, GLK, &dwc3_pci_intel_swnode) }, 402 { PCI_DEVICE_DATA(INTEL, CNPLP, &dwc3_pci_intel_swnode) }, 403 { PCI_DEVICE_DATA(INTEL, CNPH, &dwc3_pci_intel_swnode) }, 404 { PCI_DEVICE_DATA(INTEL, CNPV, &dwc3_pci_intel_swnode) }, 405 { PCI_DEVICE_DATA(INTEL, ICLLP, &dwc3_pci_intel_swnode) }, 406 { PCI_DEVICE_DATA(INTEL, EHL, &dwc3_pci_intel_swnode) }, 407 { PCI_DEVICE_DATA(INTEL, TGPLP, &dwc3_pci_intel_swnode) }, 408 { PCI_DEVICE_DATA(INTEL, TGPH, &dwc3_pci_intel_swnode) }, 409 { PCI_DEVICE_DATA(INTEL, JSP, &dwc3_pci_intel_swnode) }, 410 { PCI_DEVICE_DATA(INTEL, ADL, &dwc3_pci_intel_swnode) }, 411 { PCI_DEVICE_DATA(INTEL, ADL_PCH, &dwc3_pci_intel_swnode) }, 412 { PCI_DEVICE_DATA(INTEL, ADLN, &dwc3_pci_intel_swnode) }, 413 { PCI_DEVICE_DATA(INTEL, ADLN_PCH, &dwc3_pci_intel_swnode) }, 414 { PCI_DEVICE_DATA(INTEL, ADLS, &dwc3_pci_intel_swnode) }, 415 { PCI_DEVICE_DATA(INTEL, RPL, &dwc3_pci_intel_swnode) }, 416 { PCI_DEVICE_DATA(INTEL, RPLS, &dwc3_pci_intel_swnode) }, 417 { PCI_DEVICE_DATA(INTEL, MTLM, &dwc3_pci_intel_swnode) }, 418 { PCI_DEVICE_DATA(INTEL, MTLP, &dwc3_pci_intel_swnode) }, 419 { PCI_DEVICE_DATA(INTEL, MTL, &dwc3_pci_intel_swnode) }, 420 { PCI_DEVICE_DATA(INTEL, TGL, &dwc3_pci_intel_swnode) }, | 391 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_BSW), 392 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, |
421 | 393 |
422 { PCI_DEVICE_DATA(AMD, NL_USB, &dwc3_pci_amd_swnode) }, 423 { PCI_DEVICE_DATA(AMD, MR, &dwc3_pci_amd_mr_swnode) }, | 394 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_BYT), 395 (kernel_ulong_t) &dwc3_pci_intel_byt_swnode, }, |
424 | 396 |
397 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_MRFLD), 398 (kernel_ulong_t) &dwc3_pci_intel_mrfld_swnode, }, 399 400 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_CMLLP), 401 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 402 403 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_CMLH), 404 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 405 406 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_SPTLP), 407 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 408 409 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_SPTH), 410 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 411 412 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_BXT), 413 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 414 415 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_BXT_M), 416 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 417 418 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_APL), 419 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 420 421 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_KBP), 422 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 423 424 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_GLK), 425 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 426 427 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_CNPLP), 428 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 429 430 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_CNPH), 431 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 432 433 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_CNPV), 434 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 435 436 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ICLLP), 437 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 438 439 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_EHL), 440 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 441 442 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_TGPLP), 443 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 444 445 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_TGPH), 446 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 447 448 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_JSP), 449 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 450 451 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ADL), 452 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 453 454 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ADL_PCH), 455 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 456 457 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ADLN), 458 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 459 460 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ADLN_PCH), 461 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 462 463 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ADLS), 464 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 465 466 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_RPL), 467 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 468 469 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_RPLS), 470 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 471 472 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_MTLM), 473 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 474 475 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_MTLP), 476 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 477 478 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_MTLS), 479 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 480 481 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_MTL), 482 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 483 484 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_TGL), 485 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 486 487 { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_NL_USB), 488 (kernel_ulong_t) &dwc3_pci_amd_swnode, }, 489 490 { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_MR), 491 (kernel_ulong_t)&dwc3_pci_amd_mr_swnode, }, 492 |
|
425 { } /* Terminating Entry */ 426}; 427MODULE_DEVICE_TABLE(pci, dwc3_pci_id_table); 428 429#if defined(CONFIG_PM) || defined(CONFIG_PM_SLEEP) 430static int dwc3_pci_dsm(struct dwc3_pci *dwc, int param) 431{ 432 union acpi_object *obj; --- 85 unchanged lines hidden --- | 493 { } /* Terminating Entry */ 494}; 495MODULE_DEVICE_TABLE(pci, dwc3_pci_id_table); 496 497#if defined(CONFIG_PM) || defined(CONFIG_PM_SLEEP) 498static int dwc3_pci_dsm(struct dwc3_pci *dwc, int param) 499{ 500 union acpi_object *obj; --- 85 unchanged lines hidden --- |