File tree Expand file tree Collapse file tree 8 files changed +22
-0
lines changed Expand file tree Collapse file tree 8 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -14,3 +14,4 @@ zephyr_code_relocate_ifdef(CONFIG_PINCTRL_BFLB LIBRARY drivers__pinctrl LOCATION
14
14
zephyr_code_relocate_ifdef(CONFIG_SYSCON_BFLB_EFUSE LIBRARY drivers__syscon LOCATION ITCM NOKEEP)
15
15
zephyr_code_relocate_ifdef(CONFIG_CLOCK_CONTROL_BOUFFALOLAB_BL60X
16
16
LIBRARY drivers__clock_control LOCATION ITCM NOKEEP)
17
+ zephyr_code_relocate_ifdef(CONFIG_CACHE_BFLB_L1C LIBRARY drivers__cache LOCATION ITCM NOKEEP)
Original file line number Diff line number Diff line change 5
5
6
6
config SOC_SERIES_BL60X
7
7
select ATOMIC_OPERATIONS_C
8
+ select CACHE_MANAGEMENT
8
9
select CLOCK_CONTROL
9
10
select CODE_DATA_RELOCATION
10
11
select CPU_HAS_FPU
12
+ select CPU_HAS_ICACHE
13
+ select CPU_HAS_DCACHE
11
14
select FLOAT_HARD
12
15
select FPU
13
16
select GEN_IRQ_VECTOR_TABLE
Original file line number Diff line number Diff line change @@ -18,4 +18,8 @@ config ARCH_SW_ISR_TABLE_ALIGN
18
18
config RISCV_MCAUSE_EXCEPTION_MASK
19
19
default 0x3FF
20
20
21
+ choice CACHE_TYPE
22
+ default EXTERNAL_CACHE
23
+ endchoice
24
+
21
25
endif # SOC_SERIES_BL60X
Original file line number Diff line number Diff line change 14
14
#include <zephyr/device.h>
15
15
#include <zephyr/init.h>
16
16
#include <zephyr/irq.h>
17
+ #include <zephyr/cache.h>
17
18
18
19
#include <clic.h>
19
20
#include <bflb_soc.h>
@@ -94,4 +95,6 @@ GLB_JTAG_SWAP_SET_POS);
94
95
95
96
/* init bor for all platform */
96
97
system_bor_init ();
98
+
99
+ sys_cache_data_flush_and_invd_all ();
97
100
}
Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ zephyr_code_relocate_ifdef(CONFIG_PINCTRL_BFLB LIBRARY drivers__pinctrl LOCATION
13
13
zephyr_code_relocate_ifdef(CONFIG_SYSCON_BFLB_EFUSE LIBRARY drivers__syscon LOCATION ITCM NOKEEP)
14
14
zephyr_code_relocate_ifdef(CONFIG_CLOCK_CONTROL_BOUFFALOLAB_BL70X
15
15
LIBRARY drivers__clock_control LOCATION ITCM NOKEEP)
16
+ zephyr_code_relocate_ifdef(CONFIG_CACHE_BFLB_L1C LIBRARY drivers__cache LOCATION ITCM NOKEEP)
Original file line number Diff line number Diff line change 4
4
5
5
config SOC_SERIES_BL70X
6
6
select ATOMIC_OPERATIONS_C
7
+ select CACHE_MANAGEMENT
7
8
select CLOCK_CONTROL
8
9
select CODE_DATA_RELOCATION
9
10
select CPU_HAS_FPU
11
+ select CPU_HAS_ICACHE
12
+ select CPU_HAS_DCACHE
10
13
select FLOAT_HARD
11
14
select FPU
12
15
select GEN_IRQ_VECTOR_TABLE
Original file line number Diff line number Diff line change @@ -18,4 +18,8 @@ config ARCH_SW_ISR_TABLE_ALIGN
18
18
config RISCV_MCAUSE_EXCEPTION_MASK
19
19
default 0x3FF
20
20
21
+ choice CACHE_TYPE
22
+ default EXTERNAL_CACHE
23
+ endchoice
24
+
21
25
endif # SOC_SERIES_BL70X
Original file line number Diff line number Diff line change 13
13
#include <zephyr/device.h>
14
14
#include <zephyr/init.h>
15
15
#include <zephyr/irq.h>
16
+ #include <zephyr/cache.h>
16
17
17
18
#include <clic.h>
18
19
#include <bflb_soc.h>
@@ -78,4 +79,6 @@ void soc_early_init_hook(void)
78
79
79
80
/* init bor for all platform */
80
81
system_bor_init ();
82
+
83
+ sys_cache_data_flush_and_invd_all ();
81
84
}
You can’t perform that action at this time.
0 commit comments