Files
u-boot/board
Vincent Jardin 43257fa9e3 board: nxp: common: support CONFIG_FSL_USE_PCA9547_MUX
Use select_i2c_ch_pca9547() only when CONFIG_FSL_USE_PCA9547_MUX
is set, but several call in board/nxp/lx2160a/lx2160a.c invoke
it unconditionally,
or using unrelated Kconfigs (CONFIG_EMC2305, CONFIG_VID).

Compilation with LX2160A target that omits the mux therefore fails with

  error: implicit declaration of function 'select_i2c_ch_pca9547'

Add a static inline stub with -EOPNOTSUPP for the
!CONFIG_FSL_USE_PCA9547_MUX case so all cases compile cleanly.

Adapted from the convention used by include/scmi_nxp_protocols.h for
SCMI subprotocol stubs.

There is no functional change for NXP boards: all eight upstream
LX2160A defconfigs (lx2160ardb / lx2160aqds / lx2162aqds and their
secure / stmm / verified_boot variants) already set
CONFIG_FSL_USE_PCA9547_MUX=y, so the real declaration wins.

The purpose is to support new boards that do not use the PCA9547.

Signed-off-by: Vincent Jardin <vjardin@free.fr>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2026-05-15 19:28:31 +08:00
..
2026-04-27 11:26:40 -06:00
2025-11-29 14:42:24 -03:00
2025-05-09 15:05:14 -06:00
2026-04-27 11:26:40 -06:00
2026-04-21 20:49:40 -03:00
2025-06-02 17:26:16 -06:00
2024-07-22 10:51:47 -06:00
2026-03-18 13:07:36 -06:00
2025-05-09 15:05:14 -06:00
2026-04-27 11:26:40 -06:00
2026-04-27 11:26:40 -06:00
2025-04-11 12:16:44 -06:00
2026-04-27 11:26:40 -06:00
2025-04-11 12:16:44 -06:00