]> git.sur5r.net Git - u-boot/commit
imx: Explicitly pass the I2C bus number in pmic_init()
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 20 Nov 2013 23:17:36 +0000 (21:17 -0200)
committerStefano Babic <sbabic@denx.de>
Tue, 17 Dec 2013 15:54:16 +0000 (16:54 +0100)
commit570aa2fac3322e2e8c9dc5b4c1ac4ac95c22f9f6
tree53507b364da0e994d7fc182ba28309a8a36cc751
parentdb6801dec36c9e0703c47ec065ee17278edbe904
imx: Explicitly pass the I2C bus number in pmic_init()

The pmic_init() function has the I2C or SPI bus number that is connected to the
PMIC.

Instead of passing I2C_PMIC, explicitly pass the I2C bus number via I2C_x
definition.

The motivation for doing this is to avoid people just doing a copy and paste
of I2C_PMIC into their board file when another I2C bus is actually used to
interface to their PMIC.

This also makes more obvious which is the I2C bus connected to the PMIC, without
having to search in the source code for the meaning of the 'I2C_PMIC' number.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
board/freescale/mx25pdk/mx25pdk.c
board/freescale/mx35pdk/mx35pdk.c
board/freescale/mx53evk/mx53evk.c
board/freescale/mx53loco/mx53loco.c