mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 09:12:39 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
67 lines
2.2 KiB
Diff
67 lines
2.2 KiB
Diff
From 7d345345b70f00bf4c673a68da7d1cf0faf5cc47 Mon Sep 17 00:00:00 2001
|
|
From: Maxime Ripard <maxime@cerno.tech>
|
|
Date: Tue, 25 Apr 2023 10:21:53 +0200
|
|
Subject: [PATCH] drm/vc4: txp: Rename TXP data structure
|
|
|
|
The TXP data structure has a name too generic for the multiple variants
|
|
we'll have to support. Let's rename it to mention the SoC it applies to.
|
|
|
|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
|
---
|
|
drivers/gpu/drm/vc4/tests/vc4_mock.c | 4 ++--
|
|
drivers/gpu/drm/vc4/vc4_drv.h | 2 +-
|
|
drivers/gpu/drm/vc4/vc4_txp.c | 4 ++--
|
|
3 files changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/tests/vc4_mock.c
|
|
+++ b/drivers/gpu/drm/vc4/tests/vc4_mock.c
|
|
@@ -51,7 +51,7 @@ struct vc4_mock_desc {
|
|
|
|
static const struct vc4_mock_desc vc4_mock =
|
|
VC4_MOCK_DESC(
|
|
- VC4_MOCK_CRTC_DESC(&vc4_txp_data.base,
|
|
+ VC4_MOCK_CRTC_DESC(&bcm2835_txp_data.base,
|
|
VC4_MOCK_OUTPUT_DESC(VC4_ENCODER_TYPE_TXP,
|
|
DRM_MODE_ENCODER_VIRTUAL,
|
|
DRM_MODE_CONNECTOR_WRITEBACK)),
|
|
@@ -77,7 +77,7 @@ static const struct vc4_mock_desc vc4_mo
|
|
|
|
static const struct vc4_mock_desc vc5_mock =
|
|
VC4_MOCK_DESC(
|
|
- VC4_MOCK_CRTC_DESC(&vc4_txp_data.base,
|
|
+ VC4_MOCK_CRTC_DESC(&bcm2835_txp_data.base,
|
|
VC4_MOCK_OUTPUT_DESC(VC4_ENCODER_TYPE_TXP,
|
|
DRM_MODE_ENCODER_VIRTUAL,
|
|
DRM_MODE_CONNECTOR_WRITEBACK)),
|
|
--- a/drivers/gpu/drm/vc4/vc4_drv.h
|
|
+++ b/drivers/gpu/drm/vc4/vc4_drv.h
|
|
@@ -565,7 +565,7 @@ struct vc4_txp_data {
|
|
struct vc4_crtc_data base;
|
|
};
|
|
|
|
-extern const struct vc4_txp_data vc4_txp_data;
|
|
+extern const struct vc4_txp_data bcm2835_txp_data;
|
|
|
|
struct vc4_pv_data {
|
|
struct vc4_crtc_data base;
|
|
--- a/drivers/gpu/drm/vc4/vc4_txp.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_txp.c
|
|
@@ -489,7 +489,7 @@ static irqreturn_t vc4_txp_interrupt(int
|
|
return IRQ_HANDLED;
|
|
}
|
|
|
|
-const struct vc4_txp_data vc4_txp_data = {
|
|
+const struct vc4_txp_data bcm2835_txp_data = {
|
|
.base = {
|
|
.name = "txp",
|
|
.debugfs_name = "txp_regs",
|
|
@@ -593,7 +593,7 @@ static int vc4_txp_remove(struct platfor
|
|
}
|
|
|
|
static const struct of_device_id vc4_txp_dt_match[] = {
|
|
- { .compatible = "brcm,bcm2835-txp", .data = &vc4_txp_data },
|
|
+ { .compatible = "brcm,bcm2835-txp", .data = &bcm2835_txp_data },
|
|
{ /* sentinel */ },
|
|
};
|
|
|