use USB_OTG_GLOBAL_BASE instead of hard code value

This commit is contained in:
hathach 2021-11-22 10:52:28 +07:00
parent 6f59a2ce6e
commit dac7574c98
No known key found for this signature in database
GPG Key ID: 2FA891220FBFD581

View File

@ -34,7 +34,7 @@
#include "broadcom/interrupts.h"
#include "broadcom/caches.h"
#define DWC2_REG_BASE 0xFE980000UL
#define DWC2_REG_BASE USB_OTG_GLOBAL_BASE
#define DWC2_EP_MAX 8
#define DWC2_EP_FIFO_SIZE 4096