arm: mvebu: Convert board_pex_config() to CONFIG_SPL_BOARD_INIT
authorPali Rohár <pali@kernel.org>
Tue, 21 Dec 2021 11:20:11 +0000 (12:20 +0100)
committerStefan Roese <sr@denx.de>
Fri, 14 Jan 2022 06:47:57 +0000 (07:47 +0100)
commit8f9e0f4d207e7bb65173c7cd00d91946cfb838a7
tree125ef7ac4641b55dcd123e0d9a7c895a5b1bb749
parent25711b07ca1dcf73dc41b45ca040dadbcff0fa08
arm: mvebu: Convert board_pex_config() to CONFIG_SPL_BOARD_INIT

The only user of board_pex_config() weak function is A385 controlcenterdc
board. It looks like that code in its board_pex_config() function needs to
be executed after PCIe link is up. Therefore put this code into
spl_board_init() function which is called after a38x serdes initialization,
and therefore it is after the serdes hws_pex_config() function finishes
(which is the state before this change).

With this change completely remove board_pex_config() function as it is not
used anymore.

Signed-off-by: Pali Rohár <pali@kernel.org>
arch/arm/mach-mvebu/serdes/a38x/ctrl_pex.c
arch/arm/mach-mvebu/serdes/a38x/ctrl_pex.h
board/gdsys/a38x/controlcenterdc.c
configs/controlcenterdc_defconfig