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

Change-Id: I8c6584fe62eae44197bbd18e86544e278a3b7021
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This commit is contained in:
Sugar Zhang
2018-09-23 22:51:24 +08:00
committed by Tao Huang
parent 9f20288e59
commit 7b0b783d5a
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,px30-i2s-tdm": for px30
- "rockchip,rk1808-i2s-tdm": for rk1808
- "rockchip,rk3308-i2s-tdm": for rk3308
- reg: physical base address of the controller and length of memory mapped

View File

@@ -1028,6 +1028,10 @@ static const struct regmap_config rockchip_i2s_tdm_regmap_config = {
.cache_type = REGCACHE_FLAT,
};
static struct rk_i2s_soc_data px30_i2s_soc_data = {
.softrst_offset = 0x0300,
};
static struct rk_i2s_soc_data rk1808_i2s_soc_data = {
.softrst_offset = 0x0300,
};
@@ -1037,6 +1041,7 @@ static struct rk_i2s_soc_data rk3308_i2s_soc_data = {
};
static const struct of_device_id rockchip_i2s_tdm_match[] = {
{ .compatible = "rockchip,px30-i2s-tdm", .data = &px30_i2s_soc_data },
{ .compatible = "rockchip,rk1808-i2s-tdm", .data = &rk1808_i2s_soc_data },
{ .compatible = "rockchip,rk3308-i2s-tdm", .data = &rk3308_i2s_soc_data },
{},