]> git.baikalelectronics.ru Git - uboot.git/commit
board: gdsys: a38x: Enable PCIe link 2 in spl_board_init()
authorPali Rohár <pali@kernel.org>
Tue, 21 Dec 2021 11:20:12 +0000 (12:20 +0100)
committerStefan Roese <sr@denx.de>
Fri, 14 Jan 2022 06:47:57 +0000 (07:47 +0100)
commit6acfd70d3338cdbf923d0576adc597237f8eb230
tree9f54a3ac5cf37b129b2d7bdd27e437b24bedce04
parentd4c6594d5d64846f87035946c4ba8de5b1df29e4
board: gdsys: a38x: Enable PCIe link 2 in spl_board_init()

A385 controlcenterdc board does not use PCI DM properly and touches some
PCIe devices directly in its board code.

This controlcenterdc spl_board_init() function expects that PCIe link is
already initialized. Link itself is initialized in a38x serdes code but
this will change in future and link initialization will be postponed from
U-Boot SPL to proper U-Boot.

So explicitly enable PCIe link 2 in spl_board_init() function via
SoC Control Register 1 to not break this code by future changes. This board
has PCIe link 2 just x1, so no additional initialization (except enabling
PCIe port) is needed.

Signed-off-by: Pali Rohár <pali@kernel.org>
board/gdsys/a38x/controlcenterdc.c