diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-01-21 18:32:19 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-01-21 18:32:19 -0800 |
| commit | 87344ff53a30ed2c41d58b6e30692f80a3968ee1 (patch) | |
| tree | ff340fba7501675b6c4f69406cd816cff8568931 | |
| parent | 1c3960634520749180e349cee5fe4ea76fb75937 (diff) | |
Disable the DCache when USB is initialized. There are still issues enabling it.
| -rw-r--r-- | ports/mimxrt10xx/supervisor/usb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/mimxrt10xx/supervisor/usb.c b/ports/mimxrt10xx/supervisor/usb.c index c38dd55b9..051fcca9d 100644 --- a/ports/mimxrt10xx/supervisor/usb.c +++ b/ports/mimxrt10xx/supervisor/usb.c @@ -49,6 +49,10 @@ void init_usb_hardware(void) { phytx &= ~(USBPHY_TX_D_CAL_MASK | USBPHY_TX_TXCAL45DM_MASK | USBPHY_TX_TXCAL45DP_MASK); phytx |= USBPHY_TX_D_CAL(0x0C) | USBPHY_TX_TXCAL45DP(0x06) | USBPHY_TX_TXCAL45DM(0x06); usb_phy->TX = phytx; + + // Temporarily disable the data cache until we can sort out all of the spots in TinyUSB that + // need the cache invalidated or cleaned. + SCB_DisableDCache(); } void USB_OTG1_IRQHandler(void) { |
