We'll have multiple TXP instances in the BCM2712, so we can't use a
single encoder type anymore. Let's tie the encoder type to the
compatible.
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
struct vc4_txp_data {
struct vc4_crtc_data base;
+ enum vc4_encoder_type encoder_type;
unsigned int has_byte_enable:1;
unsigned int size_minus_one:1;
unsigned int supports_40bit_addresses:1;
.hvs_available_channels = BIT(2),
.hvs_output = 2,
},
+ .encoder_type = VC4_ENCODER_TYPE_TXP,
.has_byte_enable = true,
};
return ret;
vc4_encoder = &txp->encoder;
- txp->encoder.type = VC4_ENCODER_TYPE_TXP;
+ txp->encoder.type = txp_data->encoder_type;
encoder = &vc4_encoder->base;
encoder->possible_crtcs = drm_crtc_mask(&vc4_crtc->base);