Add boot command line option to ignore any EHCI controllers.

This commit is contained in:
Martin Whitaker 2022-04-04 22:53:39 +01:00
parent 2e048a7c61
commit 711596edbb
2 changed files with 5 additions and 2 deletions

View File

@ -692,7 +692,9 @@ void find_usb_keyboards(bool pause_at_end)
// We need to initialise EHCI controllers before initialising any of their companion
// controllers, so do it now.
if (controller_type[func] == EHCI) {
probe_usb_controller(bus, dev, func, controller_type[func]);
if (~usb_init_options & USB_IGNORE_EHCI) {
probe_usb_controller(bus, dev, func, controller_type[func]);
}
// If we've filled the controller table, abort now.
if (num_usb_controllers == MAX_USB_CONTROLLERS) {
return;

View File

@ -112,7 +112,8 @@ typedef struct usb_hcd_s {
*/
typedef enum {
USB_DEFAULT_INIT = 0,
USB_EXTRA_RESET = 1
USB_EXTRA_RESET = 1 << 0,
USB_IGNORE_EHCI = 1 << 1
} usb_init_options_t;
/**