mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
drivers: pci: sandbox: Add stub sandbox PCI MPS support
Reports the sandbox swapcase PCI Express device to support a 256 byte Maximum Payload Size for MPS tuning tests. Signed-off-by: Stephen Carlson <stcarlso@linux.microsoft.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
59b1c9be01
commit
713db6f6d3
1 changed files with 3 additions and 0 deletions
|
@ -165,6 +165,9 @@ static int sandbox_swap_case_read_config(const struct udevice *emul,
|
|||
case PCI_CAP_ID_EXP_OFFSET + PCI_CAP_LIST_NEXT:
|
||||
*valuep = PCI_CAP_ID_MSIX_OFFSET;
|
||||
break;
|
||||
case PCI_CAP_ID_EXP_OFFSET + PCI_EXP_DEVCAP:
|
||||
*valuep = PCI_EXP_DEVCAP_PAYLOAD_256B;
|
||||
break;
|
||||
case PCI_CAP_ID_MSIX_OFFSET:
|
||||
if (sandbox_swap_case_use_ea(emul))
|
||||
*valuep = (PCI_CAP_ID_EA_OFFSET << 8) | PCI_CAP_ID_MSIX;
|
||||
|
|
Loading…
Reference in a new issue