提交 95aa21a3 编写于 作者: C Claudiu Beznea 提交者: Sebastian Reichel

power: reset: at91-sama5d2_shdwc: fix wkupdbc mask

According to datasheet WKUPDBC mask is b/w bits 26..24.

Fixes: f80cb488 ("power: reset: at91-shdwc: add new shutdown controller driver")
Signed-off-by: NClaudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: NAlexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: NSebastian Reichel <sebastian.reichel@collabora.com>
上级 26fe7d1d
......@@ -37,7 +37,7 @@
#define AT91_SHDW_MR 0x04 /* Shut Down Mode Register */
#define AT91_SHDW_WKUPDBC_SHIFT 24
#define AT91_SHDW_WKUPDBC_MASK GENMASK(31, 16)
#define AT91_SHDW_WKUPDBC_MASK GENMASK(26, 24)
#define AT91_SHDW_WKUPDBC(x) (((x) << AT91_SHDW_WKUPDBC_SHIFT) \
& AT91_SHDW_WKUPDBC_MASK)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册