diff options
author | Jianqun <jay.xu@rock-chips.com> | 2014-09-12 20:42:12 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-09-13 12:35:43 -0400 |
commit | 2f1e93f81cebfa99b668f27cdb14992ff23480a4 (patch) | |
tree | fa92f4e18a3a6176fbe8c038c710554c63b1eafd | |
parent | 07833d88314c496f8a136c6e4b4729c69e65b878 (diff) |
ASoC: rockchip-i2s: fix registers' property of rockchip i2s controller
Reference rockchip I2S controller TRM, modify some registers' property
I2S_FIFOLR: read / write, but not volatile, not precious
I2S_INTSR: read / write
I2S_CLR: volatile, register value will be cleared by read
Test on RK3288 with max98090.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/rockchip/rockchip_i2s.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c index 870a6645c782..fb9e05c9f471 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c | |||
@@ -362,6 +362,8 @@ static bool rockchip_i2s_rd_reg(struct device *dev, unsigned int reg) | |||
362 | case I2S_XFER: | 362 | case I2S_XFER: |
363 | case I2S_CLR: | 363 | case I2S_CLR: |
364 | case I2S_RXDR: | 364 | case I2S_RXDR: |
365 | case I2S_FIFOLR: | ||
366 | case I2S_INTSR: | ||
365 | return true; | 367 | return true; |
366 | default: | 368 | default: |
367 | return false; | 369 | return false; |
@@ -371,8 +373,8 @@ static bool rockchip_i2s_rd_reg(struct device *dev, unsigned int reg) | |||
371 | static bool rockchip_i2s_volatile_reg(struct device *dev, unsigned int reg) | 373 | static bool rockchip_i2s_volatile_reg(struct device *dev, unsigned int reg) |
372 | { | 374 | { |
373 | switch (reg) { | 375 | switch (reg) { |
374 | case I2S_FIFOLR: | ||
375 | case I2S_INTSR: | 376 | case I2S_INTSR: |
377 | case I2S_CLR: | ||
376 | return true; | 378 | return true; |
377 | default: | 379 | default: |
378 | return false; | 380 | return false; |
@@ -382,8 +384,6 @@ static bool rockchip_i2s_volatile_reg(struct device *dev, unsigned int reg) | |||
382 | static bool rockchip_i2s_precious_reg(struct device *dev, unsigned int reg) | 384 | static bool rockchip_i2s_precious_reg(struct device *dev, unsigned int reg) |
383 | { | 385 | { |
384 | switch (reg) { | 386 | switch (reg) { |
385 | case I2S_FIFOLR: | ||
386 | return true; | ||
387 | default: | 387 | default: |
388 | return false; | 388 | return false; |
389 | } | 389 | } |