Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: rockchip: i2s: add default values for registers

this patch add default values for registers according description from TRM.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Sugar Zhang and committed by
Mark Brown
ea2e5b96 255edcdf

+10
+10
sound/soc/rockchip/rockchip_i2s.c
··· 440 440 } 441 441 } 442 442 443 + static const struct reg_default rockchip_i2s_reg_defaults[] = { 444 + {0x00, 0x0000000f}, 445 + {0x04, 0x0000000f}, 446 + {0x08, 0x00071f1f}, 447 + {0x10, 0x001f0000}, 448 + {0x14, 0x01f00000}, 449 + }; 450 + 443 451 static const struct regmap_config rockchip_i2s_regmap_config = { 444 452 .reg_bits = 32, 445 453 .reg_stride = 4, 446 454 .val_bits = 32, 447 455 .max_register = I2S_RXDR, 456 + .reg_defaults = rockchip_i2s_reg_defaults, 457 + .num_reg_defaults = ARRAY_SIZE(rockchip_i2s_reg_defaults), 448 458 .writeable_reg = rockchip_i2s_wr_reg, 449 459 .readable_reg = rockchip_i2s_rd_reg, 450 460 .volatile_reg = rockchip_i2s_volatile_reg,