blob: fa5f926799406c2794a1c1e9dd9ac9e93f684345 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Marvell Tauros3 cache controller includes
4 *
5 * Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
6 *
7 * based on GPL'ed 2.6 kernel sources
8 * (c) Marvell International Ltd.
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00009 */
10
11#ifndef __ASM_ARM_HARDWARE_TAUROS3_H
12#define __ASM_ARM_HARDWARE_TAUROS3_H
13
14/*
15 * Marvell Tauros3 L2CC is compatible with PL310 r0p0
16 * but with PREFETCH_CTRL (r2p0) and an additional event counter.
17 * Also, there is AUX2_CTRL for some Marvell specific control.
18 */
19
20#define TAUROS3_EVENT_CNT2_CFG 0x224
21#define TAUROS3_EVENT_CNT2_VAL 0x228
22#define TAUROS3_INV_ALL 0x780
23#define TAUROS3_CLEAN_ALL 0x784
24#define TAUROS3_AUX2_CTRL 0x820
25
26/* Registers shifts and masks */
27#define TAUROS3_AUX2_CTRL_LINEFILL_BURST8_EN (1 << 2)
28
29#endif