b0866112e9ba4ba10726b3b97ef4808e104722f2
[openwrt/staging/wigyori.git] / target / linux / brcm2708 / patches-4.19 / 950-0768-configs-arm64-vcm2711-Enable-V3D.patch
1 From 171e9f6e618385662980f13345c13823c34ce619 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Thu, 15 Aug 2019 12:02:34 +0100
4 Subject: [PATCH 768/782] configs: arm64/vcm2711: Enable V3D
5
6 Enable the V3D driver, which depends on BCM2835_POWER.
7
8 Originally submitted by GitHub user 'phire' in a slightly different
9 form.
10
11 See: https://github.com/raspberrypi/linux/pull/3063
12
13 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
14 ---
15 arch/arm64/configs/bcm2711_defconfig | 2 ++
16 drivers/gpu/drm/v3d/Kconfig | 2 +-
17 2 files changed, 3 insertions(+), 1 deletion(-)
18
19 --- a/arch/arm64/configs/bcm2711_defconfig
20 +++ b/arch/arm64/configs/bcm2711_defconfig
21 @@ -791,6 +791,7 @@ CONFIG_DRM_LOAD_EDID_FIRMWARE=y
22 CONFIG_DRM_UDL=m
23 CONFIG_DRM_PANEL_SIMPLE=m
24 CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN=m
25 +CONFIG_DRM_V3D=m
26 CONFIG_DRM_VC4=m
27 CONFIG_DRM_TINYDRM=m
28 CONFIG_TINYDRM_MI0283QT=m
29 @@ -1135,6 +1136,7 @@ CONFIG_VIDEO_BCM2835=m
30 CONFIG_MAILBOX=y
31 CONFIG_BCM2835_MBOX=y
32 # CONFIG_IOMMU_SUPPORT is not set
33 +CONFIG_BCM2835_POWER=y
34 CONFIG_RASPBERRYPI_POWER=y
35 CONFIG_EXTCON=m
36 CONFIG_EXTCON_ARIZONA=m
37 --- a/drivers/gpu/drm/v3d/Kconfig
38 +++ b/drivers/gpu/drm/v3d/Kconfig
39 @@ -1,6 +1,6 @@
40 config DRM_V3D
41 tristate "Broadcom V3D 3.x and newer"
42 - depends on ARCH_BCM || ARCH_BCMSTB || COMPILE_TEST
43 + depends on ARCH_BCM || ARCH_BCMSTB || ARCH_BCM2835 || COMPILE_TEST
44 depends on DRM
45 depends on COMMON_CLK
46 depends on MMU