SUMMARY = "Xilinx DisplayPort Linux Kernel module"
DESCRIPTION = "Out-of-tree DisplayPort(DP) kernel modules provider for aarch64 devices"
SECTION = "kernel/modules"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=eb723b61539feef013de476e68b5c50a"

XLNX_DP_VERSION = "5.4.0"
PV = "${XLNX_DP_VERSION}"

S = "${WORKDIR}/git"

BRANCH ?= "master"
REPO   ?= "git://github.com/xilinx/dp-modules.git;protocol=https"
SRCREV ?= "a3a7dfe17cf610fd4186b11638e1ce6b78dc958a"

BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"

inherit module

EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}"
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"
COMPATIBLE_MACHINE_versal = "versal"

PACKAGE_ARCH = "${SOC_FAMILY_ARCH}"

Add support for Xilinx DP drivers
kernel-module-dp: Add support for Xilinx DP drivers

This recipe will pull in the Xilinx DP drivers and associated
components, for soft IP, to be built as an out-of-tree modules.

Following out-of-tree modules will be built

dp-rx (v4l2):
The DisplayPortPlay 1.4 Rx Subsystem is a feature-rich soft IP
incorporating all the necessary logic to properly interface with PHY
layers and provide DP decoding functionality. The subsystem is a
hierarchical IP that bundles a collection of DP RX-related IP
sub-cores and outputs them as a single IP.  The subsystem outputs
multi-pixel video to AXI4-Stream Protocol interface.

dp-tx (drm):
The DisplayPortPlay 1.4 Tx subsystem is a feature-rich soft IP
incorporating all the necessary logic to properly interface with
xilinx PHY layers and provide DP encoding functionality. The subsystem
is a hierarchical IP that bundles a collection of DP TX-related IP
sub-cores and outputs them as a single IP. The subsystem takes incoming
video and transfers them to an DP stream. The stream is then forwarded
to the video PHY layer.

video-phy (phy):
Xilinx Video Phy implements the physical layer for enabling the
plug-and-play connectivity with dp MAC transmit and receive
subsystems.  This driver is also used as the repository for common files
used by dp rx and tx drivers including hdcp1.4 and hdcp2.x software
stack.

Signed-off-by: Sandeep Gundlupet Raju <eaeca0ea0d778dfb64d22c43189d46f965ce7ff5@xilinx.com>
Signed-off-by: Sai Hari Chandana Kalluri <dcd6f85a7bffd89d026445db0f5113d6d436d06a@xilinx.com>
