summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-11-22 12:07:07 +0700
committerGitHub <[email protected]>2021-11-22 12:07:07 +0700
commitb8d66e4d1975a9b2329b1302c63eb4477a5eed0f (patch)
tree2ad9b4821cd808eb5f4bb2c36e416c07e957dc60
parent5d7e26d620dde2d97eb0f01dc968e9f195743583 (diff)
parent8a18c22c2f7c15b5c7869428877c1e50157d5856 (diff)
Merge pull request #1206 from hathach/bcm-dwc2-address
Bcm dwc2 address
-rw-r--r--hw/bsp/raspberrypi4/boards/raspberrypi_cm4/board.mk1
m---------hw/mcu/broadcom0
-rw-r--r--src/portable/synopsys/dwc2/dwc2_bcm.h2
3 files changed, 2 insertions, 1 deletions
diff --git a/hw/bsp/raspberrypi4/boards/raspberrypi_cm4/board.mk b/hw/bsp/raspberrypi4/boards/raspberrypi_cm4/board.mk
index e69de29bb..897342479 100644
--- a/hw/bsp/raspberrypi4/boards/raspberrypi_cm4/board.mk
+++ b/hw/bsp/raspberrypi4/boards/raspberrypi_cm4/board.mk
@@ -0,0 +1 @@
+CFLAGS += -DBCM_VERSION=2711
diff --git a/hw/mcu/broadcom b/hw/mcu/broadcom
-Subproject d126323fc77e81d1f18677a439685a4754ea02a
+Subproject 5bff1d5e02c37c38ee1e5cf3f7fe82fdc7e1517
diff --git a/src/portable/synopsys/dwc2/dwc2_bcm.h b/src/portable/synopsys/dwc2/dwc2_bcm.h
index fcec0b0d2..353bc21ee 100644
--- a/src/portable/synopsys/dwc2/dwc2_bcm.h
+++ b/src/portable/synopsys/dwc2/dwc2_bcm.h
@@ -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