Skip to content

Commit 08e8352

Browse files
PCI: j721e: Add PCIe support for J722S SoC
TI's J722S SoC has one instance of PCIe namely PCIe0 which is a Gen3 single lane PCIe controller. Add support for the "ti,j722s-pcie-host" compatible specific to J722S SoC. Link: https://lore.kernel.org/r/20240524092349.158443-1-s-vadapalli@ti.com Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
1 parent 9852d85 commit 08e8352

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/pci/controller/cadence/pci-j721e.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,13 @@ static const struct j721e_pcie_data j784s4_pcie_ep_data = {
386386
.max_lanes = 4,
387387
};
388388

389+
static const struct j721e_pcie_data j722s_pcie_rc_data = {
390+
.mode = PCI_MODE_RC,
391+
.linkdown_irq_regfield = J7200_LINK_DOWN,
392+
.byte_access_allowed = true,
393+
.max_lanes = 1,
394+
};
395+
389396
static const struct of_device_id of_j721e_pcie_match[] = {
390397
{
391398
.compatible = "ti,j721e-pcie-host",
@@ -419,6 +426,10 @@ static const struct of_device_id of_j721e_pcie_match[] = {
419426
.compatible = "ti,j784s4-pcie-ep",
420427
.data = &j784s4_pcie_ep_data,
421428
},
429+
{
430+
.compatible = "ti,j722s-pcie-host",
431+
.data = &j722s_pcie_rc_data,
432+
},
422433
{},
423434
};
424435

0 commit comments

Comments
 (0)