power: pfuze100 correct SWBST macro definition
authorPeng Fan <Peng.Fan@freescale.com>
Fri, 7 Aug 2015 08:43:41 +0000 (16:43 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:42 +0000 (08:17 +0200)
commitd8a095039f4c7a58925bd2f481c50667af3f8c68
treeadc738b8fb76134319f0d1c754c31bb171314186
parent62c8c0e6a3b304bb8199a168887561f4acc79021
power: pfuze100 correct SWBST macro definition

According to datasheet, SWBST_MODE starts from bit 2 and it occupies 2 bits.
So SWBST_MODE_MASK should be 0xC, and SWBST_MODE_xx should be ([mode] << 2).

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Cc: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Stefano Babic <sbabic@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/power/pfuze100_pmic.h