]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/gateworks/gw_ventana/common.c
arm: imx6: novena, gw_ventana: Fix use of pfuze100 bit definitions
[people/ms/u-boot.git] / board / gateworks / gw_ventana / common.c
index d406c834817ec346e444845575b51e19b21d1def..a20190eef080fb93148faa3cf0e298727f51e229 100644 (file)
@@ -806,7 +806,7 @@ void setup_pmic(void)
                        /* Set SWBST to 5.0V and enable */
                        pmic_reg_read(p, PFUZE100_SWBSTCON1, &reg);
                        reg &= ~(SWBST_MODE_MASK | SWBST_VOL_MASK);
-                       reg |= (SWBST_5_00V | SWBST_MODE_AUTO);
+                       reg |= (SWBST_5_00V | (SWBST_MODE_AUTO << SWBST_MODE_SHIFT));
                        pmic_reg_write(p, PFUZE100_SWBSTCON1, reg);
                }
        }