summaryrefslogtreecommitdiff
path: root/gnu/packages/linux.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/linux.scm')
-rw-r--r--gnu/packages/linux.scm391
1 files changed, 0 insertions, 391 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 8fdb07994b0..5c35ac87823 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -545,21 +545,6 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS."
545 (%upstream-linux-source version hash) 545 (%upstream-linux-source version hash)
546 deblob-scripts-6.18))) 546 deblob-scripts-6.18)))
547 547
548(define-public linux-libre-6.17-version "6.17.13")
549(define-public linux-libre-6.17-gnu-revision "gnu")
550(define deblob-scripts-6.17
551 (linux-libre-deblob-scripts
552 linux-libre-6.17-version
553 linux-libre-6.17-gnu-revision
554 (base32 "15qc7p6axs5l9syizbcbnksw8lxm8nnlcrl3q4k8cbs3lrxacpjv")
555 (base32 "14fypjidk49l0799dbi1pacy37ks94k0bs38cck2y4glxfpbfqr6")))
556(define-public linux-libre-6.17-pristine-source
557 (let ((version linux-libre-6.17-version)
558 (hash (base32 "1fgdy9j90yfd4c2yqdciasdhda14pbfrpzkgriin2r6i7bf04s0i")))
559 (make-linux-libre-source version
560 (%upstream-linux-source version hash)
561 deblob-scripts-6.17)))
562
563;; The "longterm" kernels — the older releases with long-term upstream support. 548;; The "longterm" kernels — the older releases with long-term upstream support.
564;; Here are the support timelines: 549;; Here are the support timelines:
565;; <https://www.kernel.org/category/releases.html> 550;; <https://www.kernel.org/category/releases.html>
@@ -687,11 +672,6 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS."
687 (list %boot-logo-patch 672 (list %boot-logo-patch
688 %linux-libre-arm-export-__sync_icache_dcache-patch))) 673 %linux-libre-arm-export-__sync_icache_dcache-patch)))
689 674
690(define-public linux-libre-6.17-source
691 (source-with-patches linux-libre-6.17-pristine-source
692 (list %boot-logo-patch
693 %linux-libre-arm-export-__sync_icache_dcache-patch)))
694
695(define-public linux-libre-6.12-source 675(define-public linux-libre-6.12-source
696 (source-with-patches linux-libre-6.12-pristine-source 676 (source-with-patches linux-libre-6.12-pristine-source
697 (list %boot-logo-patch 677 (list %boot-logo-patch
@@ -818,11 +798,6 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS."
818 linux-libre-6.18-gnu-revision 798 linux-libre-6.18-gnu-revision
819 linux-libre-6.18-source)) 799 linux-libre-6.18-source))
820 800
821(define-public linux-libre-headers-6.17
822 (make-linux-libre-headers* linux-libre-6.17-version
823 linux-libre-6.17-gnu-revision
824 linux-libre-6.17-source))
825
826(define-public linux-libre-headers-6.12 801(define-public linux-libre-headers-6.12
827 (make-linux-libre-headers* linux-libre-6.12-version 802 (make-linux-libre-headers* linux-libre-6.12-version
828 linux-libre-6.12-gnu-revision 803 linux-libre-6.12-gnu-revision
@@ -1198,14 +1173,6 @@ Linux kernel. It has been modified to remove all non-free binary blobs.")
1198 "aarch64-linux" "powerpc64le-linux" "riscv64-linux") 1173 "aarch64-linux" "powerpc64le-linux" "riscv64-linux")
1199 #:configuration-file kernel-config)) 1174 #:configuration-file kernel-config))
1200 1175
1201(define-public linux-libre-6.17
1202 (make-linux-libre* linux-libre-6.17-version
1203 linux-libre-6.17-gnu-revision
1204 linux-libre-6.17-source
1205 '("x86_64-linux" "i686-linux" "armhf-linux"
1206 "aarch64-linux" "powerpc64le-linux" "riscv64-linux")
1207 #:configuration-file kernel-config))
1208
1209(define-public linux-libre-version linux-libre-6.18-version) 1176(define-public linux-libre-version linux-libre-6.18-version)
1210(define-public linux-libre-gnu-revision linux-libre-6.18-gnu-revision) 1177(define-public linux-libre-gnu-revision linux-libre-6.18-gnu-revision)
1211(define-public linux-libre-pristine-source linux-libre-6.18-pristine-source) 1178(define-public linux-libre-pristine-source linux-libre-6.18-pristine-source)
@@ -1620,48 +1587,6 @@ Linux kernel. It has been modified to remove all non-free binary blobs.")
1620 license:gpl3 1587 license:gpl3
1621 license:x11)))) 1588 license:x11))))
1622 1589
1623(define-public reform-debian-packages-for-6.17
1624 (package
1625 (name "reform-debian-packages")
1626 (version "2023-07-10-496-gd25e032") ;from git describe
1627 (source
1628 (origin
1629 (method git-fetch)
1630 (uri (git-reference
1631 (url "https://source.mnt.re/reform/reform-debian-packages.git")
1632 (commit "d25e032b53d231c43d23248518e9bba681858739")))
1633 (file-name (git-file-name name version))
1634 (sha256
1635 (base32 "1pyf7lfkjwa244bq7kqbg0ri4bn6n5l0siy9g4igw3nhrll57d5a"))))
1636 (build-system copy-build-system)
1637 (arguments
1638 (list
1639 #:install-plan
1640 #~'(("linux/patches6.17/" "/patches6.17")
1641 ("linux/" "/dts/amlogic"
1642 #:include-regexp ("meson.*\\.dts$"))
1643 ("linux/" "/dts/freescale"
1644 #:include-regexp ("imx8.*\\.dts$"))
1645 ("linux/" "/dts/freescale"
1646 #:include-regexp ("fsl.*\\.dts$"))
1647 ("linux/" "/dts/rockchip"
1648 #:include-regexp ("rk3588.*\\.dts$"))
1649 ("linux/config" "config"))))
1650 (home-page "https://source.mnt.re/reform/reform-debian-packages")
1651 (synopsis
1652 "Linux kernel patches and device-trees used for MNT Reform systems")
1653 (description
1654 "Linux kernel patches and device-trees used for the MNT Reform systems")
1655 (license (list
1656 (license:fsf-free "file://filter-output"
1657 "https://www.gnu.org/prep/maintain/html_node/License-Notices-for-Other-Files.html")
1658 license:bsd-2
1659 license:expat
1660 license:gpl2
1661 license:gpl2+
1662 license:gpl3
1663 license:x11))))
1664
1665(define-public linux-libre-arm64-mnt-reform-6.18 1590(define-public linux-libre-arm64-mnt-reform-6.18
1666 ;; Kernel for use on the MNT/Reform systems 1591 ;; Kernel for use on the MNT/Reform systems
1667 ;; https://mntre.com/reform.html 1592 ;; https://mntre.com/reform.html
@@ -1979,322 +1904,6 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-mnt-reform2-dsi.dtb
1979dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-mnt-reform-next.dtb 1904dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-mnt-reform-next.dtb
1980dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-mnt-pocket-reform.dtb"))))))))))) 1905dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-mnt-pocket-reform.dtb")))))))))))
1981 1906
1982(define-public linux-libre-arm64-mnt-reform-6.17
1983 ;; Kernel for use on the MNT/Reform systems
1984 ;; https://mntre.com/reform.html
1985 (let ((base (make-linux-libre* linux-libre-6.17-version
1986 linux-libre-6.17-gnu-revision
1987 linux-libre-6.17-source
1988 '("aarch64-linux")
1989 #:extra-version "arm64-mnt-reform"
1990 #:extra-options
1991 ;; https://source.mnt.re/reform/reform-debian-packages/-/blob/main/linux/config
1992 (append `(("CONFIG_DRM_LVDS_CODEC" . m)
1993 ("CONFIG_DRM_CDNS_MHDP8546" . m)
1994 ("CONFIG_DRM_CDNS_HDMI_CEC" . m)
1995 ("CONFIG_DRM_IMX_CDNS_MHDP" . m)
1996 ("CONFIG_DRM_IMX_DCSS" . m)
1997 ("CONFIG_PHY_FSL_IMX8MQ_HDPTX" . m)
1998 ("CONFIG_DRM_PANEL_LVDS" . m)
1999 ("CONFIG_I2C_IMX_LPI2C" . m)
2000 ("CONFIG_I2C_MUX_REG" . m)
2001 ("CONFIG_INTERCONNECT_IMX" . #true)
2002 ("CONFIG_INTERCONNECT_IMX8MQ" . #true)
2003 ("CONFIG_MFD_WM8994" . m)
2004 ("CONFIG_MUX_GPIO" . m)
2005 ("CONFIG_MUX_MMIO" . m)
2006 ("CONFIG_RTC_DRV_PCF8523" . m)
2007 ("CONFIG_USB_EHCI_FSL" . m)
2008 ("CONFIG_NO_HZ_IDLE" . #true)
2009 ("CONFIG_SND_SOC_FSL_MICFIL" . m)
2010 ("CONFIG_SND_IMX_SOC" . m)
2011 ("CONFIG_SND_SOC_FSL_ASOC_CARD" . m)
2012 ("CONFIG_SND_SOC_IMX_AUDMIX" . m)
2013 ("CONFIG_SND_SOC_IMX_HDMI" . m)
2014 ("CONFIG_INPUT_JOYSTICK" . #true)
2015 ("CONFIG_JOYSTICK_XPAD" . m)
2016 ("CONFIG_JOYSTICK_XPAD_FF" . #true)
2017 ("CONFIG_JOYSTICK_XPAD_LEDS" . #true)
2018 ("CONFIG_INTERCONNECT_IMX8MP" . #true)
2019 ("CONFIG_SND_SOC_FSL_ASRC" . #true)
2020 ("CONFIG_DRM_IMX_LCDIF" . #true)
2021 ("CONFIG_DRM_IMX8MP_DW_HDMI_BRIDGE" . #true)
2022 ("CONFIG_DRM_IMX8MP_HDMI_PVI" . #true)
2023 ("CONFIG_IMX8MM_THERMAL" . #true)
2024 ("CONFIG_IMX2_WDT" . #true)
2025 ("CONFIG_DRM_SAMSUNG_DSIM" . #true)
2026 ("CONFIG_PHY_FSL_SAMSUNG_HDMI_PHY" . #true)
2027 ("CONFIG_DRM" . #true)
2028 ("CONFIG_DRM_PANEL_MNT_POCKET_REFORM" . #true)
2029 ("CONFIG_IMX8M_BLK_CTRL" . #true)
2030 ("CONFIG_IMX_GPCV2_PM_DOMAINS" . #true)
2031 ("CONFIG_DRM_DISPLAY_CONNECTOR" . #true)
2032 ("CONFIG_DRM_FSL_LDB" . #true)
2033 ("CONFIG_BACKLIGHT_CLASS_DEVICE" . #true)
2034 ("CONFIG_BACKLIGHT_PWM" . #true)
2035 ("CONFIG_BACKLIGHT_GPIO" . #true)
2036 ("CONFIG_BACKLIGHT_LED" . #true)
2037 ("CONFIG_CPU_FREQ_GOV_PERFORMANCE" . #true)
2038 ("CONFIG_CPU_FREQ_GOV_POWERSAVE" . #true)
2039 ("CONFIG_CPU_FREQ_GOV_USERSPACE" . #true)
2040 ("CONFIG_CPU_FREQ_GOV_ONDEMAND" . #true)
2041 ("CONFIG_CPU_FREQ_GOV_CONSERVATIVE" . #true)
2042 ("CONFIG_CPU_FREQ_GOV_SCHEDUTIL" . #true)
2043 ("CONFIG_ARM_IMX_CPUFREQ_DT" . #true)
2044 ("CONFIG_ARM_IMX_BUS_DEVFREQ" . #true)
2045 ("CONFIG_IMX_IRQSTEER" . #true)
2046 ("CONFIG_PCI_MESON" . #true)
2047 ("CONFIG_DWMAC_MESON" . #true)
2048 ("CONFIG_MDIO_BUS_MUX_MESON_G12A" . #true)
2049 ("CONFIG_GPIO_ROCKCHIP" . #true)
2050 ("CONFIG_PL330_DMA" . #true)
2051 ("CONFIG_I2C_MESON" . #true)
2052 ("CONFIG_PWM_MESON" . #true)
2053 ("CONFIG_USB_DWC3_MESON_G12A" . #true)
2054 ("CONFIG_MMC_MESON_GX" . #true)
2055 ("CONFIG_MMC_MESON_MX_SDIO" . #true)
2056 ("CONFIG_MESON_DDR_PMU" . #true)
2057 ("CONFIG_RTW88_8822CS" . m)
2058 ("CONFIG_PWM_FSL_FTM" . #true)
2059 ("CONFIG_FSL_RCPM" . #true)
2060 ("CONFIG_ARM_ROCKCHIP_CPUFREQ" . m)
2061 ("CONFIG_DRM_PANTHOR" . m)
2062 ("CONFIG_NVMEM_ROCKCHIP_OTP" . #true)
2063 ("CONFIG_PHY_ROCKCHIP_SAMSUNG_HDPTX" . m)
2064 ("CONFIG_PHY_ROCKCHIP_USBDP" . m)
2065 ("CONFIG_ROCKCHIP_REGULATOR_COUPLER" . #true)
2066 ("CONFIG_SPI_ROCKCHIP" . #true)
2067 ("CONFIG_SPI_ROCKCHIP_SFC" . m)
2068 ("CONFIG_ARM_SCMI_CPUFREQ" . m)
2069 ("CONFIG_PHY_ROCKCHIP_SAMSUNG_DCPHY" . #true)
2070 ("CONFIG_VIDEO_ROCKCHIP_VDEC2" . m)
2071 ("CONFIG_ROCKCHIP_DW_HDMI_QP" . #true)
2072 ("CONFIG_ROCKCHIP_DW_MIPI_DSI2" . #true)
2073 ;; Fixes https://codeberg.org/guix/guix/issues/101
2074 ("CONFIG_CRYPTO_USER_API_HASH" . #true)
2075 ("CONFIG_CRYPTO_USER_API_SKCIPHER" . #true)
2076 ("CONFIG_CRYPTO_USER_API_RNG" . #true)
2077 ("CONFIG_CRYPTO_USER_API_AEAD" . #true)
2078 ("CONFIG_KEY_DH_OPERATIONS" . #true)
2079 ;; nftables support
2080 ("CONFIG_NF_TABLES" . m)
2081 ("CONFIG_NF_TABLES_INET" . #true)
2082 ("CONFIG_NF_TABLES_NETDEV" . #true)
2083 ("CONFIG_NF_TABLES_IPV4" . #true)
2084 ("CONFIG_NF_TABLES_ARP" . #true)
2085 ("CONFIG_NF_TABLES_IPV6" . #true)
2086 ("CONFIG_NF_TABLES_BRIDGE" . m)
2087 ("CONFIG_NFT_NUMGEN" . m)
2088 ("CONFIG_NFT_CT" . m)
2089 ("CONFIG_NFT_FLOW_OFFLOAD" . m)
2090 ("CONFIG_NFT_CONNLIMIT" . m)
2091 ("CONFIG_NFT_LOG" . m)
2092 ("CONFIG_NFT_LIMIT" . m)
2093 ("CONFIG_NFT_MASQ" . m)
2094 ("CONFIG_NFT_REDIR" . m)
2095 ("CONFIG_NFT_NAT" . m)
2096 ("CONFIG_NFT_TUNNEL" . m)
2097 ("CONFIG_NFT_QUEUE" . m)
2098 ("CONFIG_NFT_QUOTA" . m)
2099 ("CONFIG_NFT_REJECT" . m)
2100 ("CONFIG_NFT_REJECT_INET" . m)
2101 ("CONFIG_NFT_COMPAT" . m)
2102 ("CONFIG_NFT_HASH" . m)
2103 ("CONFIG_NFT_FIB" . m)
2104 ("CONFIG_NFT_FIB_INET" . m)
2105 ("CONFIG_NFT_XFRM" . m)
2106 ("CONFIG_NFT_SOCKET" . m)
2107 ("CONFIG_NFT_OSF" . m)
2108 ("CONFIG_NFT_TPROXY" . m)
2109 ("CONFIG_NFT_SYNPROXY" . m)
2110 ("CONFIG_NFT_DUP_NETDEV" . m)
2111 ("CONFIG_NFT_FWD_NETDEV" . m)
2112 ("CONFIG_NFT_FIB_NETDEV" . m)
2113 ("CONFIG_NFT_REJECT_NETDEV" . m)
2114 ("CONFIG_NFT_REJECT_IPV4" . m)
2115 ("CONFIG_NFT_DUP_IPV4" . m)
2116 ("CONFIG_NFT_FIB_IPV4" . m)
2117 ("CONFIG_NFT_COMPAT_ARP" . m)
2118 ("CONFIG_NFT_REJECT_IPV6" . m)
2119 ("CONFIG_NFT_DUP_IPV6" . m)
2120 ("CONFIG_NFT_FIB_IPV6" . m)
2121 ("CONFIG_NFT_BRIDGE_META" . m)
2122 ("CONFIG_NFT_BRIDGE_REJECT" . m)
2123 ;; Provide support for USB tethering
2124 ("CONFIG_USB_NET_CDC_EEM" . m)
2125 ("CONFIG_USB_NET_RNDIS_HOST" . m)
2126 ("CONFIG_USB_WDM" . m)
2127 ("CONFIG_USB_GADGET" . m)
2128 ("CONFIG_USB_ETH" . m)
2129 ("CONFIG_USB_ETH_RNDIS" . m)
2130 ("CONFIG_USB_ETH_EEM" . m)
2131 ("CONFIG_USB_G_NCM" . m)
2132 ;; Provide support for wireguard
2133 ("CONFIG_WIREGUARD" . m)
2134 ;; Provide support for ath9k wireless
2135 ("CONFIG_ATH9K" . m)
2136 ("CONFIG_ATH9K_HTC" . m))
2137 (default-extra-linux-options
2138 linux-libre-6.17-version)))))
2139 (package
2140 (inherit base)
2141 (inputs (list reform-debian-packages-for-6.17))
2142 (synopsis (string-append (package-synopsis base)
2143 " for MNT/Reform systems"))
2144 (description (string-append (package-description base)
2145 " Configuration options and patches have been applied for use with MNT/Reform systems."))
2146 (arguments
2147 (substitute-keyword-arguments (package-arguments base)
2148 ((#:phases phases)
2149 #~(modify-phases #$phases
2150 (add-after 'unpack 'apply-reform-patches
2151 (lambda* (#:key inputs #:allow-other-keys)
2152 (for-each (lambda (patch)
2153 (invoke "patch" "-p1" "-i"
2154 (search-input-file inputs
2155 (string-append
2156 "patches6.17/" patch))))
2157 (list
2158 "imx8mp-mnt-pocket-reform/2ghz/0001-imx8mp-2ghz-clk.patch"
2159 "imx8mp-mnt-pocket-reform/2ghz/0002-imx8mp-2ghz-opp.patch"
2160 "imx8mp-mnt-pocket-reform/audio/0000-revert-crashy-audiomix-pm-support.patch"
2161 "imx8mp-mnt-pocket-reform/mmc-sdio/0001-sdhci-add-no-sd-uhs-sdr104-devicetree-property.patch"
2162 "imx8mp-mnt-pocket-reform/mmc-sdio/0002-During-the-card-init-the-host-side-sometimes-may-nee.patch"
2163 "imx8mp-mnt-pocket-reform/mmc-sdio/0003-USDHC-IP-has-one-limitation-the-tuning-circuit-can-t.patch"
2164 "imx8mp-mnt-pocket-reform/pocket-panel/0001-v5-add-multi-display-panel-driver.patch"
2165 "imx8mp-mnt-pocket-reform/pocket-panel/0002-pocket-panel-fix-sleep-add-orientation.patch"
2166 "imx8mp-mnt-reform2/0001-sn65dsi86-use-hs-clock-of-samsung-dsim-host-directly.patch"
2167 "imx8mp-mnt-reform2/0002-lcdif-dont-exceed-desired-pixel-clock.patch"
2168 "imx8mq-mnt-reform2/0001-imx8mq-mnt-reform2.dts-multiple-fixes-for-display-wi.patch"
2169 "imx8mq-mnt-reform2/0001-nwl-dsi-fixup-mode-only-for-LCDIF-input-not-DCSS.patch"
2170 "imx8mq-mnt-reform2/0002-Revert-drm-bridge-nwl-dsi-Use-vsync-hsync-polarity-f.patch"
2171 "imx8mq-mnt-reform2/0003-lcdif-fix-pcie-interference.patch"
2172 "imx8mq-mnt-reform2/0004-mnt4002-imx-gpcv2-wake-smccc.patch.patch"
2173 "imx8mq-mnt-reform2/0005-pci-imx6-add-support-for-internal-refclk-imx8mq.patch"
2174 "imx8mq-mnt-reform2/0006-imx8mq-import-HDMI-driver-and-make-DCSS-compatible-w.patch"
2175 "ls1028a-mnt-reform2/0000-dtsi-add-hdptx.patch"
2176 "meson-g12b-bananapi-cm4-mnt-pocket-reform/0001-a311d-viu-fifo-lines-config.patch"
2177 "meson-g12b-bananapi-cm4-mnt-pocket-reform/0002-a311d-viu-fifo-lines-config-header.patch"
2178 "meson-g12b-bananapi-cm4-mnt-pocket-reform/0003-tlv320aic31xx-add-1228800hz-support.patch"
2179 "meson-g12b-bananapi-cm4-mnt-reform2/0001-meson-g12b-bananapi-cm4-mnt-reform2.dts-fix-audio-an.patch"
2180 "meson-g12b-bananapi-cm4-mnt-reform2/0001-Revert-drm-bridge-synopsys-dw-mipi-dsi-enable-EoTp-b.patch"
2181 "meson-g12b-bananapi-cm4-mnt-reform2/0011-dw-mipi-dsi-phy-stop-wait-time.patch"
2182 "meson-g12b-bananapi-cm4-mnt-reform2/0012-innolux-n125hce-gn1-timing-tweaks.patch"
2183 "meson-g12b-bananapi-cm4-mnt-reform2/0013-meson-viu-hold-fifo-lines.patch"
2184 "meson-g12b-bananapi-cm4-mnt-reform2/0014-meson-venc-sync.patch.patch"
2185 "meson-g12b-bananapi-cm4-mnt-reform2/0015-meson-dw-mipi-dsi-sync-invert.patch"
2186 "meson-g12b-bananapi-cm4-mnt-reform2/0016-sn65dsi86-burst-mode-support.patch"
2187 "meson-g12b-bananapi-cm4-mnt-reform2/0018-sn65dsi86-never-turn-off.patch"
2188 "meson-g12b-bananapi-cm4-mnt-reform2/0020-LOCAL-ALSA-Assign-internal-PCM-chmap-ELD-IEC958-kctl.patch"
2189 "meson-g12b-bananapi-cm4-mnt-reform2/0021-HACK-of-partial-revert-of-fdt.c-changes.patch"
2190 "meson-g12b-bananapi-cm4-mnt-reform2/0022-add-bt-and-eth-resets.patch"
2191 "meson-g12b-bananapi-cm4-mnt-reform2/0023-sdio-pullups.patch"
2192 "meson-g12b-bananapi-cm4-mnt-reform2/0024-sdio-improve-wifi-speed.patch"
2193 "meson-g12b-bananapi-cm4-mnt-reform2/0030-WORKAROUND-meson-plane-disable-afbc-32x8.patch"
2194 "rk3588-mnt-reform2/0001-MERGED-drm-bridge-Pass-down-connector-to-drm-bridge-.patch"
2195 "rk3588-mnt-reform2/0024-math.h-add-DIV_ROUND_UP_NO_OVERFLOW.patch"
2196 "rk3588-mnt-reform2/0025-clk-divider-Fix-divisor-masking-on-64-bit-platforms.patch"
2197 "rk3588-mnt-reform2/0026-clk-composite-replace-open-coded-abs_diff.patch"
2198 "rk3588-mnt-reform2/0030-mfd-rk8xx-Fix-shutdown-handler.patch"
2199 "rk3588-mnt-reform2/0031-dt-bindings-display-vop2-Add-VP-clock-resets.patch"
2200 "rk3588-mnt-reform2/0032-drm-rockchip-vop2-Add-clock-resets-support.patch"
2201 "rk3588-mnt-reform2/0033-arm64-dts-rockchip-Add-VOP-clock-resets-for-rk3588s.patch"
2202 "rk3588-mnt-reform2/0035-drm-rockchip-vop2-Add-core-reset-support.patch"
2203 "rk3588-mnt-reform2/0036-dt-bindings-display-rockchip-Add-schema-for-RK3588-D.patch"
2204 "rk3588-mnt-reform2/0037-drm-bridge-synopsys-Add-DW-DPTX-Controller-support-l.patch"
2205 "rk3588-mnt-reform2/0038-drm-rockchip-Add-RK3588-DPTX-output-support.patch"
2206 "rk3588-mnt-reform2/0042-arm64-dts-rockchip-Add-DP0-for-rk3588.patch"
2207 "rk3588-mnt-reform2/0043-arm64-dts-rockchip-Add-DP1-for-rk3588.patch"
2208 "rk3588-mnt-reform2/0046-arm64-defconfig-Enable-Rockchip-RK3588-DisplayPort-C.patch"
2209 "rk3588-mnt-reform2/0055-phy-rockchip-usbdp-move-orientation-handling-further.patch"
2210 "rk3588-mnt-reform2/0056-phy-rockchip-usbdp-reset-USB3-and-reinit-on-orientat.patch"
2211 "rk3588-mnt-reform2/0063-thermal-rockchip-unify-struct-rockchip_tsadc_chip-fo.patch"
2212 "rk3588-mnt-reform2/0064-thermal-rockchip-shut-up-GRF-warning.patch"
2213 "rk3588-mnt-reform2/0065-thermal-rockchip-simplify-GRF-logic.patch"
2214 "rk3588-mnt-reform2/0067-PCI-dw-rockchip-Add-system-PM-support.patch"
2215 "rk3588-mnt-reform2/0068-drm-bridge-dw-hdmi-qp-Add-CEC-support.patch"
2216 "rk3588-mnt-reform2/0069-drm-bridge-dw-hdmi-qp-Fixup-timer-base-setup.patch"
2217 "rk3588-mnt-reform2/0070-drm-rockchip-dw_hdmi_qp-Improve-error-handling-with-.patch"
2218 "rk3588-mnt-reform2/0071-drm-rockchip-dw_hdmi_qp-Provide-CEC-IRQ-in-dw_hdmi_q.patch"
2219 "rk3588-mnt-reform2/0072-drm-rockchip-dw_hdmi_qp-Provide-ref-clock-rate-in-dw.patch"
2220 "rk3588-mnt-reform2/0073-arm64-defconfig-Enable-DW-HDMI-QP-CEC-support.patch"
2221 "rk3588-mnt-reform2/0075-phy-hdmi-Add-HDMI-2.1-FRL-configuration-options.patch"
2222 "rk3588-mnt-reform2/0079-phy-rockchip-samsung-hdptx-Use-usleep_range-instead-.patch"
2223 "rk3588-mnt-reform2/0080-phy-rockchip-samsung-hdptx-Fix-coding-style-alignmen.patch"
2224 "rk3588-mnt-reform2/0081-phy-rockchip-samsung-hdptx-Consistently-use-rk_-hdpt.patch"
2225 "rk3588-mnt-reform2/0082-phy-rockchip-samsung-hdptx-Enable-lane-output-in-com.patch"
2226 "rk3588-mnt-reform2/0083-phy-rockchip-samsung-hdptx-Cleanup-_cmn_init_seq-lis.patch"
2227 "rk3588-mnt-reform2/0084-phy-rockchip-samsung-hdptx-Compute-clk-rate-from-PLL.patch"
2228 "rk3588-mnt-reform2/0085-phy-rockchip-samsung-hdptx-Drop-hw_rate-driver-data.patch"
2229 "rk3588-mnt-reform2/0086-phy-rockchip-samsung-hdptx-Switch-to-driver-specific.patch"
2230 "rk3588-mnt-reform2/0087-phy-rockchip-samsung-hdptx-Extend-rk_hdptx_phy_verif.patch"
2231 "rk3588-mnt-reform2/0088-phy-rockchip-samsung-hdptx-Add-HDMI-2.1-FRL-support.patch"
2232 "rk3588-mnt-reform2/0089-drm-rockchip-vop2-Check-bpc-before-switching-DCLK-so.patch"
2233 "rk3588-mnt-reform2/0090-drm-bridge-dw-hdmi-qp-Handle-platform-supported-form.patch"
2234 "rk3588-mnt-reform2/0091-drm-rockchip-dw_hdmi_qp-Switch-to-phy_configure.patch"
2235 "rk3588-mnt-reform2/0092-drm-rockchip-dw_hdmi_qp-Use-bit-macros-for-RK3576-re.patch"
2236 "rk3588-mnt-reform2/0093-drm-rockchip-dw_hdmi_qp-Add-high-color-depth-support.patch"
2237 "rk3588-mnt-reform2/0094-DEBUG-phy-rockchip-samsung-hdptx-Add-verbose-logging.patch"
2238 "rk3588-mnt-reform2/0095-WIP-SCRAMB-drm-bridge-Add-detect_ctx-hook.patch"
2239 "rk3588-mnt-reform2/0096-WIP-SCRAMB-drm-bridge-connector-Switch-from-detect-t.patch"
2240 "rk3588-mnt-reform2/0097-WIP-SCRAMB-drm-bridge-dw-hdmi-qp-Add-high-TMDS-clock.patch"
2241 "rk3588-mnt-reform2/0098-WIP-YUV420-drm-rockchip-vop2-Add-YUV420-output-forma.patch"
2242 "rk3588-mnt-reform2/0099-WIP-YUV420-drm-rockchip-dw_hdmi_qp-Add-YUV420-output.patch"
2243 "rk3588-mnt-reform2/0100-WIP-FRL-dt-bindings-display-rockchip-Add-tmds-enable.patch"
2244 "rk3588-mnt-reform2/0101-WIP-FRL-drm-rockchip-dw_hdmi_qp-Fixup-usage-of-enabl.patch"
2245 "rk3588-mnt-reform2/0103-WIP-FRL-arm64-dts-rockchip-Assign-ACLK_VOP-to-750-MH.patch"
2246 "rk3588-mnt-reform2/0104-WIP-FRL-drm-connector-hdmi-Handle-FRL-in-hdmi_clock_.patch"
2247 "rk3588-mnt-reform2/0105-WIP-FRL-drm-bridge-dw-hdmi-qp-Add-HDMI-2.1-FRL-suppo.patch"
2248 "rk3588-mnt-reform2/0106-WIP-FRL-drm-rockchip-dw_hdmi_qp-Add-HDMI-2.1-FRL-sup.patch"
2249 "rk3588-mnt-reform2/0107-WIP-FRL-drm-rockchip-vop2-Add-HDMI-2.1-FRL-support.patch"
2250 "rk3588-mnt-reform2/0108-dt-bindings-phy-rockchip-usbdp-add-improved-ports-sc.patch"
2251 "rk3588-mnt-reform2/0114-media-dt-bindings-video-interfaces-add-defines-for-s.patch"
2252 "rk3588-mnt-reform2/0142-drm-bridge-dw-hdmi-qp-Fix-spurious-IRQ-on-resume.patch"
2253 "rk3588-mnt-reform2/2001-drm-bridge-dw-hdmi-qp-Return-0-in-audio-prepare-when.patch"
2254 "rk3588-mnt-reform2/2003-drm-bridge-synopsys-Do-not-warn-about-audio-params-c.patch"
2255 "rk3588-mnt-reform2/5200-drm-rockchip-Set-dma-mask-to-64-bit.patch"))))
2256 (add-after 'apply-reform-patches 'copy-reform-dts-files
2257 (lambda* (#:key inputs #:allow-other-keys)
2258 (for-each (lambda (dts)
2259 (copy-file (search-input-file inputs
2260 (string-append
2261 "/dts/" dts))
2262 (string-append "arch/arm64/boot/dts/"
2263 dts)))
2264 (list
2265 "amlogic/meson-g12b-bananapi-cm4-mnt-pocket-reform.dts"
2266 "freescale/fsl-ls1028a-mnt-reform2.dts"
2267 "freescale/imx8mp-mnt-pocket-reform.dts"
2268 "freescale/imx8mp-mnt-reform2.dts"
2269 "freescale/imx8mq-mnt-reform2-hdmi.dts"
2270 "rockchip/rk3588-mnt-pocket-reform.dts"
2271 "rockchip/rk3588-mnt-reform-next.dts"
2272 "rockchip/rk3588-mnt-reform2.dts"
2273 "rockchip/rk3588-mnt-reform2-dsi.dts"
2274 ))))
2275 (add-after 'apply-reform-patches 'adjust-makefiles-with-new-dtb
2276 (lambda _
2277 (substitute* "arch/arm64/boot/dts/amlogic/Makefile"
2278 (("meson-g12b-bananapi-cm4-mnt-reform2.dtb")
2279 "meson-g12b-bananapi-cm4-mnt-reform2.dtb
2280dtb-$(CONFIG_ARCH_MESON) += meson-g12b-bananapi-cm4-mnt-pocket-reform.dtb"))
2281 (substitute* "arch/arm64/boot/dts/freescale/Makefile"
2282 (("fsl-ls1028a-rdb.dtb")
2283 "fsl-ls1028a-rdb.dtb
2284dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-mnt-reform2.dtb"))
2285 (substitute* "arch/arm64/boot/dts/freescale/Makefile"
2286 (("imx8mq-mnt-reform2.dtb")
2287 "imx8mq-mnt-reform2.dtb
2288dtb-$(CONFIG_ARCH_MXC) += imx8mp-mnt-reform2.dtb
2289dtb-$(CONFIG_ARCH_MXC) += imx8mp-mnt-pocket-reform.dtb
2290dtb-$(CONFIG_ARCH_MXC) += imx8mq-mnt-reform2-hdmi.dtb"))
2291 (substitute* "arch/arm64/boot/dts/rockchip/Makefile"
2292 (("rk3588-mnt-reform2.dtb")
2293 "rk3588-mnt-reform2.dtb
2294dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-mnt-reform2-dsi.dtb
2295dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-mnt-reform-next.dtb
2296dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-mnt-pocket-reform.dtb")))))))))))
2297
2298(define-public linux-libre-arm64-mnt-reform linux-libre-arm64-mnt-reform-6.18) 1907(define-public linux-libre-arm64-mnt-reform linux-libre-arm64-mnt-reform-6.18)
2299 1908
2300(define-public linux-libre-arm64-mnt-reform-6.12 1909(define-public linux-libre-arm64-mnt-reform-6.12