]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mx51evk: Fix pmic_init() argument
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 20 Nov 2013 22:26:03 +0000 (20:26 -0200)
committerStefano Babic <sbabic@denx.de>
Wed, 27 Nov 2013 08:39:21 +0000 (09:39 +0100)
On mx51evk 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>
Acked-by: Stefano Babic <sbabic@denx.de>
board/freescale/mx51evk/mx51evk.c

index d01465ecaef0d5b8244a3613bbc442b9354ba847..9b43c84e791287d1cf6135613614ec75516738b1 100644 (file)
@@ -174,7 +174,7 @@ static void power_init(void)
        struct pmic *p;
        int ret;
 
-       ret = pmic_init(I2C_PMIC);
+       ret = pmic_init(CONFIG_FSL_PMIC_BUS);
        if (ret)
                return;