mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user