diff options
Diffstat (limited to 'meta-xilinx-core/recipes-kernel/hdmi')
| -rw-r--r-- | meta-xilinx-core/recipes-kernel/hdmi/files/0001-Support-both-pre-6.4.0-and-current-kernels.patch | 82 | ||||
| -rw-r--r-- | meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2022.1.bb | 24 | ||||
| -rw-r--r-- | meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2022.2.bb | 24 | ||||
| -rw-r--r-- | meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2023.1.bb | 24 | ||||
| -rw-r--r-- | meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2023.2.bb | 24 | ||||
| -rw-r--r-- | meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_6.6.10.bb (renamed from meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2024.1.bb) | 5 |
6 files changed, 85 insertions, 98 deletions
diff --git a/meta-xilinx-core/recipes-kernel/hdmi/files/0001-Support-both-pre-6.4.0-and-current-kernels.patch b/meta-xilinx-core/recipes-kernel/hdmi/files/0001-Support-both-pre-6.4.0-and-current-kernels.patch new file mode 100644 index 00000000..9bdbfc94 --- /dev/null +++ b/meta-xilinx-core/recipes-kernel/hdmi/files/0001-Support-both-pre-6.4.0-and-current-kernels.patch | |||
| @@ -0,0 +1,82 @@ | |||
| 1 | From e1352e6872edc2b521ad44eb776ce093553192e3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mark Hatle <mark.hatle@amd.com> | ||
| 3 | Date: Fri, 17 May 2024 10:44:37 -0600 | ||
| 4 | Subject: [PATCH] Support both pre 6.4.0 and current kernels | ||
| 5 | |||
| 6 | Signed-off-by: Mark Hatle <mark.hatle@amd.com> | ||
| 7 | --- | ||
| 8 | hdmi/xilinx_drm_hdmi.c | 3 +++ | ||
| 9 | misc/dp159.c | 14 ++++++++++++++ | ||
| 10 | 2 files changed, 17 insertions(+) | ||
| 11 | |||
| 12 | diff --git a/hdmi/xilinx_drm_hdmi.c b/hdmi/xilinx_drm_hdmi.c | ||
| 13 | index 104fc3d..6ebbdca 100644 | ||
| 14 | --- a/hdmi/xilinx_drm_hdmi.c | ||
| 15 | +++ b/hdmi/xilinx_drm_hdmi.c | ||
| 16 | @@ -17,6 +17,7 @@ | ||
| 17 | * GNU General Public License for more details. | ||
| 18 | */ | ||
| 19 | |||
| 20 | +#include <linux/version.h> | ||
| 21 | #include <drm/drm_atomic_helper.h> | ||
| 22 | #include <drm/drm_connector.h> | ||
| 23 | #include <drm/drm_crtc.h> | ||
| 24 | @@ -27,7 +28,9 @@ | ||
| 25 | #include <drm/drm_of.h> | ||
| 26 | #include <drm/drm_probe_helper.h> | ||
| 27 | #include <drm/drm_sysfs.h> | ||
| 28 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0) | ||
| 29 | #include <drm/display/drm_hdmi_helper.h> | ||
| 30 | +#endif | ||
| 31 | |||
| 32 | #include <linux/clk.h> | ||
| 33 | #include <linux/delay.h> | ||
| 34 | diff --git a/misc/dp159.c b/misc/dp159.c | ||
| 35 | index 73e886f..d2c60d9 100644 | ||
| 36 | --- a/misc/dp159.c | ||
| 37 | +++ b/misc/dp159.c | ||
| 38 | @@ -28,6 +28,7 @@ | ||
| 39 | #include <linux/of.h> | ||
| 40 | #include <linux/of.h> | ||
| 41 | #include <linux/clk-provider.h> | ||
| 42 | +#include <linux/version.h> | ||
| 43 | |||
| 44 | MODULE_DESCRIPTION("i2c device driver for dp159 redriver and retimer"); | ||
| 45 | MODULE_AUTHOR("Leon Woestenberg"); | ||
| 46 | @@ -133,7 +134,12 @@ struct clk_ops clk_tx_rate_ops = { | ||
| 47 | .round_rate = &clk_tx_round_rate, | ||
| 48 | }; | ||
| 49 | |||
| 50 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0) | ||
| 51 | static int dp159_probe(struct i2c_client *client) | ||
| 52 | +#else | ||
| 53 | +static int dp159_probe(struct i2c_client *client, | ||
| 54 | + const struct i2c_device_id *id) | ||
| 55 | +#endif | ||
| 56 | { | ||
| 57 | struct clk_tx_linerate *clk_tx; | ||
| 58 | struct clk *clk; | ||
| 59 | @@ -191,12 +197,20 @@ static int dp159_probe(struct i2c_client *client) | ||
| 60 | return 0; | ||
| 61 | } | ||
| 62 | |||
| 63 | + | ||
| 64 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0) | ||
| 65 | static void dp159_remove(struct i2c_client *client) | ||
| 66 | +#else | ||
| 67 | +static int dp159_remove(struct i2c_client *client) | ||
| 68 | +#endif | ||
| 69 | { | ||
| 70 | struct clk_tx_linerate *clk_tx; | ||
| 71 | clk_tx = (struct clk_tx_linerate *)i2c_get_clientdata(client); | ||
| 72 | if (clk_tx) | ||
| 73 | clk_unregister(clk_tx->clk); | ||
| 74 | +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 0) | ||
| 75 | + return 0; | ||
| 76 | +#endif | ||
| 77 | } | ||
| 78 | |||
| 79 | static const struct i2c_device_id dp159_id[] = { | ||
| 80 | -- | ||
| 81 | 2.34.1 | ||
| 82 | |||
diff --git a/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2022.1.bb b/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2022.1.bb deleted file mode 100644 index ea649bc4..00000000 --- a/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2022.1.bb +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | SUMMARY = "Xilinx HDMI Linux Kernel module" | ||
| 2 | DESCRIPTION = "Out-of-tree HDMI kernel modules provider for MPSoC EG/EV devices" | ||
| 3 | SECTION = "kernel/modules" | ||
| 4 | LICENSE = "GPL-2.0-only" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=b34277fe156508fd5a650609dc36d1fe" | ||
| 6 | |||
| 7 | XLNX_HDMI_VERSION = "5.15.0" | ||
| 8 | PV = "${XLNX_HDMI_VERSION}+xilinx-v${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or ''}+git${SRCPV}" | ||
| 9 | |||
| 10 | S = "${WORKDIR}/git" | ||
| 11 | |||
| 12 | BRANCH ?= "xlnx_rel_v2022.1" | ||
| 13 | REPO ?= "git://github.com/Xilinx/hdmi-modules.git;protocol=https" | ||
| 14 | SRCREV = "25b6fe7a26a975be15c002b48cfd4c291486491e" | ||
| 15 | |||
| 16 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 17 | SRC_URI = "${REPO};${BRANCHARG}" | ||
| 18 | |||
| 19 | inherit module | ||
| 20 | |||
| 21 | EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}" | ||
| 22 | COMPATIBLE_MACHINE = "^$" | ||
| 23 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" | ||
| 24 | COMPATIBLE_MACHINE:versal = "versal" | ||
diff --git a/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2022.2.bb b/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2022.2.bb deleted file mode 100644 index c1f66013..00000000 --- a/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2022.2.bb +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | SUMMARY = "Xilinx HDMI Linux Kernel module" | ||
| 2 | DESCRIPTION = "Out-of-tree HDMI kernel modules provider for MPSoC EG/EV devices" | ||
| 3 | SECTION = "kernel/modules" | ||
| 4 | LICENSE = "GPL-2.0-only" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=b34277fe156508fd5a650609dc36d1fe" | ||
| 6 | |||
| 7 | XLNX_HDMI_VERSION = "5.15.19" | ||
| 8 | PV = "${XLNX_HDMI_VERSION}+xilinx-v${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or ''}+git${SRCPV}" | ||
| 9 | |||
| 10 | S = "${WORKDIR}/git" | ||
| 11 | |||
| 12 | BRANCH ?= "xlnx_rel_v2022.2" | ||
| 13 | REPO ?= "git://github.com/Xilinx/hdmi-modules.git;protocol=https" | ||
| 14 | SRCREV = "25b6fe7a26a975be15c002b48cfd4c291486491e" | ||
| 15 | |||
| 16 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 17 | SRC_URI = "${REPO};${BRANCHARG}" | ||
| 18 | |||
| 19 | inherit module | ||
| 20 | |||
| 21 | EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}" | ||
| 22 | COMPATIBLE_MACHINE = "^$" | ||
| 23 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" | ||
| 24 | COMPATIBLE_MACHINE:versal = "versal" | ||
diff --git a/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2023.1.bb b/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2023.1.bb deleted file mode 100644 index 20acb8b3..00000000 --- a/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2023.1.bb +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | SUMMARY = "Xilinx HDMI Linux Kernel module" | ||
| 2 | DESCRIPTION = "Out-of-tree HDMI kernel modules provider for MPSoC EG/EV devices" | ||
| 3 | SECTION = "kernel/modules" | ||
| 4 | LICENSE = "GPL-2.0-only" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=b34277fe156508fd5a650609dc36d1fe" | ||
| 6 | |||
| 7 | XLNX_HDMI_VERSION = "6.1" | ||
| 8 | PV = "${XLNX_HDMI_VERSION}+xilinx-v${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or ''}+git${SRCPV}" | ||
| 9 | |||
| 10 | S = "${WORKDIR}/git" | ||
| 11 | |||
| 12 | BRANCH ?= "xlnx_rel_v2023.1" | ||
| 13 | REPO ?= "git://github.com/Xilinx/hdmi-modules.git;protocol=https" | ||
| 14 | SRCREV = "1c6330f02fea68992e22400fdbc8c0d0e63e2958" | ||
| 15 | |||
| 16 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 17 | SRC_URI = "${REPO};${BRANCHARG}" | ||
| 18 | |||
| 19 | inherit module | ||
| 20 | |||
| 21 | EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}" | ||
| 22 | COMPATIBLE_MACHINE = "^$" | ||
| 23 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" | ||
| 24 | COMPATIBLE_MACHINE:versal = "versal" | ||
diff --git a/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2023.2.bb b/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2023.2.bb deleted file mode 100644 index bc89f5f3..00000000 --- a/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2023.2.bb +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | SUMMARY = "Xilinx HDMI Linux Kernel module" | ||
| 2 | DESCRIPTION = "Out-of-tree HDMI kernel modules provider for MPSoC EG/EV devices" | ||
| 3 | SECTION = "kernel/modules" | ||
| 4 | LICENSE = "GPL-2.0-only" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=b34277fe156508fd5a650609dc36d1fe" | ||
| 6 | |||
| 7 | XLNX_HDMI_VERSION = "6.1" | ||
| 8 | PV = "${XLNX_HDMI_VERSION}+xilinx-v${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or ''}+git${SRCPV}" | ||
| 9 | |||
| 10 | S = "${WORKDIR}/git" | ||
| 11 | |||
| 12 | BRANCH ?= "xlnx_rel_v2023.2" | ||
| 13 | REPO ?= "git://github.com/Xilinx/hdmi-modules.git;protocol=https" | ||
| 14 | SRCREV = "82209b0021a7b5d7ef71a859eed4bafeb541ed08" | ||
| 15 | |||
| 16 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 17 | SRC_URI = "${REPO};${BRANCHARG}" | ||
| 18 | |||
| 19 | inherit module | ||
| 20 | |||
| 21 | EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}" | ||
| 22 | COMPATIBLE_MACHINE = "^$" | ||
| 23 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" | ||
| 24 | COMPATIBLE_MACHINE:versal = "versal" | ||
diff --git a/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2024.1.bb b/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_6.6.10.bb index 73a22d30..7e25fe1f 100644 --- a/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_2024.1.bb +++ b/meta-xilinx-core/recipes-kernel/hdmi/kernel-module-hdmi_6.6.10.bb | |||
| @@ -4,8 +4,7 @@ SECTION = "kernel/modules" | |||
| 4 | LICENSE = "GPL-2.0-only" | 4 | LICENSE = "GPL-2.0-only" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=b34277fe156508fd5a650609dc36d1fe" | 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=b34277fe156508fd5a650609dc36d1fe" |
| 6 | 6 | ||
| 7 | XLNX_HDMI_VERSION = "6.1" | 7 | PV .= "+git" |
| 8 | PV = "${XLNX_HDMI_VERSION}+xilinx-v${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or ''}+git${SRCPV}" | ||
| 9 | 8 | ||
| 10 | S = "${WORKDIR}/git" | 9 | S = "${WORKDIR}/git" |
| 11 | 10 | ||
| @@ -16,6 +15,8 @@ SRCREV = "edd297762e0bac3f4c5b64ef67244968e22020e2" | |||
| 16 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | 15 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" |
| 17 | SRC_URI = "${REPO};${BRANCHARG}" | 16 | SRC_URI = "${REPO};${BRANCHARG}" |
| 18 | 17 | ||
| 18 | SRC_URI += "file://0001-Support-both-pre-6.4.0-and-current-kernels.patch" | ||
| 19 | |||
| 19 | inherit module | 20 | inherit module |
| 20 | 21 | ||
| 21 | EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}" | 22 | EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}" |
