ASoC: rockchip: i2s-tdm: add compatible for rk1808

Change-Id: I0996c320b12b8eb29f88cc5b8fe96d64db55fac6
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This commit is contained in:
Sugar Zhang
2018-09-23 22:29:34 +08:00
committed by Tao Huang
parent 3c736a8a3c
commit 1d62242355
2 changed files with 6 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
Required properties:
- compatible: should be one of the following
- "rockchip,rk1808-i2s-tdm": for rk1808
- "rockchip,rk3308-i2s-tdm": for rk3308
- reg: physical base address of the controller and length of memory mapped
region.

View File

@@ -1028,11 +1028,16 @@ static const struct regmap_config rockchip_i2s_tdm_regmap_config = {
.cache_type = REGCACHE_FLAT,
};
static struct rk_i2s_soc_data rk1808_i2s_soc_data = {
.softrst_offset = 0x0300,
};
static struct rk_i2s_soc_data rk3308_i2s_soc_data = {
.softrst_offset = 0x0400,
};
static const struct of_device_id rockchip_i2s_tdm_match[] = {
{ .compatible = "rockchip,rk1808-i2s-tdm", .data = &rk1808_i2s_soc_data },
{ .compatible = "rockchip,rk3308-i2s-tdm", .data = &rk3308_i2s_soc_data },
{},
};