mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
staging: media: tegra-video: expand VI and VIP support to Tegra30
Existing VI and VIP implementation for Tegra20 is fully compatible with Tegra30. Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com> Tested-by: Luca Ceresoli <luca.ceresoli@bootlin.com> # Tegra20 VIP Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
a93a51f42a
commit
410ff94513
|
|
@ -6,5 +6,6 @@ tegra-video-objs := \
|
|||
csi.o
|
||||
|
||||
tegra-video-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20.o
|
||||
tegra-video-$(CONFIG_ARCH_TEGRA_3x_SOC) += tegra20.o
|
||||
tegra-video-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210.o
|
||||
obj-$(CONFIG_VIDEO_TEGRA) += tegra-video.o
|
||||
|
|
|
|||
|
|
@ -1959,7 +1959,7 @@ static void tegra_vi_remove(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct of_device_id tegra_vi_of_id_table[] = {
|
||||
#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
|
||||
#if defined(CONFIG_ARCH_TEGRA_2x_SOC) || defined(CONFIG_ARCH_TEGRA_3x_SOC)
|
||||
{ .compatible = "nvidia,tegra20-vi", .data = &tegra20_vi_soc },
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_TEGRA_210_SOC)
|
||||
|
|
|
|||
|
|
@ -296,7 +296,7 @@ struct tegra_video_format {
|
|||
u32 fourcc;
|
||||
};
|
||||
|
||||
#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
|
||||
#if defined(CONFIG_ARCH_TEGRA_2x_SOC) || defined(CONFIG_ARCH_TEGRA_3x_SOC)
|
||||
extern const struct tegra_vi_soc tegra20_vi_soc;
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_TEGRA_210_SOC)
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ static void host1x_video_remove(struct host1x_device *dev)
|
|||
}
|
||||
|
||||
static const struct of_device_id host1x_video_subdevs[] = {
|
||||
#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
|
||||
#if defined(CONFIG_ARCH_TEGRA_2x_SOC) || defined(CONFIG_ARCH_TEGRA_3x_SOC)
|
||||
{ .compatible = "nvidia,tegra20-vip", },
|
||||
{ .compatible = "nvidia,tegra20-vi", },
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -264,7 +264,7 @@ static void tegra_vip_remove(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct of_device_id tegra_vip_of_id_table[] = {
|
||||
#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
|
||||
#if defined(CONFIG_ARCH_TEGRA_2x_SOC) || defined(CONFIG_ARCH_TEGRA_3x_SOC)
|
||||
{ .compatible = "nvidia,tegra20-vip", .data = &tegra20_vip_soc },
|
||||
#endif
|
||||
{ }
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ struct tegra_vip_soc {
|
|||
const struct tegra_vip_ops *ops;
|
||||
};
|
||||
|
||||
#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
|
||||
#if defined(CONFIG_ARCH_TEGRA_2x_SOC) || defined(CONFIG_ARCH_TEGRA_3x_SOC)
|
||||
extern const struct tegra_vip_soc tegra20_vip_soc;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user