summaryrefslogtreecommitdiff
path: root/board/freescale/lx2160a
diff options
context:
space:
mode:
authorWasim Khan <wasim.khan@nxp.com>2020-08-27 16:43:34 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2020-09-24 18:27:32 +0300
commitc63edbc750f9416bb542b24c9b856cce4f2a33e1 (patch)
treeb3242e08c1208345678f118d336f2da0dd10a3c5 /board/freescale/lx2160a
parentada19fd2d2d45bf66f71cb1610a293d30058e7b6 (diff)
downloadu-boot-c63edbc750f9416bb542b24c9b856cce4f2a33e1.tar.xz
board: freescale: emc2305: Pass chip_addr to set_fan_speed
emc2305 is a common driver. It should not use platform specific i2c address for slave device. Pass chip_addr as agrument to emc2305_init() and set_fan_speed() so that emc2305 driver can be used with different platforms. Signed-off-by: Wasim Khan <wasim.khan@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'board/freescale/lx2160a')
-rw-r--r--board/freescale/lx2160a/lx2160a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c
index ace2a1927d..0ff987eeb4 100644
--- a/board/freescale/lx2160a/lx2160a.c
+++ b/board/freescale/lx2160a/lx2160a.c
@@ -114,8 +114,8 @@ int board_early_init_f(void)
#ifdef CONFIG_EMC2305
select_i2c_ch_pca9547(I2C_MUX_CH_EMC2305);
- emc2305_init();
- set_fan_speed(I2C_EMC2305_PWM);
+ emc2305_init(I2C_EMC2305_ADDR);
+ set_fan_speed(I2C_EMC2305_PWM, I2C_EMC2305_ADDR);
select_i2c_ch_pca9547(I2C_MUX_CH_DEFAULT);
#endif