linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] patches to add support for rockchip rt5640 card
@ 2016-02-22  7:56 Sugar Zhang
  2016-02-22  7:56 ` [PATCH v1 1/2] ASoC: rockchip: i2s: add default values for registers Sugar Zhang
  2016-02-22 11:04 ` [PATCH v1 0/2] patches to add support for rockchip rt5640 card Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Sugar Zhang @ 2016-02-22  7:56 UTC (permalink / raw)
  To: linux-arm-kernel

add default values for i2s registers from TRM.
rt5640: add master clock handing.


Sugar Zhang (2):
  ASoC: rockchip: i2s: add default values for registers
  ASoC: rt5640: add master clock handling for rt5640

 Documentation/devicetree/bindings/sound/rt5640.txt |  3 +++
 sound/soc/codecs/rt5640.c                          | 31 ++++++++++++++++++++++
 sound/soc/codecs/rt5640.h                          |  2 ++
 sound/soc/rockchip/rockchip_i2s.c                  | 10 +++++++
 4 files changed, 46 insertions(+)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v1 1/2] ASoC: rockchip: i2s: add default values for registers
  2016-02-22  7:56 [PATCH v1 0/2] patches to add support for rockchip rt5640 card Sugar Zhang
@ 2016-02-22  7:56 ` Sugar Zhang
  2016-02-22 11:04 ` [PATCH v1 0/2] patches to add support for rockchip rt5640 card Mark Brown
  1 sibling, 0 replies; 4+ messages in thread
From: Sugar Zhang @ 2016-02-22  7:56 UTC (permalink / raw)
  To: linux-arm-kernel

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

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
---

 sound/soc/rockchip/rockchip_i2s.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c
index 6561c4c..a0b0942 100644
--- a/sound/soc/rockchip/rockchip_i2s.c
+++ b/sound/soc/rockchip/rockchip_i2s.c
@@ -440,11 +440,21 @@ static bool rockchip_i2s_precious_reg(struct device *dev, unsigned int reg)
 	}
 }
 
+static const struct reg_default rockchip_i2s_reg_defaults[] = {
+	{0x00, 0x0000000f},
+	{0x04, 0x0000000f},
+	{0x08, 0x00071f1f},
+	{0x10, 0x001f0000},
+	{0x14, 0x01f00000},
+};
+
 static const struct regmap_config rockchip_i2s_regmap_config = {
 	.reg_bits = 32,
 	.reg_stride = 4,
 	.val_bits = 32,
 	.max_register = I2S_RXDR,
+	.reg_defaults = rockchip_i2s_reg_defaults,
+	.num_reg_defaults = ARRAY_SIZE(rockchip_i2s_reg_defaults),
 	.writeable_reg = rockchip_i2s_wr_reg,
 	.readable_reg = rockchip_i2s_rd_reg,
 	.volatile_reg = rockchip_i2s_volatile_reg,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v1 0/2] patches to add support for rockchip rt5640 card
  2016-02-22  7:56 [PATCH v1 0/2] patches to add support for rockchip rt5640 card Sugar Zhang
  2016-02-22  7:56 ` [PATCH v1 1/2] ASoC: rockchip: i2s: add default values for registers Sugar Zhang
@ 2016-02-22 11:04 ` Mark Brown
  2016-02-23  0:57   ` sugar
  1 sibling, 1 reply; 4+ messages in thread
From: Mark Brown @ 2016-02-22 11:04 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Feb 22, 2016 at 03:56:53PM +0800, Sugar Zhang wrote:

> Sugar Zhang (2):
>   ASoC: rockchip: i2s: add default values for registers
>   ASoC: rt5640: add master clock handling for rt5640

These appear to be commpletly unrelated patches so should each be sent
individually rather than as a series - that way there is no confusion
about them possibly depending on each other and they are easier to
review and apply.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160222/40b71dfd/attachment.sig>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v1 0/2] patches to add support for rockchip rt5640 card
  2016-02-22 11:04 ` [PATCH v1 0/2] patches to add support for rockchip rt5640 card Mark Brown
@ 2016-02-23  0:57   ` sugar
  0 siblings, 0 replies; 4+ messages in thread
From: sugar @ 2016-02-23  0:57 UTC (permalink / raw)
  To: linux-arm-kernel



? 2/22/2016 19:04, Mark Brown ??:
> On Mon, Feb 22, 2016 at 03:56:53PM +0800, Sugar Zhang wrote:
>
>> Sugar Zhang (2):
>>    ASoC: rockchip: i2s: add default values for registers
>>    ASoC: rt5640: add master clock handling for rt5640
>
> These appear to be commpletly unrelated patches so should each be sent
> individually rather than as a series - that way there is no confusion
> about them possibly depending on each other and they are easier to
> review and apply.
>

Got it, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-23  0:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-22  7:56 [PATCH v1 0/2] patches to add support for rockchip rt5640 card Sugar Zhang
2016-02-22  7:56 ` [PATCH v1 1/2] ASoC: rockchip: i2s: add default values for registers Sugar Zhang
2016-02-22 11:04 ` [PATCH v1 0/2] patches to add support for rockchip rt5640 card Mark Brown
2016-02-23  0:57   ` sugar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).