Ver Fonte

drm/tidss: dispc7: Add subrev to struct dispc7_features

There will be different versions of DSS7 and it is good to introduce
this variable early.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Jyri Sarha há 6 anos atrás
pai
commit
91b6873cc3

+ 2 - 0
drivers/gpu/drm/tidss/tidss_dispc7.c

@@ -55,6 +55,8 @@ static const struct dispc7_features dispc7_am6_feats = {
 		.xinc_max = 32,
 	},
 
+	.subrev = DSS7_AM6,
+
 	.num_vps = 2,
 	.vp_name = { "vp1", "vp2" },
 	.ovr_name = { "ovr1", "ovr2" },

+ 6 - 0
drivers/gpu/drm/tidss/tidss_dispc7.h

@@ -30,6 +30,10 @@ enum dispc7_vp_bus_type {
 	DISPC7_VP_OLDI,
 };
 
+enum dispc7_dss_subrevision {
+	DSS7_AM6,
+};
+
 struct dispc7_features {
 	/* XXX should these come from the .dts? Min pclk is not feature of DSS IP */
 	unsigned long min_pclk;
@@ -37,6 +41,8 @@ struct dispc7_features {
 
 	struct dispc7_features_scaling scaling;
 
+	enum dispc7_dss_subrevision subrev;
+
 	u32 num_vps;
 	const char *vp_name[DISPC7_MAX_PORTS]; /* Should match dt reg names */
 	const char *ovr_name[DISPC7_MAX_PORTS]; /* Should match dt reg names */