[media] v4l: vsp1: Configure device based on IP version
The IP version number carries enough information to identify the exact device instance features. Drop the related DT properties and use the IP version instead. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
1517b03923
commit
5aa2eb3c86
@@ -47,7 +47,8 @@ struct vsp1_uds;
|
||||
#define VSP1_HAS_SRU (1 << 2)
|
||||
#define VSP1_HAS_BRU (1 << 3)
|
||||
|
||||
struct vsp1_platform_data {
|
||||
struct vsp1_device_info {
|
||||
u32 version;
|
||||
unsigned int features;
|
||||
unsigned int rpf_count;
|
||||
unsigned int uds_count;
|
||||
@@ -58,7 +59,7 @@ struct vsp1_platform_data {
|
||||
|
||||
struct vsp1_device {
|
||||
struct device *dev;
|
||||
struct vsp1_platform_data pdata;
|
||||
const struct vsp1_device_info *info;
|
||||
|
||||
void __iomem *mmio;
|
||||
struct clk *clock;
|
||||
|
Reference in New Issue
Block a user