Skip to content

Commit 847ec49

Browse files
mripardpelwell
authored andcommitted
drm/vc4: drv: Support BCM2712
The BCM2712 has an improved display pipeline, most notably with a different HVS and only HDMI and writeback outputs. Let's introduce it as a new VideoCore generation and compatible. Signed-off-by: Maxime Ripard <[email protected]>
1 parent e66d4b4 commit 847ec49

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

drivers/gpu/drm/vc4/vc4_drv.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@ static int vc4_drm_bind(struct device *dev)
310310

311311
dev->coherent_dma_mask = DMA_BIT_MASK(32);
312312

313-
if (of_device_is_compatible(dev->of_node, "brcm,bcm2711-vc5"))
313+
if (of_device_is_compatible(dev->of_node, "brcm,bcm2712-vc6"))
314+
gen = VC4_GEN_6;
315+
else if (of_device_is_compatible(dev->of_node, "brcm,bcm2711-vc5"))
314316
gen = VC4_GEN_5;
315317
else
316318
gen = VC4_GEN_4;
@@ -475,6 +477,7 @@ static int vc4_platform_drm_remove(struct platform_device *pdev)
475477

476478
static const struct of_device_id vc4_of_match[] = {
477479
{ .compatible = "brcm,bcm2711-vc5", },
480+
{ .compatible = "brcm,bcm2712-vc6", },
478481
{ .compatible = "brcm,bcm2835-vc4", },
479482
{ .compatible = "brcm,cygnus-vc4", },
480483
{},

drivers/gpu/drm/vc4/vc4_drv.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ struct vc4_perfmon {
8484
enum vc4_gen {
8585
VC4_GEN_4,
8686
VC4_GEN_5,
87+
VC4_GEN_6,
8788
};
8889

8990
struct vc4_dev {

0 commit comments

Comments
 (0)