mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
media: rockchip: cif: build depends on CPU config
When build with rv1126_defconfig: before: text data bss dec hex filename 7820 144 0 7964 1f1c drivers/media/platform/rockchip/cif/hw.o after: text data bss dec hex filename 4301 144 0 4445 115d drivers/media/platform/rockchip/cif/hw.o Signed-off-by: Tao Huang <huangtao@rock-chips.com> Change-Id: I0dee5f7f43da3eb58a65342319ccb77b5501e0ce
This commit is contained in:
@@ -680,34 +680,49 @@ static const struct rkcif_hw_match_data rk3568_cif_match_data = {
|
||||
|
||||
|
||||
static const struct of_device_id rkcif_plat_of_match[] = {
|
||||
#ifdef CONFIG_CPU_PX30
|
||||
{
|
||||
.compatible = "rockchip,px30-cif",
|
||||
.data = &px30_cif_match_data,
|
||||
},
|
||||
#endif
|
||||
#ifdef CONFIG_CPU_RK1808
|
||||
{
|
||||
.compatible = "rockchip,rk1808-cif",
|
||||
.data = &rk1808_cif_match_data,
|
||||
},
|
||||
#endif
|
||||
#ifdef CONFIG_CPU_RK312X
|
||||
{
|
||||
.compatible = "rockchip,rk3128-cif",
|
||||
.data = &rk3128_cif_match_data,
|
||||
},
|
||||
#endif
|
||||
#ifdef CONFIG_CPU_RK3288
|
||||
{
|
||||
.compatible = "rockchip,rk3288-cif",
|
||||
.data = &rk3288_cif_match_data,
|
||||
},
|
||||
#endif
|
||||
#ifdef CONFIG_CPU_RK3328
|
||||
{
|
||||
.compatible = "rockchip,rk3328-cif",
|
||||
.data = &rk3328_cif_match_data,
|
||||
},
|
||||
#endif
|
||||
#ifdef CONFIG_CPU_RK3368
|
||||
{
|
||||
.compatible = "rockchip,rk3368-cif",
|
||||
.data = &rk3368_cif_match_data,
|
||||
},
|
||||
#endif
|
||||
#ifdef CONFIG_CPU_RK3568
|
||||
{
|
||||
.compatible = "rockchip,rk3568-cif",
|
||||
.data = &rk3568_cif_match_data,
|
||||
},
|
||||
#endif
|
||||
#ifdef CONFIG_CPU_RV1126
|
||||
{
|
||||
.compatible = "rockchip,rv1126-cif",
|
||||
.data = &rv1126_cif_match_data,
|
||||
@@ -716,6 +731,7 @@ static const struct of_device_id rkcif_plat_of_match[] = {
|
||||
.compatible = "rockchip,rv1126-cif-lite",
|
||||
.data = &rv1126_cif_lite_match_data,
|
||||
},
|
||||
#endif
|
||||
{},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user