mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
faf28c046e
Apple M2 devices have an MTP coprocessor in charge of keyboard/trackpad handling, communicating over a DockChannel interface. Add a simple driver for this. The keyboard does not require any initialization messages, but we have a problem: we cannot reset the MTP so Linux can start it fresh, and it delivers a number of informative packets on startup. To work around this, we buffer those messages and re-inject them into the FIFO (which is big enough to hold all of them) on shutdown, so Linux finds them when it initializes its driver. The actual MTP coprocessor is quiesced, which does work properly. Signed-off-by: Hector Martin <marcan@marcan.st>
19 lines
638 B
Makefile
19 lines
638 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2000-2007
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)CROS_EC_KEYB) += cros_ec_keyb.o
|
|
obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += key_matrix.o
|
|
obj-$(CONFIG_$(SPL_TPL_)DM_KEYBOARD) += input.o keyboard-uclass.o
|
|
obj-$(CONFIG_BUTTON_KEYBOARD) += button_kbd.o
|
|
|
|
ifndef CONFIG_SPL_BUILD
|
|
|
|
obj-$(CONFIG_APPLE_KEYB) += apple_kbd.o
|
|
obj-$(CONFIG_APPLE_SPI_KEYB) += apple_spi_kbd.o
|
|
obj-$(CONFIG_APPLE_MTP_KEYB) += apple_mtp_kbd.o
|
|
obj-$(CONFIG_I8042_KEYB) += i8042.o
|
|
obj-$(CONFIG_TEGRA_KEYBOARD) += input.o tegra-kbc.o
|
|
obj-$(CONFIG_TWL4030_INPUT) += twl4030.o
|
|
endif
|