mfd: bd9571mwv: Add DDR Backup Power register bit definitions
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 18 Apr 2018 13:18:02 +0000 (15:18 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 23 Apr 2018 16:53:41 +0000 (17:53 +0100)
Add definitions for the KEEPON_* bits in the "BKUP Mode Cnt" register,
which control the DDR rails to be kept powered when backup mode is
enabled.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/mfd/bd9571mwv.h

index f0708ba4cbbae2dccf68d0f17abae362a9c7ff66..eb05569f752bb08920bb638cf89c8f52bc45c1df 100644 (file)
 #define BD9571MWV_I2C_MD2_E1_BIT_2             0x12
 
 #define BD9571MWV_BKUP_MODE_CNT                        0x20
+#define BD9571MWV_BKUP_MODE_CNT_KEEPON_MASK    GENMASK(3, 0)
+#define BD9571MWV_BKUP_MODE_CNT_KEEPON_DDR0    BIT(0)
+#define BD9571MWV_BKUP_MODE_CNT_KEEPON_DDR1    BIT(1)
+#define BD9571MWV_BKUP_MODE_CNT_KEEPON_DDR0C   BIT(2)
+#define BD9571MWV_BKUP_MODE_CNT_KEEPON_DDR1C   BIT(3)
 #define BD9571MWV_BKUP_MODE_STATUS             0x21
 #define BD9571MWV_BKUP_RECOVERY_CNT            0x22
 #define BD9571MWV_BKUP_CTRL_TIM_CNT            0x23