Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d6f0a68 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm-lease: create DRM MSM LEASE driver" into dev/msm-4.14-display

parents 068f5a8d dd470825
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
Qualcomm Technologies, Inc. SDE KMS LEASE

Snapdragon Display Engine Lease registers with the Linux DRM/KMS framework to
facilitate DRM driver creation, publishing /dev/dri/card<n>, n=1,2,... from
card0 with objects implicitly leased.

Required properties
- compatible: Must be "qcom,sde-kms-lease".
- qcom,lease-connectors: Connector names leased to the card.
- qcom,lease-planes: Plane names leased to the card.

Optional properties
- qcom,dev-name: Name of the lease device.

Example:
	card1: qcom,sde-kms-lease@0 {
		compatible = "qcom,sde-kms-lease";
		qcom,dev-name = "msm_drm1";
		qcom,lease-connectors = "DSI-1";
		qcom,lease-planes = "plane-0", "plane-8";
	};

	card2: qcom,sde-kms-lease@1 {
		compatible = "qcom,sde-kms-lease";
		qcom,dev-name = "msm_drm2";
		qcom,lease-connectors = "DSI-2";
		qcom,lease-planes = "plane-1", "plane-9";
	};
+2 −0
Original line number Diff line number Diff line
@@ -245,6 +245,8 @@ source "drivers/gpu/drm/msm/Kconfig"

source "drivers/gpu/drm/msm-hyp/Kconfig"

source "drivers/gpu/drm/msm-lease/Kconfig"

source "drivers/gpu/drm/fsl-dcu/Kconfig"

source "drivers/gpu/drm/tegra/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -85,6 +85,7 @@ obj-$(CONFIG_DRM_BOCHS) += bochs/
obj-$(CONFIG_DRM_VIRTIO_GPU) += virtio/
obj-$(CONFIG_DRM_MSM) += msm/
obj-$(CONFIG_DRM_MSM_HYP) += msm-hyp/
obj-$(CONFIG_DRM_MSM_LEASE) += msm-lease/
obj-$(CONFIG_DRM_TEGRA) += tegra/
obj-$(CONFIG_DRM_STM) += stm/
obj-$(CONFIG_DRM_STI) += sti/
+14 −0
Original line number Diff line number Diff line
#
# Drm MSM lease configuration
#
# This driver provides support for the User Space DRM Masters
#
config DRM_MSM_LEASE
	tristate "MSM DRM LEASE"
	depends on DRM_MSM
	help
	  DRM/KMS driver for MSM/snapdragon in lease mode. This driver
	  registers with DRM framework and creates virtual DRI cards at
	  /dev/dri/card<n>, n=1,2,..., from DRM object names listed in
	  devicetree. When virtual card is opened, an internal DRM
	  object leasing will take place and return with the lessee FD.
+4 −0
Original line number Diff line number Diff line
ccflags-$(CONFIG_DRM_MSM_LEASE) := -Iinclude/drm

obj-$(CONFIG_DRM_MSM_LEASE) := \
	msm_lease_drv.o
Loading