summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2020-11-20 12:46:53 +0100
committerRobert Schwebel <r.schwebel@pengutronix.de>2020-11-23 10:49:44 +0100
commitc5a4dbd7980c6b31b6be988a3de40318ac0b3797 (patch)
tree30fefc6f1b5f72dcda6eda969ce6bd7f508eb1a4
parentd2bb017519cd6fcaed5e4b4d124c101eb6d5d586 (diff)
downloadDistroKit-next.tar.gz
MIPS: malta: enable USB XHCI supportHEADnextmaster
Make malta kernel work with qemu-xhci controller. It was needed to reproduce endiannes bug with candleLight CAN adapter. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
-rw-r--r--configs/platform-mips/kernelconfig-malta6
-rw-r--r--configs/platform-mips/kernelconfig-malta.diff5
-rwxr-xr-xconfigs/platform-mips/run2
3 files changed, 11 insertions, 2 deletions
diff --git a/configs/platform-mips/kernelconfig-malta b/configs/platform-mips/kernelconfig-malta
index 17ebd02..92cabe7 100644
--- a/configs/platform-mips/kernelconfig-malta
+++ b/configs/platform-mips/kernelconfig-malta
@@ -2559,7 +2559,11 @@ CONFIG_USB_AUTOSUSPEND_DELAY=2
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not set
-# CONFIG_USB_XHCI_HCD is not set
+CONFIG_USB_XHCI_HCD=m
+# CONFIG_USB_XHCI_DBGCAP is not set
+CONFIG_USB_XHCI_PCI=m
+# CONFIG_USB_XHCI_PCI_RENESAS is not set
+# CONFIG_USB_XHCI_PLATFORM is not set
# CONFIG_USB_EHCI_HCD is not set
# CONFIG_USB_OXU210HP_HCD is not set
# CONFIG_USB_ISP116X_HCD is not set
diff --git a/configs/platform-mips/kernelconfig-malta.diff b/configs/platform-mips/kernelconfig-malta.diff
index 458acb0..2d3dcbd 100644
--- a/configs/platform-mips/kernelconfig-malta.diff
+++ b/configs/platform-mips/kernelconfig-malta.diff
@@ -1663,6 +1663,11 @@ CONFIG_USB_HID=m
CONFIG_USB_PCI=y
# CONFIG_USB_STORAGE is not set
# CONFIG_USB_UHCI_HCD is not set
+# CONFIG_USB_XHCI_DBGCAP is not set
+CONFIG_USB_XHCI_HCD=m
+CONFIG_USB_XHCI_PCI=m
+# CONFIG_USB_XHCI_PCI_RENESAS is not set
+# CONFIG_USB_XHCI_PLATFORM is not set
# CONFIG_USERIO is not set
CONFIG_VETH=m
CONFIG_VGA_ARB=y
diff --git a/configs/platform-mips/run b/configs/platform-mips/run
index c42b5f5..edfce51 100755
--- a/configs/platform-mips/run
+++ b/configs/platform-mips/run
@@ -68,7 +68,7 @@ fi
BASE_CMDLINE="console=ttyS0,115200 loglevel=5 systemd.log_level=warning systemd.show_status=auto"
# Machine to emulate
-QEMU_ARGS=( -M malta -m 256 -serial stdio -monitor null)
+QEMU_ARGS=( -M malta -m 256 -serial stdio -monitor null -device qemu-xhci,id=xhci)
# disable graphics output
QEMU_ARGS[${#QEMU_ARGS[@]}]="-nographic"
# Exit qemu on reboot