summaryrefslogtreecommitdiff
path: root/Platform/Marvell/Documentation/PortingGuide/PciEmulation.txt
blob: ec1afbc7bf3ab581be86897c95670a37e46c5ae9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PciEmulation configuration
--------------------------
Installation of various NonDiscoverable devices via PciEmulation driver is performed
via set of PCDs. Following are available:

 gMarvellTokenSpaceGuid.PcdPciEXhci

Indicates, which Xhci devices are used.

 gMarvellTokenSpaceGuid.PcdPciEAhci

Indicates, which Ahci devices are used.

 gMarvellTokenSpaceGuid.PcdPciESdhci

Indicates, which Sdhci devices are used.

All above PCD's correspond to hardware description in a dedicated structure:

STATIC PCI_E_PLATFORM_DESC A70x0PlatDescTemplate

in Platforms/Marvell/PciEmulation/PciEmulation.c file. It comprises device
count, base addresses, register region size and DMA-coherency type.

Examples
--------
Assuming we want to enable second XHCI port and one SDHCI port on Armada
70x0 board, following needs to be declared:

  gMarvellTokenSpaceGuid.PcdPciEXhci|{ 0x0 0x1 }
  gMarvellTokenSpaceGuid.PcdPciESdhci|{ 0x1 }