summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2025-07-12 02:41:19 +0000
committerDaniel Golle2025-07-19 01:56:26 +0000
commitc5a6dc31d2d2821858fff0a47abeb24c17ac0be4 (patch)
tree21e3c0199faa1f15f3a8bcb45982117cb5d03018
parent719c9059b2a81370e5855390d34c889d1bd635dd (diff)
downloadopenwrt-c5a6dc31d2d2821858fff0a47abeb24c17ac0be4.tar.gz
kernel: modules: input: add modules for PS/2 mouse support
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>
-rw-r--r--package/kernel/linux/modules/input.mk68
-rw-r--r--target/linux/generic/config-6.125
-rw-r--r--target/linux/generic/config-6.65
3 files changed, 78 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/input.mk b/package/kernel/linux/modules/input.mk
index ac7c0c3d6f..717f8d469d 100644
--- a/package/kernel/linux/modules/input.mk
+++ b/package/kernel/linux/modules/input.mk
@@ -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))
diff --git a/target/linux/generic/config-6.12 b/target/linux/generic/config-6.12
index edd0adedb1..dbf0d5b3aa 100644
--- a/target/linux/generic/config-6.12
+++ b/target/linux/generic/config-6.12
@@ -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
diff --git a/target/linux/generic/config-6.6 b/target/linux/generic/config-6.6
index 7bf434ef0a..cb1fd5b272 100644
--- a/target/linux/generic/config-6.6
+++ b/target/linux/generic/config-6.6
@@ -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