]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/kosagi/novena/novena.c
arm: imx6: novena, gw_ventana: Fix use of pfuze100 bit definitions
[people/ms/u-boot.git] / board / kosagi / novena / novena.c
index babba852a2d7dcd6a02dfed4bb6d4232eb768c78..b3159d3a95b0e1ee11139e99c9799ea76c568bec 100644 (file)
@@ -216,7 +216,7 @@ int power_init_board(void)
        /* Set SWBST to 5.0V and enable (for USB) */
        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);
 
        return 0;