summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2024-12-04 22:47:08 +0800
committersakumisu <[email protected]>2024-12-04 22:47:08 +0800
commit8d2afc154085b7ffca08ec2cb82d06c400b9a950 (patch)
tree634c62760bc9d67d3ce458f925e42ee419eb4e29
parent87b8a4ad7f9a9443a67527af1dd175629d1e8354 (diff)
update(port/ehci/usb_glue_aic): add check for CONFIG_USB_OHCI_HCOR_OFFSET
-rw-r--r--port/ehci/usb_glue_aic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/port/ehci/usb_glue_aic.c b/port/ehci/usb_glue_aic.c
index b745b741..d9ed53ff 100644
--- a/port/ehci/usb_glue_aic.c
+++ b/port/ehci/usb_glue_aic.c
@@ -14,6 +14,10 @@
#error "aic ehci must define CONFIG_USB_EHCI_CONFIGFLAG"
#endif
+#if CONFIG_USB_OHCI_HCOR_OFFSET != 0x400
+#error "aic CONFIG_USB_OHCI_HCOR_OFFSET must be 0x400"
+#endif
+
extern void USBH_IRQHandler(uint8_t busid);
static void aic_ehci_isr(int vector, void *arg)
@@ -121,6 +125,7 @@ void usb_hc_low_level_init(struct usbh_bus *bus)
aicos_request_irq(config[i].irq_num + 1, (irq_handler_t)aic_ohci_isr,
0, "usb_host_ohci", bus);
aicos_irq_enable(config[i].irq_num);
+ aicos_irq_enable(config[i].irq_num + 1);
}
uint8_t usbh_get_port_speed(struct usbh_bus *bus, const uint8_t port)