diff options
author | Sugar Zhang <sugar.zhang@rock-chips.com> | 2016-04-11 11:26:03 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-05-30 17:19:41 +0200 |
commit | 170abcaae8bec0a53f2f7708a83119ec42fb09e2 (patch) | |
tree | 81e39509d076707f6ac8c433686088003b07d46c /sound/soc/rockchip/rockchip_i2s.h | |
parent | Linux 4.7-rc1 (diff) | |
download | linux-170abcaae8bec0a53f2f7708a83119ec42fb09e2.tar.xz linux-170abcaae8bec0a53f2f7708a83119ec42fb09e2.zip |
ASoC: rockchip: i2s: configure the sdio pins' iomux mode
There are 3 i2s sdio pins, which iomux mode is as follows:
- sdi3_sdo1
- sdi2_sdo2
- sdi1_sdo3
we need to configure these pins' iomux mode via the GRF register
when use multi channel playback/capture.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/rockchip/rockchip_i2s.h')
-rw-r--r-- | sound/soc/rockchip/rockchip_i2s.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/rockchip/rockchip_i2s.h b/sound/soc/rockchip/rockchip_i2s.h index dc6e2c74d088..8e239d301bc7 100644 --- a/sound/soc/rockchip/rockchip_i2s.h +++ b/sound/soc/rockchip/rockchip_i2s.h @@ -236,4 +236,11 @@ enum { #define I2S_TXDR (0x0024) #define I2S_RXDR (0x0028) +/* io direction cfg register */ +#define I2S_IO_DIRECTION_MASK (7) +#define I2S_IO_8CH_OUT_2CH_IN (0) +#define I2S_IO_6CH_OUT_4CH_IN (4) +#define I2S_IO_4CH_OUT_6CH_IN (6) +#define I2S_IO_2CH_OUT_8CH_IN (7) + #endif /* _ROCKCHIP_IIS_H */ |