提交 6bd96088 编写于 作者: K Kishon Vijay Abraham I 提交者: Zheng Zengkai

PCI: j721e: Add PCIe support for AM64

stable inclusion
from stable-5.10.68
commit 365cdfcc6eba04124f22dc74e4355d307bd4fe05
bugzilla: 182671 https://gitee.com/openeuler/kernel/issues/I4EWUH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=365cdfcc6eba04124f22dc74e4355d307bd4fe05

--------------------------------

[ Upstream commit c8a375a8 ]

AM64 has the same PCIe IP as in J7200 with certain erratas not
applicable (quirk_detect_quiet_flag). Add support for "ti,am64-pcie-host"
compatible and "ti,am64-pcie-ep" compatible that is specific to AM64.

Link: https://lore.kernel.org/r/20210811123336.31357-5-kishon@ti.comSigned-off-by: NKishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 6cb471af
...@@ -298,6 +298,17 @@ static const struct j721e_pcie_data j7200_pcie_ep_data = { ...@@ -298,6 +298,17 @@ static const struct j721e_pcie_data j7200_pcie_ep_data = {
.quirk_detect_quiet_flag = true, .quirk_detect_quiet_flag = true,
}; };
static const struct j721e_pcie_data am64_pcie_rc_data = {
.mode = PCI_MODE_RC,
.linkdown_irq_regfield = J7200_LINK_DOWN,
.byte_access_allowed = true,
};
static const struct j721e_pcie_data am64_pcie_ep_data = {
.mode = PCI_MODE_EP,
.linkdown_irq_regfield = J7200_LINK_DOWN,
};
static const struct of_device_id of_j721e_pcie_match[] = { static const struct of_device_id of_j721e_pcie_match[] = {
{ {
.compatible = "ti,j721e-pcie-host", .compatible = "ti,j721e-pcie-host",
...@@ -315,6 +326,14 @@ static const struct of_device_id of_j721e_pcie_match[] = { ...@@ -315,6 +326,14 @@ static const struct of_device_id of_j721e_pcie_match[] = {
.compatible = "ti,j7200-pcie-ep", .compatible = "ti,j7200-pcie-ep",
.data = &j7200_pcie_ep_data, .data = &j7200_pcie_ep_data,
}, },
{
.compatible = "ti,am64-pcie-host",
.data = &am64_pcie_rc_data,
},
{
.compatible = "ti,am64-pcie-ep",
.data = &am64_pcie_ep_data,
},
{}, {},
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册