Commit df340d70 authored by Sugar Zhang's avatar Sugar Zhang Committed by Tao Huang
Browse files

ASoC: rockchip: vad: Add support for rk3568



Change-Id: If484601504c69309ae40a5b43bfae8e31e90239c
Signed-off-by: default avatarSugar Zhang <sugar.zhang@rock-chips.com>
parent 07b7fc9e
......@@ -6,6 +6,7 @@ Required properties:
- "rockchip,rk1808es-vad": for rk1808es
- "rockchip,rk1808-vad": for rk1808
- "rockchip,rk3308-vad": for rk3308
- "rockchip,rk3568-vad": for rk3568
- reg: physical base address of the controller and length of memory mapped
region.
- clocks: a list of phandle + clock-specifer pairs, one for each entry in clock-names.
......
......@@ -616,6 +616,14 @@ static const struct audio_src_addr_map rk3308_addr_map[] = {
{ /* sentinel */ },
};
static const struct audio_src_addr_map rk3568_addr_map[] = {
{ 0, RK3568_I2S_8CH_1 },
{ 1, RK3568_I2S_2CH_2 },
{ 2, RK3568_I2S_2CH_3 },
{ 3, RK3568_PDM },
{ /* sentinel */ },
};
static const struct vad_soc_data rk1808es_soc_data = {
.version = VAD_RK1808ES,
.map = rk1808_addr_map,
......@@ -631,6 +639,11 @@ static const struct vad_soc_data rk3308_soc_data = {
.map = rk3308_addr_map,
};
static const struct vad_soc_data rk3568_soc_data = {
.version = VAD_RK1808,
.map = rk3568_addr_map,
};
static int rockchip_vad_get_audio_src_address(struct rockchip_vad *vad,
u32 addr)
{
......@@ -1116,6 +1129,7 @@ static const struct of_device_id rockchip_vad_match[] = {
{ .compatible = "rockchip,rk1808es-vad", .data = &rk1808es_soc_data },
{ .compatible = "rockchip,rk1808-vad", .data = &rk1808_soc_data },
{ .compatible = "rockchip,rk3308-vad", .data = &rk3308_soc_data },
{ .compatible = "rockchip,rk3568-vad", .data = &rk3568_soc_data },
{},
};
......
......@@ -218,4 +218,10 @@
#define RK3308_I2S_8CH_3 0xff330800
#define RK3308_PDM_8CH 0xff380400
/* RK3568 SOC */
#define RK3568_I2S_8CH_1 0xfe410800
#define RK3568_I2S_2CH_2 0xfe420800
#define RK3568_I2S_2CH_3 0xfe430800
#define RK3568_PDM 0xfe440400
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment