add ehci hccr offset macro
This commit is contained in:
@@ -142,6 +142,7 @@
|
||||
|
||||
/* ================ EHCI Configuration ================ */
|
||||
|
||||
#define CONFIG_USB_EHCI_HCCR_OFFSET (0x0)
|
||||
#define CONFIG_USB_EHCI_HCOR_OFFSET (0x10)
|
||||
#define CONFIG_USB_EHCI_FRAME_LIST_SIZE 1024
|
||||
// #define CONFIG_USB_EHCI_INFO_ENABLE
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "usbh_hub.h"
|
||||
#include "usb_hc_ehci.h"
|
||||
|
||||
#define EHCI_HCCR ((struct ehci_hccr *)(bus->hcd.reg_base))
|
||||
#define EHCI_HCCR ((struct ehci_hccr *)(bus->hcd.reg_base + CONFIG_USB_EHCI_HCCR_OFFSET))
|
||||
#define EHCI_HCOR ((struct ehci_hcor *)(bus->hcd.reg_base + CONFIG_USB_EHCI_HCOR_OFFSET))
|
||||
|
||||
#define EHCI_PTR2ADDR(x) ((uint32_t)(x) & ~0x1F)
|
||||
|
||||
Reference in New Issue
Block a user