]> git.sur5r.net Git - u-boot/blobdiff - drivers/misc/pmic_spi.c
powerpc/mpc85xx: Add B4860 and variant SoCs
[u-boot] / drivers / misc / pmic_spi.c
index ff35377afc3cee8a09bf6c272b51f86e80ff9440..5a0dd22e29078c6a4b0b8e9fc7d2ad2867ece25e 100644 (file)
@@ -76,8 +76,7 @@ static u32 pmic_reg(struct pmic *p, u32 reg, u32 *val, u32 write)
        }
 
        if (write) {
-               pmic_tx = p->hw.spi.prepare_tx(0, NULL, write);
-               pmic_tx &= ~(1 << 31);
+               pmic_tx = p->hw.spi.prepare_tx(reg, val, 0);
                tmp = cpu_to_be32(pmic_tx);
                if (spi_xfer(slave, pmic_spi_bitlen, &tmp, &pmic_rx,
                        pmic_spi_flags)) {