Commit a7980cd2 authored by Sugar Zhang's avatar Sugar Zhang Committed by Mark Brown

ASoC: rockchip: pdm: add default regs

This patch add default regs value for controller.
Signed-off-by: default avatarSugar Zhang <sugar.zhang@rock-chips.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent fb20de60
...@@ -361,11 +361,19 @@ static bool rockchip_pdm_volatile_reg(struct device *dev, unsigned int reg) ...@@ -361,11 +361,19 @@ static bool rockchip_pdm_volatile_reg(struct device *dev, unsigned int reg)
} }
} }
static const struct reg_default rockchip_pdm_reg_defaults[] = {
{0x04, 0x78000017},
{0x08, 0x0bb8ea60},
{0x18, 0x0000001f},
};
static const struct regmap_config rockchip_pdm_regmap_config = { static const struct regmap_config rockchip_pdm_regmap_config = {
.reg_bits = 32, .reg_bits = 32,
.reg_stride = 4, .reg_stride = 4,
.val_bits = 32, .val_bits = 32,
.max_register = PDM_VERSION, .max_register = PDM_VERSION,
.reg_defaults = rockchip_pdm_reg_defaults,
.num_reg_defaults = ARRAY_SIZE(rockchip_pdm_reg_defaults),
.writeable_reg = rockchip_pdm_wr_reg, .writeable_reg = rockchip_pdm_wr_reg,
.readable_reg = rockchip_pdm_rd_reg, .readable_reg = rockchip_pdm_rd_reg,
.volatile_reg = rockchip_pdm_volatile_reg, .volatile_reg = rockchip_pdm_volatile_reg,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment