summaryrefslogtreecommitdiff
path: root/board/freescale/mx53evk/mx53evk.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-11-20 21:17:36 -0200
committerStefano Babic <sbabic@denx.de>2013-12-17 16:54:16 +0100
commit570aa2fac3322e2e8c9dc5b4c1ac4ac95c22f9f6 (patch)
tree53507b364da0e994d7fc182ba28309a8a36cc751 /board/freescale/mx53evk/mx53evk.c
parentdb6801dec36c9e0703c47ec065ee17278edbe904 (diff)
downloadu-boot-imx-570aa2fac3322e2e8c9dc5b4c1ac4ac95c22f9f6.zip
u-boot-imx-570aa2fac3322e2e8c9dc5b4c1ac4ac95c22f9f6.tar.gz
u-boot-imx-570aa2fac3322e2e8c9dc5b4c1ac4ac95c22f9f6.tar.bz2
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>
Diffstat (limited to 'board/freescale/mx53evk/mx53evk.c')
-rw-r--r--board/freescale/mx53evk/mx53evk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/mx53evk/mx53evk.c b/board/freescale/mx53evk/mx53evk.c
index 3b398b6..13519e2 100644
--- a/board/freescale/mx53evk/mx53evk.c
+++ b/board/freescale/mx53evk/mx53evk.c
@@ -81,7 +81,7 @@ void power_init(void)
struct pmic *p;
int ret;
- ret = pmic_init(I2C_PMIC);
+ ret = pmic_init(I2C_0);
if (ret)
return;