mfd: bd9571mwv: Allow DDR Backup Power register access
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 18 Apr 2018 13:18:03 +0000 (15:18 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 23 Apr 2018 16:53:45 +0000 (17:53 +0100)
Enable read/write access to the BD9571MWV_BKUP_MODE_CNT register, which
is amongst others used to configure DDR Backup Power.

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>
drivers/mfd/bd9571mwv.c

index 64e088dfe7b05b5b7972ae885ae2cc3ed25051c5..503979c81dae11bbd3203f5482e398f0455a2597 100644 (file)
@@ -29,6 +29,7 @@ static const struct mfd_cell bd9571mwv_cells[] = {
 
 static const struct regmap_range bd9571mwv_readable_yes_ranges[] = {
        regmap_reg_range(BD9571MWV_VENDOR_CODE, BD9571MWV_PRODUCT_REVISION),
+       regmap_reg_range(BD9571MWV_BKUP_MODE_CNT, BD9571MWV_BKUP_MODE_CNT),
        regmap_reg_range(BD9571MWV_AVS_SET_MONI, BD9571MWV_AVS_DVFS_VID(3)),
        regmap_reg_range(BD9571MWV_VD18_VID, BD9571MWV_VD33_VID),
        regmap_reg_range(BD9571MWV_DVFS_VINIT, BD9571MWV_DVFS_VINIT),
@@ -44,6 +45,7 @@ static const struct regmap_access_table bd9571mwv_readable_table = {
 };
 
 static const struct regmap_range bd9571mwv_writable_yes_ranges[] = {
+       regmap_reg_range(BD9571MWV_BKUP_MODE_CNT, BD9571MWV_BKUP_MODE_CNT),
        regmap_reg_range(BD9571MWV_AVS_VD09_VID(0), BD9571MWV_AVS_VD09_VID(3)),
        regmap_reg_range(BD9571MWV_DVFS_SETVID, BD9571MWV_DVFS_SETVID),
        regmap_reg_range(BD9571MWV_GPIO_DIR, BD9571MWV_GPIO_OUT),