mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
7d7aa2fd92
This change makes the names of Broadcom targets consistent by using the common notation based on SoC/CPU ID (which is used internally anyway), bcmXXXX instead of brcmXXXX. This is even used for target TITLE in make menuconfig already, only the short target name used brcm so far. Despite, since subtargets range from bcm2708 to bcm2711, it seems appropriate to use bcm27xx instead of bcm2708 (again, as already done for BOARDNAME). This also renames the packages brcm2708-userland and brcm2708-gpu-fw. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Acked-by: Álvaro Fernández Rojas <noltari@gmail.com>
56 lines
1.7 KiB
Diff
56 lines
1.7 KiB
Diff
From 3cd15f787b391db5224a27715fe9dc6fc8559bee Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
|
Date: Fri, 3 May 2019 13:58:03 +0100
|
|
Subject: [PATCH] drm: vc4-firmware-kms: Remove incorrect overscan
|
|
support.
|
|
|
|
The overscan support was required for the old mailbox API
|
|
in order to match up the cursor and frame buffer planes.
|
|
With the newer API directly talking to dispmanx there is no
|
|
difference, therefore FKMS does not need to make any
|
|
adjustments.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_firmware_kms.c | 15 ---------------
|
|
1 file changed, 15 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_firmware_kms.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_firmware_kms.c
|
|
@@ -232,7 +232,6 @@ struct vc4_crtc {
|
|
void __iomem *regs;
|
|
|
|
struct drm_pending_vblank_event *event;
|
|
- u32 overscan[4];
|
|
bool vblank_enabled;
|
|
u32 display_number;
|
|
u32 display_type;
|
|
@@ -468,11 +467,6 @@ static void vc4_plane_atomic_update(stru
|
|
break;
|
|
}
|
|
|
|
- if (vc4_crtc) {
|
|
- mb->plane.dst_x += vc4_crtc->overscan[0];
|
|
- mb->plane.dst_y += vc4_crtc->overscan[1];
|
|
- }
|
|
-
|
|
DRM_DEBUG_ATOMIC("[PLANE:%d:%s] plane update %dx%d@%d +dst(%d,%d, %d,%d) +src(%d,%d, %d,%d) 0x%08x/%08x/%08x/%d, alpha %u zpos %u\n",
|
|
plane->base.id, plane->name,
|
|
mb->plane.width,
|
|
@@ -1228,15 +1222,6 @@ static int vc4_fkms_create_screen(struct
|
|
goto err_destroy_encoder;
|
|
}
|
|
|
|
- ret = rpi_firmware_property(vc4->firmware,
|
|
- RPI_FIRMWARE_FRAMEBUFFER_GET_OVERSCAN,
|
|
- &vc4_crtc->overscan,
|
|
- sizeof(vc4_crtc->overscan));
|
|
- if (ret) {
|
|
- DRM_ERROR("Failed to get overscan state: 0x%08x\n", vc4_crtc->overscan[0]);
|
|
- memset(&vc4_crtc->overscan, 0, sizeof(vc4_crtc->overscan));
|
|
- }
|
|
-
|
|
*ret_crtc = vc4_crtc;
|
|
|
|
return 0;
|