diff options
author | Stephen Carlson <stcarlso@linux.microsoft.com> | 2021-06-22 16:39:31 -0700 |
---|---|---|
committer | Priyanka Jain <priyanka.jain@nxp.com> | 2021-07-20 14:18:04 +0530 |
commit | eba68e2bf7a0e25ae6ce882c514e43926adad413 (patch) | |
tree | 3309c7ada338db772305e8e6f41c2dd0aa86f9b9 /board/freescale | |
parent | 9b5eeb45728e01581365ec2bfe1d88ad3539ee03 (diff) | |
download | u-boot-eba68e2bf7a0e25ae6ce882c514e43926adad413.tar.gz |
board: freescale: ls1043aqds: Update I2C mux config
Updates the board configuration to enable use of the PCA9547 I2C mux.
Signed-off-by: Stephen Carlson <stcarlso@linux.microsoft.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/ls1043aqds/ls1043aqds.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/board/freescale/ls1043aqds/ls1043aqds.c b/board/freescale/ls1043aqds/ls1043aqds.c index 5b131d1d67..76bbb6087a 100644 --- a/board/freescale/ls1043aqds/ls1043aqds.c +++ b/board/freescale/ls1043aqds/ls1043aqds.c @@ -28,6 +28,7 @@ #include <fsl_esdhc.h> #include <fsl_ifc.h> #include <spl.h> +#include "../common/i2c_mux.h" #include "../common/qixis.h" #include "ls1043aqds_qixis.h" @@ -279,32 +280,6 @@ unsigned long get_board_ddr_clk(void) return 66666666; } -int select_i2c_ch_pca9547(u8 ch, int bus_num) -{ - int ret; - -#if CONFIG_IS_ENABLED(DM_I2C) - struct udevice *dev; - - ret = i2c_get_chip_for_busnum(bus_num, I2C_MUX_PCA_ADDR_PRI, - 1, &dev); - if (ret) { - printf("%s: Cannot find udev for a bus %d\n", __func__, - bus_num); - return ret; - } - ret = dm_i2c_write(dev, 0, &ch, 1); -#else - ret = i2c_write(I2C_MUX_PCA_ADDR_PRI, 0, 1, &ch, 1); -#endif - if (ret) { - puts("PCA: failed to select proper channel\n"); - return ret; - } - - return 0; -} - int dram_init(void) { /* |