Merge pull request #1898 from ccrome/fix-imx1011

Turn data cache on
This commit is contained in:
Ha Thach 2023-02-13 12:01:39 +07:00 committed by GitHub
commit 002ca345b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,12 @@ const uint8_t dcd_data[] = { 0x00 };
void board_init(void)
{
// make sure the dcache is on.
#if defined(__DCACHE_PRESENT) && __DCACHE_PRESENT
if (SCB_CCR_DC_Msk != (SCB_CCR_DC_Msk & SCB->CCR))
SCB_EnableDCache();
#endif
// Init clock
BOARD_BootClockRUN();
SystemCoreClockUpdate();