summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2024-05-04 14:21:13 +0800
committersakumisu <[email protected]>2024-05-04 14:21:13 +0800
commit6db4fbba4cf1ed134b9fc82a00ced07b9f547327 (patch)
tree16db2242556909637b29911cdb7787c7a6636cf2
parent102801e45ce6b58f101a67967e9c239b5bed88b4 (diff)
add check for hpm
-rw-r--r--port/ehci/usb_glue_hpm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/port/ehci/usb_glue_hpm.c b/port/ehci/usb_glue_hpm.c
index fc87c431..2a6bcb72 100644
--- a/port/ehci/usb_glue_hpm.c
+++ b/port/ehci/usb_glue_hpm.c
@@ -13,12 +13,12 @@
#error "hpm ehci must set CONFIG_USB_EHCI_HPMICRO=1"
#endif
-#if !defined(CONFIG_USB_EHCI_HCOR_OFFSET) || CONFIG_USB_EHCI_HCOR_OFFSET != 0x140
-#error "hpm ehci must config CONFIG_USB_EHCI_HCOR_OFFSET to 0x140"
+#if !defined(CONFIG_USB_EHCI_HCCR_OFFSET) || CONFIG_USB_EHCI_HCCR_OFFSET != 0x100
+#error "hpm ehci must config CONFIG_USB_EHCI_HCCR_OFFSET to 0x100"
#endif
-#if !defined(CONFIG_USB_EHCI_PORT_POWER)
-#error "hpm ehci must enable CONFIG_USB_EHCI_PORT_POWER"
+#if !defined(CONFIG_USB_EHCI_CONFIGFLAG)
+#error "hpm ehci must set CONFIG_USB_EHCI_CONFIGFLAG"
#endif
static uint32_t _hcd_irqnum[CONFIG_USBHOST_MAX_BUS];