40
40
* Public Functions
41
41
****************************************************************************/
42
42
43
+ /****************************************************************************
44
+ * Name: up_get_icache_size
45
+ *
46
+ * Description:
47
+ * Get icache size
48
+ *
49
+ * Input Parameters:
50
+ * None
51
+ *
52
+ * Returned Value:
53
+ * Cache size
54
+ *
55
+ ****************************************************************************/
56
+
57
+ #ifdef CONFIG_XTENSA_ICACHE
58
+ size_t up_get_icache_size (void )
59
+ {
60
+ return XCHAL_ICACHE_SIZE ;
61
+ }
62
+
43
63
/****************************************************************************
44
64
* Name: up_get_icache_linesize
45
65
*
54
74
*
55
75
****************************************************************************/
56
76
57
- #ifdef CONFIG_XTENSA_ICACHE
58
77
size_t up_get_icache_linesize (void )
59
78
{
60
79
return XCHAL_ICACHE_LINESIZE ;
@@ -266,6 +285,26 @@ void up_unlock_icache_all(void)
266
285
}
267
286
#endif
268
287
288
+ /****************************************************************************
289
+ * Name: up_get_dcache_size
290
+ *
291
+ * Description:
292
+ * Get dcache size
293
+ *
294
+ * Input Parameters:
295
+ * None
296
+ *
297
+ * Returned Value:
298
+ * Cache size
299
+ *
300
+ ****************************************************************************/
301
+
302
+ #ifdef CONFIG_XTENSA_DCACHE
303
+ size_t up_get_dcache_size (void )
304
+ {
305
+ return XCHAL_DCACHE_SIZE ;
306
+ }
307
+
269
308
/****************************************************************************
270
309
* Name: up_get_dcache_linesize
271
310
*
@@ -280,7 +319,6 @@ void up_unlock_icache_all(void)
280
319
*
281
320
****************************************************************************/
282
321
283
- #ifdef CONFIG_XTENSA_DCACHE
284
322
size_t up_get_dcache_linesize (void )
285
323
{
286
324
return XCHAL_DCACHE_LINESIZE ;
0 commit comments