]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: modules: input: add modules for PS/2 mouse support 19378/head
authorDaniel Golle <daniel@makrotopia.org>
Sat, 12 Jul 2025 02:41:19 +0000 (03:41 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 19 Jul 2025 01:56:26 +0000 (02:56 +0100)
Package kernel modules for PS/2 mouse support, mostly to allow
using touchpads and trackpoints built-into laptops (many of those
are connected using classic i8052-compatible PS/2 I/O).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/kernel/linux/modules/input.mk
target/linux/generic/config-6.12
target/linux/generic/config-6.6

index ac7c0c3d6f4148aad2a85f4d92342bf4c2f8c17f..717f8d469d2d6c1828f6e62362c69f2d415e5300 100644 (file)
@@ -246,3 +246,71 @@ define KernelPackage/input-uinput/description
 endef
 
 $(eval $(call KernelPackage,input-uinput))
+
+
+define KernelPackage/input-mouse-ps2
+  SUBMENU:=$(INPUT_MODULES_MENU)
+  TITLE:=PS/2 mouse support
+  DEPENDS:=+kmod-i2c-core +kmod-input-core +kmod-input-serio-libps2
+  KCONFIG:= \
+       CONFIG_INPUT_MOUSE=y \
+       CONFIG_MOUSE_PS2 \
+       CONFIG_MOUSE_PS2_ALPS=y \
+       CONFIG_MOUSE_PS2_BYD=y \
+       CONFIG_MOUSE_PS2_LOGIPS2PP=y \
+       CONFIG_MOUSE_PS2_SYNAPTICS=y \
+       CONFIG_MOUSE_PS2_SYNAPTICS_SMBUS=y \
+       CONFIG_MOUSE_PS2_CYPRESS=y \
+       CONFIG_MOUSE_PS2_LIFEBOOK=y \
+       CONFIG_MOUSE_PS2_TRACKPOINT=y \
+       CONFIG_MOUSE_PS2_ELANTECH=y \
+       CONFIG_MOUSE_PS2_ELANTECH_SMBUS=y \
+       CONFIG_MOUSE_PS2_SENTELIC=y \
+       CONFIG_MOUSE_PS2_TOUCHKIT=y \
+       CONFIG_MOUSE_PS2_OLPC=y \
+       CONFIG_MOUSE_PS2_FOCALTECH=y \
+       CONFIG_MOUSE_PS2_VMMOUSE=y
+  FILES:=$(LINUX_DIR)/drivers/input/mouse/psmouse.ko
+  AUTOLOAD:=$(call AutoProbe,psmouse)
+endef
+
+define KernelPackage/input-mouse-ps2/description
+  Support for standard 2 or 3-button PS/2 mouse, as well as PS/2
+  mice with wheels and extra buttons, Microsoft, Logitech or Genius
+  compatible, and many touchpads as well.
+endef
+
+$(eval $(call KernelPackage,input-mouse-ps2))
+
+
+define KernelPackage/input-serio
+  SUBMENU:=$(INPUT_MODULES_MENU)
+  TITLE:=Serial I/O support
+  KCONFIG:= CONFIG_SERIO
+  FILES:=$(LINUX_DIR)/drivers/input/serio/serio.ko
+  AUTOLOAD:=$(call AutoProbe,serio,1)
+endef
+
+define KernelPackage/input-serio/description
+ Kernel module to support input device that uses serial I/O to
+ communicate with the system
+endef
+
+$(eval $(call KernelPackage,input-serio))
+
+
+define KernelPackage/input-serio-libps2
+  SUBMENU:=$(INPUT_MODULES_MENU)
+  TITLE:=PS/2 Serial I/O support
+  DEPENDS:=+kmod-input-serio
+  KCONFIG:= CONFIG_SERIO_LIBPS2
+  FILES:=$(LINUX_DIR)/drivers/input/serio/libps2.ko
+  AUTOLOAD:=$(call AutoProbe,libps2,1)
+endef
+
+define KernelPackage/input-serio-libps2/description
+ Kernel module to support devices connected to a PS/2 port, such
+ as PS/2 mouse or standard AT keyboard.
+endef
+
+$(eval $(call KernelPackage,input-serio-libps2))
index edd0adedb18b33c73a8f2387985e1e6e3c3757a4..dbf0d5b3aa6b8edf61e6f2a391e148aa3b35559f 100644 (file)
@@ -3738,6 +3738,8 @@ CONFIG_MODULE_UNLOAD=y
 # CONFIG_MOST is not set
 # CONFIG_MOTORCOMM_PHY is not set
 # CONFIG_MOUSE_APPLETOUCH is not set
+# CONFIG_MOUSE_BCM5974 is not set
+# CONFIG_MOUSE_CYAPA is not set
 # CONFIG_MOUSE_ELAN_I2C is not set
 # CONFIG_MOUSE_GPIO is not set
 # CONFIG_MOUSE_INPORT is not set
@@ -3745,8 +3747,10 @@ CONFIG_MODULE_UNLOAD=y
 # CONFIG_MOUSE_PC110PAD is not set
 # CONFIG_MOUSE_PS2_FOCALTECH is not set
 # CONFIG_MOUSE_PS2_SENTELIC is not set
+# CONFIG_MOUSE_SERIAL is not set
 # CONFIG_MOUSE_SYNAPTICS_I2C is not set
 # CONFIG_MOUSE_SYNAPTICS_USB is not set
+# CONFIG_MOUSE_VSXXXAA is not set
 # CONFIG_MOXTET is not set
 # CONFIG_MPL115 is not set
 # CONFIG_MPL115_I2C is not set
@@ -5810,6 +5814,7 @@ CONFIG_SERIAL_EARLYCON=y
 # CONFIG_SERIO_RAW is not set
 # CONFIG_SERIO_SERPORT is not set
 # CONFIG_SERIO_SUN4I_PS2 is not set
+# CONFIG_SERIO_XILINX_XPS_PS2 is not set
 # CONFIG_SFC is not set
 # CONFIG_SFC_FALCON is not set
 # CONFIG_SFC_SIENA is not set
index 7bf434ef0ae19467cd1df3a5c64709575f79df94..cb1fd5b27225717d476639e504ff4092e622d59a 100644 (file)
@@ -3625,7 +3625,10 @@ CONFIG_MODULE_UNLOAD=y
 # CONFIG_MODVERSIONS is not set
 # CONFIG_MOST is not set
 # CONFIG_MOTORCOMM_PHY is not set
+# CONFIG_MOUSE_SERIAL is not set
 # CONFIG_MOUSE_APPLETOUCH is not set
+# CONFIG_MOUSE_BCM5974 is not set
+# CONFIG_MOUSE_CYAPA is not set
 # CONFIG_MOUSE_ELAN_I2C is not set
 # CONFIG_MOUSE_GPIO is not set
 # CONFIG_MOUSE_INPORT is not set
@@ -3635,6 +3638,7 @@ CONFIG_MODULE_UNLOAD=y
 # CONFIG_MOUSE_PS2_SENTELIC is not set
 # CONFIG_MOUSE_SYNAPTICS_I2C is not set
 # CONFIG_MOUSE_SYNAPTICS_USB is not set
+# CONFIG_MOUSE_VSXXXAA is not set
 # CONFIG_MOXTET is not set
 # CONFIG_MPL115 is not set
 # CONFIG_MPL115_I2C is not set
@@ -5651,6 +5655,7 @@ CONFIG_SERIAL_EARLYCON=y
 # CONFIG_SERIO_RAW is not set
 # CONFIG_SERIO_SERPORT is not set
 # CONFIG_SERIO_SUN4I_PS2 is not set
+# CONFIG_SERIO_XILINX_XPS_PS2 is not set
 # CONFIG_SFC is not set
 # CONFIG_SFC_FALCON is not set
 # CONFIG_SFC_SIENA is not set