Module mtk

Module mtk 

Source
Expand description

MTK (MediaTek) USB gadget implementation using ConfigFS.

This module provides USB mass storage support for MTK-based Kobo devices (platform mt8113t-ntx). It uses ConfigFS to configure the USB gadget instead of shell commands.

ยงConfigFS write convention

All values are written with a trailing \n to match the behaviour of the echo shell command used in the Linux kernel ConfigFS gadget documentation examples. The kernel docs do not explicitly require a newline, but omitting it caused the UDC bind to silently fail on the Libra Colour (MTK platform) in practice.

Structsยง

MtkUsbManager
USB mass storage manager for MTK platforms.

Constantsยง

CONFIGFS_GADGET_DIR ๐Ÿ”’
Base path for ConfigFS USB gadget configuration.
UDC_DIR ๐Ÿ”’
Path to the UDC directory for auto-discovery.

Functionsยง

discover_udc ๐Ÿ”’
Discovers the USB Device Controller (UDC) name.