]> git.ipfire.org Git - thirdparty/linux.git/commit
mips: pci-mt7620: rework initialization procedure
authorShiji Yang <yangshiji66@outlook.com>
Wed, 18 Jun 2025 03:42:07 +0000 (11:42 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 6 Apr 2026 12:06:06 +0000 (14:06 +0200)
commit2300d68e577909c7d3013910ff818e8572288491
tree123c7b151276473fb11257a80cc2733ef19aa1af
parentc2631cc4508c2e331759b0e5481a03d6b4b76346
mips: pci-mt7620: rework initialization procedure

Move the reset operation to the common part to reduce the code
redundancy. They are actually the same and needed for all SoCs.
Disabling power and clock are unnecessary for MT7620 and will be
removed. In vendor SDK, it's used to save the power when the PCI
driver is not selected. The MT7628 GPIO pinctrl has been removed
because this should be done in device-tree. Some delay intervals
have also been increased to follow the recommendations of the SoC
SDK and datasheet. Tested on both MT7620 and MT7628.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/pci/pci-mt7620.c