Skip to content

Commit 81fedb3

Browse files
AngeloGioacchino Del RegnoMani-Sadhasivam
authored andcommitted
PCI: mediatek-gen3: Add support for MediaTek MT8196 SoC
Introduce support for the PCI-Express Gen3 controller found in the MT8196 (and MT6991) SoC by adding a compatible string and platform specific data. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 0106b6c commit 81fedb3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/pci/controller/pcie-mediatek-gen3.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,15 @@ static const struct mtk_gen3_pcie_pdata mtk_pcie_soc_mt8192 = {
13401340
},
13411341
};
13421342

1343+
static const struct mtk_gen3_pcie_pdata mtk_pcie_soc_mt8196 = {
1344+
.power_up = mtk_pcie_power_up,
1345+
.phy_resets = {
1346+
.id[0] = "phy",
1347+
.num_resets = 1,
1348+
},
1349+
.sys_clk_rdy_time_us = 10,
1350+
};
1351+
13431352
static const struct mtk_gen3_pcie_pdata mtk_pcie_soc_en7581 = {
13441353
.power_up = mtk_pcie_en7581_power_up,
13451354
.phy_resets = {
@@ -1354,6 +1363,7 @@ static const struct mtk_gen3_pcie_pdata mtk_pcie_soc_en7581 = {
13541363
static const struct of_device_id mtk_pcie_of_match[] = {
13551364
{ .compatible = "airoha,en7581-pcie", .data = &mtk_pcie_soc_en7581 },
13561365
{ .compatible = "mediatek,mt8192-pcie", .data = &mtk_pcie_soc_mt8192 },
1366+
{ .compatible = "mediatek,mt8196-pcie", .data = &mtk_pcie_soc_mt8196 },
13571367
{},
13581368
};
13591369
MODULE_DEVICE_TABLE(of, mtk_pcie_of_match);

0 commit comments

Comments
 (0)