18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Cache operations
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu>
68c2ecf20Sopenharmony_ci * Copyright (C) 2007-2009 PetaLogix
78c2ecf20Sopenharmony_ci * Copyright (C) 2003 John Williams <jwilliams@itee.uq.edu.au>
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#ifndef _ASM_MICROBLAZE_CACHE_H
118c2ecf20Sopenharmony_ci#define _ASM_MICROBLAZE_CACHE_H
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#include <asm/registers.h>
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#define L1_CACHE_SHIFT 5
168c2ecf20Sopenharmony_ci/* word-granular cache in microblaze */
178c2ecf20Sopenharmony_ci#define L1_CACHE_BYTES	(1 << L1_CACHE_SHIFT)
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#define SMP_CACHE_BYTES	L1_CACHE_BYTES
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#endif /* _ASM_MICROBLAZE_CACHE_H */
22