diff mbox series

[bug#72017] gnu: Add linux-libre-lts-arm64-generic.

Message ID a449f376cad26f0aff106d46fc40ed46dd8f5bfd.1720542127.git.efraim@flashner.co.il
State New
Headers show
Series [bug#72017] gnu: Add linux-libre-lts-arm64-generic. | expand

Commit Message

Efraim Flashner July 9, 2024, 5:34 p.m. UTC
* gnu/packages/linux.scm (linux-libre-lts-arm64-generic): New variable.

Change-Id: I85b0c318850cf984ec9dbfc272278ba80eb39b30
---
 gnu/packages/linux.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)


base-commit: 395a3a3b003f219beb33ed2539ff0a8a35502b59
diff mbox series

Patch

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 1fde34b251..6a40d1d159 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1300,6 +1300,34 @@  (define-public linux-libre-arm64-generic
                         ("CONFIG_SND_SOC_ES8316" . m))
                       (default-extra-linux-options linux-libre-version))))
 
+(define-public linux-libre-lts-arm64-generic
+  (make-linux-libre* linux-libre-lts-version
+                     linux-libre-lts-gnu-revision
+                     linux-libre-lts-source
+                     '("aarch64-linux")
+                     #:defconfig "defconfig"
+                     #:extra-version "arm64-generic"
+                     #:extra-options
+                     (append
+                      `(;; Provide support for ath9k wireless
+                        ("CONFIG_ATH9K_HTC" . m)
+                        ;; needed to fix the RTC on rockchip platforms
+                        ("CONFIG_RTC_DRV_RK808" . #t)
+                        ;; Pinebook display, battery, charger and usb
+                        ("CONFIG_DRM_ANALOGIX_ANX6345" . m)
+                        ("CONFIG_CHARGER_AXP20X" . m)
+                        ("CONFIG_INPUT_AXP20X_PEK" . m)
+                        ("CONFIG_CHARGER_AXP20X" . m)
+                        ("CONFIG_BATTERY_AXP20X" . m)
+                        ("CONFIG_PINCTRL_AXP209" . m)
+                        ("CONFIG_AXP20X_POWER" . m)
+                        ("CONFIG_AXP20X_ADC" . m)
+                        ;; Pinebook PRO battery and sound support
+                        ("CONFIG_BATTERY_CW2015" . m)
+                        ("CONFIG_CHARGER_GPIO" . m)
+                        ("CONFIG_SND_SOC_ES8316" . m))
+                      (default-extra-linux-options linux-libre-lts-version))))
+
 (define-public linux-libre-arm64-generic-5.10
   (make-linux-libre* linux-libre-5.10-version
                      linux-libre-5.10-gnu-revision