# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

menu "Input devices"
depends on ADK_TARGET_WITH_USB \
	|| ADK_TARGET_WITH_INPUT \
	|| ADK_TARGET_WITH_TOUCHSCREEN \
	|| ADK_TARGET_QEMU \
	|| ADK_TARGET_VBOX

config ADK_KERNEL_SERIO
	bool
	select ADK_KERNEL_SERIO_SERPORT
	select ADK_KERNEL_SERIO_LIBPS2
	select ADK_KERNEL_SERIO_I8042 if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
	select ADK_KERNEL_SERIO_I8042 if ADK_TARGET_MODEL_PCENGINES_ALIX1C
	default y if ADK_TARGET_SYSTEM_ARANYM_M68K
	default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
	default y if ADK_TARGET_MODEL_PCENGINES_ALIX1C
	default n

config ADK_KERNEL_SERIO_SERPORT
	bool

config ADK_KERNEL_SERIO_LIBPS2
	bool

config ADK_KERNEL_SERIO_I8042
	bool

config ADK_KERNEL_INPUT
	bool
	default y if ADK_TARGET_VBOX
	default y if ADK_TARGET_SYSTEM_ARANYM_M68K
	default y if ADK_TARGET_SYSTEM_IBM_X40
	default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
	default y if ADK_TARGET_SYSTEM_SHARP_ZAURUS
	default y if ADK_TARGET_SYSTEM_QEMU_ARM_SPITZ
	default y if ADK_TARGET_SYSTEM_QEMU_ARM_TERRIER
	default y if ADK_TARGET_MODEL_PCENGINES_ALIX1C
	default n

config ADK_KERNEL_HID_LOGITECH
	bool

config ADK_KERNEL_HID_LOGITECH_DJ
	bool

config ADK_KERNEL_KEYBOARD_ATARI
	bool
	default y if ADK_TARGET_SYSTEM_ARANYM_M68K
	default n

config ADK_KERNEL_MOUSE_ATARI
	bool
	default y if ADK_TARGET_SYSTEM_ARANYM_M68K
	default n

config ADK_KERNEL_KEYBOARD_GPIO
	bool
	default y if ADK_TARGET_SYSTEM_SHARP_ZAURUS
	default y if ADK_TARGET_SYSTEM_QEMU_ARM_SPITZ
	default y if ADK_TARGET_SYSTEM_QEMU_ARM_TERRIER
	default n

config ADK_KERNEL_KEYBOARD_MATRIX
	bool
	default y if ADK_TARGET_SYSTEM_SHARP_ZAURUS
	default y if ADK_TARGET_SYSTEM_QEMU_ARM_SPITZ
	default y if ADK_TARGET_SYSTEM_QEMU_ARM_TERRIER
	default n

config ADK_KERNEL_INPUT_TOUCHSCREEN
	bool

config ADK_KERNEL_TOUCHSCREEN_ADS7846
	bool
	select ADK_KERNEL_INPUT_TOUCHSCREEN
	default y if ADK_TARGET_SYSTEM_SHARP_ZAURUS
	default n

config ADK_KERNEL_INPUT_KEYBOARD
	bool
	default y if ADK_TARGET_VBOX
	default y if ADK_TARGET_SYSTEM_ARANYM_M68K
	default y if ADK_TARGET_SYSTEM_IBM_X40
	default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
	default y if ADK_TARGET_SYSTEM_SHARP_ZAURUS
	default y if ADK_TARGET_SYSTEM_QEMU_ARM_SPITZ
	default y if ADK_TARGET_SYSTEM_QEMU_ARM_TERRIER
	default y if ADK_TARGET_MODEL_PCENGINES_ALIX1C
	default n

config ADK_KERNEL_INPUT_MOUSE
	bool
	default y if ADK_TARGET_VBOX
	default y if ADK_TARGET_SYSTEM_ARANYM_M68K
	default y if ADK_TARGET_SYSTEM_IBM_X40
	default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
	default y if ADK_TARGET_SYSTEM_SHARP_ZAURUS
	default y if ADK_TARGET_SYSTEM_QEMU_ARM_SPITZ
	default y if ADK_TARGET_SYSTEM_QEMU_ARM_TERRIER
	default y if ADK_TARGET_MODEL_PCENGINES_ALIX1C
	default n

config ADK_KERNEL_INPUT_MOUSEDEV
	bool

config ADK_KERNEL_HID_SUPPORT
	bool

config ADK_KERNEL_HID
	bool

config ADK_KERNEL_HID_GENERIC
	bool
	
config ADK_KERNEL_USB_HID
	tristate "USB Human Interactive Device support"
	select ADK_KERNEL_INPUT
	select ADK_KERNEL_HID
	select ADK_KERNEL_HID_SUPPORT
	select ADK_KERNEL_HID_GENERIC
	depends on ADK_TARGET_WITH_USB \
		|| ADK_TARGET_QEMU
	help
	  You need this driver for USB keyboard and mouse support.

config ADK_TARGET_USB_KEYBOARD
	bool "enable keyboard support"
	depends on ADK_KERNEL_USB_HID
	select ADK_KERNEL_INPUT_KEYBOARD
	help
	  Activate to get USB keyboard support.

config ADK_KERNEL_HID_CHERRY
       tristate "Cherry Cymotion keyboard"
       depends on ADK_TARGET_USB_KEYBOARD

config ADK_TARGET_USB_MOUSE
	bool "enable mouse support"
	depends on ADK_KERNEL_USB_HID
	select ADK_KERNEL_INPUT_MOUSEDEV
	select ADK_KERNEL_INPUT_MOUSE
	help
	  Activate to get USB mouse support.

config ADK_KERNEL_UHID
	tristate "User-space I/O driver support for HID subsystem"
	select ADK_KERNEL_INPUT
	select ADK_KERNEL_HID
	select ADK_KERNEL_HID_SUPPORT
	select ADK_KERNEL_USB_HID
	help
	  User-space I/O driver support for HID subsystem

config ADK_KERNEL_LOGITECH_DINOVO
	bool "Support for Logitech DiNovo keyboard/mouse"
	select ADK_KERNEL_HID_LOGITECH
	select ADK_KERNEL_HID_LOGITECH_DJ
	depends on ADK_KERNEL_USB_HID
	help
	  Support for Logitech DiNovo keyboard/mouse combination.

config ADK_KERNEL_KEYBOARD_ATKBD
	bool "Keyboard support (AT)"
	select ADK_KERNEL_INPUT
	select ADK_KERNEL_INPUT_KEYBOARD
	depends on !ADK_TARGET_BOARD_BCM28XX
	default y if ADK_TARGET_VBOX
	default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
	default y if ADK_TARGET_SYSTEM_IBM_X40
	default y if ADK_TARGET_MODEL_PCENGINES_ALIX1C
	default n

config ADK_KERNEL_MOUSE_PS2
	bool "Mouse support (PS/2)"
	select ADK_KERNEL_INPUT
	select ADK_KERNEL_INPUT_MOUSEDEV
	select ADK_KERNEL_INPUT_MOUSE
	depends on !ADK_TARGET_BOARD_BCM28XX
	default y if ADK_TARGET_VBOX
	default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
	default y if ADK_TARGET_SYSTEM_IBM_X40
	default y if ADK_TARGET_MODEL_PCENGINES_ALIX1C
	default n

config ADK_KERNEL_INPUT_EVDEV
	tristate "Event device support"
	select ADK_KERNEL_INPUT
	default n

endmenu
