File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/portable/chipidea/ci_hs Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 48
48
49
49
#define CI_HS_REG (_port ) ((ci_hs_regs_t*) _ci_controller[_port].reg_base)
50
50
51
+ // Clean means to push any cached changes to RAM and invalidate "removes" the
52
+ // entry from the cache.
51
53
#if defined(__CORTEX_M ) && __CORTEX_M == 7 && __DCACHE_PRESENT == 1
52
54
#define CleanInvalidateDCache_by_Addr SCB_CleanInvalidateDCache_by_Addr
53
55
#else
@@ -199,6 +201,8 @@ static void bus_reset(uint8_t rhport)
199
201
_dcd_data .qhd [0 ][0 ].qtd_overlay .next = _dcd_data .qhd [0 ][1 ].qtd_overlay .next = QTD_NEXT_INVALID ;
200
202
201
203
_dcd_data .qhd [0 ][0 ].int_on_setup = 1 ; // OUT only
204
+
205
+ CleanInvalidateDCache_by_Addr ((uint32_t * ) & _dcd_data , sizeof (dcd_data_t ));
202
206
}
203
207
204
208
void dcd_init (uint8_t rhport )
You can’t perform that action at this time.
0 commit comments