Skip to content

Commit 8be193c

Browse files
Tomohiro Yoshidomidtor
authored andcommitted
Input: add support for PlayStation 1/2 joypads connected via SPI
PlayStation 1/2 joypads can be connected directly to the SPI interface. Signed-off-by: Tomohiro Yoshidomi <[email protected]> Acked-by: David Herrmann <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 4706aa0 commit 8be193c

File tree

3 files changed

+423
-0
lines changed

3 files changed

+423
-0
lines changed

drivers/input/joystick/Kconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,25 @@ config JOYSTICK_MAPLE
330330
To compile this as a module choose M here: the module will be called
331331
maplecontrol.
332332

333+
config JOYSTICK_PSXPAD_SPI
334+
tristate "PlayStation 1/2 joypads via SPI interface"
335+
depends on SPI
336+
select INPUT_POLLDEV
337+
help
338+
Say Y here if you wish to connect PlayStation 1/2 joypads
339+
via SPI interface.
340+
341+
To compile this driver as a module, choose M here: the
342+
module will be called psxpad-spi.
343+
344+
config JOYSTICK_PSXPAD_SPI_FF
345+
bool "PlayStation 1/2 joypads force feedback (rumble) support"
346+
depends on JOYSTICK_PSXPAD_SPI
347+
select INPUT_FF_MEMLESS
348+
help
349+
Say Y here if you want to take advantage of PlayStation 1/2
350+
joypads rumble features.
351+
352+
To drive rumble motor a dedicated power supply is required.
353+
333354
endif

drivers/input/joystick/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ obj-$(CONFIG_JOYSTICK_INTERACT) += interact.o
2121
obj-$(CONFIG_JOYSTICK_JOYDUMP) += joydump.o
2222
obj-$(CONFIG_JOYSTICK_MAGELLAN) += magellan.o
2323
obj-$(CONFIG_JOYSTICK_MAPLE) += maplecontrol.o
24+
obj-$(CONFIG_JOYSTICK_PSXPAD_SPI) += psxpad-spi.o
2425
obj-$(CONFIG_JOYSTICK_SIDEWINDER) += sidewinder.o
2526
obj-$(CONFIG_JOYSTICK_SPACEBALL) += spaceball.o
2627
obj-$(CONFIG_JOYSTICK_SPACEORB) += spaceorb.o

0 commit comments

Comments
 (0)