mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-15 06:17:04 +00:00
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>
18 lines
349 B
C
18 lines
349 B
C
#ifndef __CONFIG_H
|
|
#define __CONFIG_H
|
|
|
|
#include <linux/sizes.h>
|
|
|
|
/* Environment */
|
|
#define ENV_DEVICE_SETTINGS \
|
|
"stdin=serial,usbkbd,spikbd,mtpkbd\0" \
|
|
"stdout=vidconsole,serial\0" \
|
|
"stderr=vidconsole,serial\0"
|
|
|
|
#define BOOT_TARGETS "nvme usb"
|
|
|
|
#define CFG_EXTRA_ENV_SETTINGS \
|
|
ENV_DEVICE_SETTINGS \
|
|
"boot_targets=" BOOT_TARGETS "\0"
|
|
|
|
#endif
|