ASoC: rockchip: pdm: Build depends on CPU config

$ ./scripts/bloat-o-meter rockchip_pdm.o.old rockchip_pdm.o
add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-980 (-980)
Function                                     old     new   delta
rockchip_pdm_match                          1372     392    -980
Total: Before=7288, After=6308, chg -13.45%

Change-Id: I9450d3a7e3f85482473e2086a0fcb8313d6db30d
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This commit is contained in:
Sugar Zhang
2021-08-18 18:22:01 +08:00
committed by Tao Huang
parent a6f29f4e17
commit db30f559af

View File

@@ -668,18 +668,30 @@ static const struct regmap_config rockchip_pdm_regmap_config = {
};
static const struct of_device_id rockchip_pdm_match[] = {
#ifdef CONFIG_CPU_PX30
{ .compatible = "rockchip,px30-pdm",
.data = (void *)RK_PDM_RK3308 },
#endif
#ifdef CONFIG_CPU_RK1808
{ .compatible = "rockchip,rk1808-pdm",
.data = (void *)RK_PDM_RK3308 },
#endif
#ifdef CONFIG_CPU_RK3308
{ .compatible = "rockchip,rk3308-pdm",
.data = (void *)RK_PDM_RK3308 },
#endif
#ifdef CONFIG_CPU_RK3328
{ .compatible = "rockchip,rk3328-pdm",
.data = (void *)RK_PDM_RK3328 },
#endif
#ifdef CONFIG_CPU_RK3568
{ .compatible = "rockchip,rk3568-pdm",
.data = (void *)RK_PDM_RV1126 },
#endif
#ifdef CONFIG_CPU_RV1126
{ .compatible = "rockchip,rv1126-pdm",
.data = (void *)RK_PDM_RV1126 },
#endif
{},
};
MODULE_DEVICE_TABLE(of, rockchip_pdm_match);