qsfp: move QSFP detection mechanism in board_init
authorIoana Ciornei <ioana.ciornei@nxp.com>
Thu, 15 Apr 2021 14:49:35 +0000 (17:49 +0300)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 20 Apr 2021 10:19:36 +0000 (15:49 +0530)
commit75dda203c23a88efb0ab2f690f1bf00d820f7790
treeadcae9551291ed0152838648e5b55ad95e6985f5
parent41849e3f0c8e3a18d7113a4291f55a5bf9f459b1
qsfp: move QSFP detection mechanism in board_init

In the case we are running with DM_ETH, the board_eth_init() function is
not called, thus the QSFP detection mechanism is not called.
Move this portion of the code from board_eth_init() into a separate
function which will be called from board_init(), thus ensuring that we
properly detect the medium side of the QSFP.
Also, the function call is now also under a LX2160ARDB ifdef since we
only need this mechanism on this specific board.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
board/freescale/lx2160a/eth_lx2160ardb.c
board/freescale/lx2160a/lx2160a.c
board/freescale/lx2160a/lx2160a.h