]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/vc4: txp: Add BCM2712 MOPLET support
authorMaxime Ripard <mripard@kernel.org>
Fri, 25 Oct 2024 17:15:52 +0000 (18:15 +0100)
committerDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 27 Nov 2024 14:37:20 +0000 (14:37 +0000)
The BCM2712 features a simpler TXP called MOPLET. Let's add support for
it.

Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241025-drm-vc4-2712-support-v2-21-35efa83c8fc0@raspberrypi.com
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_txp.c

index 0fb8a57652b56929c5b2c31d9f6ab3bee38af23b..f6b6f8627f61a517014819b25ede5301a39254e5 100644 (file)
@@ -524,6 +524,19 @@ static const struct vc4_txp_data bcm2712_mop_data = {
        .supports_40bit_addresses = true,
 };
 
+static const struct vc4_txp_data bcm2712_moplet_data = {
+       .base = {
+               .name = "moplet",
+               .debugfs_name = "moplet_regs",
+               .hvs_available_channels = BIT(1),
+               .hvs_output = 4,
+       },
+       .encoder_type = VC4_ENCODER_TYPE_TXP1,
+       .high_addr_ptr_reg = TXP_DST_PTR_HIGH_MOPLET,
+       .size_minus_one = true,
+       .supports_40bit_addresses = true,
+};
+
 const struct vc4_txp_data bcm2835_txp_data = {
        .base = {
                .name = "txp",
@@ -630,6 +643,7 @@ static void vc4_txp_remove(struct platform_device *pdev)
 
 static const struct of_device_id vc4_txp_dt_match[] = {
        { .compatible = "brcm,bcm2712-mop", .data = &bcm2712_mop_data },
+       { .compatible = "brcm,bcm2712-moplet", .data = &bcm2712_moplet_data },
        { .compatible = "brcm,bcm2835-txp", .data = &bcm2835_txp_data },
        { /* sentinel */ },
 };