Message ID | 1384986366-14003-2-git-send-email-festevam@gmail.com |
---|---|
State | Accepted |
Delegated to: | Stefano Babic |
Headers | show |
On 20/11/2013 23:26, Fabio Estevam wrote: > From: Fabio Estevam <fabio.estevam@freescale.com> > > On mx31pdk board the PMIC is connected via SPI interface, so it does not make > sense to pass I2C_PMIC into the pmic_init() interface. > > Pass the SPI bus number via CONFIG_FSL_PMIC_BUS option instead. > > Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic
diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c index 148b4f4..13b9d51 100644 --- a/board/freescale/mx31pdk/mx31pdk.c +++ b/board/freescale/mx31pdk/mx31pdk.c @@ -85,7 +85,7 @@ int board_late_init(void) struct pmic *p; int ret; - ret = pmic_init(I2C_PMIC); + ret = pmic_init(CONFIG_FSL_PMIC_BUS); if (ret) return ret;