Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Cache operations |
| 4 | * |
| 5 | * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu> |
| 6 | * Copyright (C) 2007-2009 PetaLogix |
| 7 | * Copyright (C) 2003 John Williams <jwilliams@itee.uq.edu.au> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef _ASM_MICROBLAZE_CACHE_H |
| 11 | #define _ASM_MICROBLAZE_CACHE_H |
| 12 | |
| 13 | #include <asm/registers.h> |
| 14 | |
| 15 | #define L1_CACHE_SHIFT 5 |
| 16 | /* word-granular cache in microblaze */ |
| 17 | #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) |
| 18 | |
| 19 | #define SMP_CACHE_BYTES L1_CACHE_BYTES |
| 20 | |
| 21 | #endif /* _ASM_MICROBLAZE_CACHE_H */ |