Skip to content

Commit 95aa21a

Browse files
claudiubezneasre
authored andcommitted
power: reset: at91-sama5d2_shdwc: fix wkupdbc mask
According to datasheet WKUPDBC mask is b/w bits 26..24. Fixes: f80cb48 ("power: reset: at91-shdwc: add new shutdown controller driver") Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 26fe7d1 commit 95aa21a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/power/reset/at91-sama5d2_shdwc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
#define AT91_SHDW_MR 0x04 /* Shut Down Mode Register */
3939
#define AT91_SHDW_WKUPDBC_SHIFT 24
40-
#define AT91_SHDW_WKUPDBC_MASK GENMASK(31, 16)
40+
#define AT91_SHDW_WKUPDBC_MASK GENMASK(26, 24)
4141
#define AT91_SHDW_WKUPDBC(x) (((x) << AT91_SHDW_WKUPDBC_SHIFT) \
4242
& AT91_SHDW_WKUPDBC_MASK)
4343

0 commit comments

Comments
 (0)