PCI: mediatek: Add a structure to abstract the controller generations
authorHonghui Zhang <honghui.zhang@mediatek.com>
Thu, 10 Aug 2017 06:34:56 +0000 (14:34 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 30 Aug 2017 13:23:56 +0000 (08:23 -0500)
commitc681c93067b8484381653dee0fc79a6d81be7050
treea5348125fcca5ff0c2c5d873475d9fdebd12ca89
parent4f6f0460448d5725a647039b8891736132a01a50
PCI: mediatek: Add a structure to abstract the controller generations

Introduce a structure "mtk_pcie_soc" to abstract the differences between
controller generations, and the .startup() hook is used to encapsulate some
SoC-dependent related setting.  In doing so, the common code which will be
reused by future chips.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Honghui Zhang <honghui.zhang@mediatek.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-mediatek.c