@@ -35,15 +35,6 @@ extern "C" {
35
35
* @{
36
36
*/
37
37
38
- /**
39
- * @cond INTERNAL_HIDDEN
40
- *
41
- */
42
-
43
- #define _CPU DT_PATH(cpus, cpu_0)
44
-
45
- /** @endcond */
46
-
47
38
/**
48
39
* @brief Enable the d-cache
49
40
*
@@ -398,7 +389,6 @@ static ALWAYS_INLINE int sys_cache_instr_flush_and_invd_range(void *addr, size_t
398
389
*
399
390
* - At run-time when @kconfig{CONFIG_DCACHE_LINE_SIZE_DETECT} is set.
400
391
* - At compile time using the value set in @kconfig{CONFIG_DCACHE_LINE_SIZE}.
401
- * - At compile time using the `d-cache-line-size` CPU0 property of the DT.
402
392
* - 0 otherwise
403
393
*
404
394
* @retval size Size of the d-cache line.
@@ -408,10 +398,10 @@ static ALWAYS_INLINE size_t sys_cache_data_line_size_get(void)
408
398
{
409
399
#ifdef CONFIG_DCACHE_LINE_SIZE_DETECT
410
400
return cache_data_line_size_get ();
411
- #elif (CONFIG_DCACHE_LINE_SIZE != 0 )
401
+ #elif defined (CONFIG_DCACHE_LINE_SIZE )
412
402
return CONFIG_DCACHE_LINE_SIZE ;
413
403
#else
414
- return DT_PROP_OR ( _CPU , d_cache_line_size , 0 ) ;
404
+ return 0 ;
415
405
#endif
416
406
}
417
407
@@ -425,7 +415,6 @@ static ALWAYS_INLINE size_t sys_cache_data_line_size_get(void)
425
415
*
426
416
* - At run-time when @kconfig{CONFIG_ICACHE_LINE_SIZE_DETECT} is set.
427
417
* - At compile time using the value set in @kconfig{CONFIG_ICACHE_LINE_SIZE}.
428
- * - At compile time using the `i-cache-line-size` CPU0 property of the DT.
429
418
* - 0 otherwise
430
419
*
431
420
* @retval size Size of the d-cache line.
@@ -435,10 +424,10 @@ static ALWAYS_INLINE size_t sys_cache_instr_line_size_get(void)
435
424
{
436
425
#ifdef CONFIG_ICACHE_LINE_SIZE_DETECT
437
426
return cache_instr_line_size_get ();
438
- #elif (CONFIG_ICACHE_LINE_SIZE != 0 )
427
+ #elif defined (CONFIG_ICACHE_LINE_SIZE )
439
428
return CONFIG_ICACHE_LINE_SIZE ;
440
429
#else
441
- return DT_PROP_OR ( _CPU , i_cache_line_size , 0 ) ;
430
+ return 0 ;
442
431
#endif
443
432
}
444
433
0 commit comments