1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Texas Instruments, <www.ti.com>
5 * Aneesh V <aneesh@ti.com>
10 /* Register bit fields */
11 #define PL310_AUX_CTRL_ASSOCIATIVITY_MASK (1 << 16)
12 #define L2X0_DYNAMIC_CLK_GATING_EN (1 << 1)
13 #define L2X0_STNDBY_MODE_EN (1 << 0)
14 #define L2X0_CTRL_EN 1
15 #define L2X0_CTRL_OFF 0x100
17 #define L310_SHARED_ATT_OVERRIDE_ENABLE (1 << 22)
18 #define L310_AUX_CTRL_DATA_PREFETCH_MASK (1 << 28)
19 #define L310_AUX_CTRL_INST_PREFETCH_MASK (1 << 29)
20 #define L310_LATENCY_CTRL_SETUP(n) ((n) << 0)
21 #define L310_LATENCY_CTRL_RD(n) ((n) << 4)
22 #define L310_LATENCY_CTRL_WR(n) ((n) << 8)
24 #define L2X0_CACHE_ID_PART_MASK (0xf << 6)
25 #define L2X0_CACHE_ID_PART_L310 (3 << 6)
26 #define L2X0_CACHE_ID_RTL_MASK 0x3f
27 #define L2X0_CACHE_ID_RTL_R3P2 0x8
31 #include <linux/types.h>
39 u32 pl310_tag_latency_ctrl;
40 u32 pl310_data_latency_ctrl;
42 u32 pl310_event_cnt_ctrl;
43 u32 pl310_event_cnt1_cfg;
44 u32 pl310_event_cnt0_cfg;
45 u32 pl310_event_cnt1_val;
46 u32 pl310_event_cnt0_val;
48 u32 pl310_masked_intr_stat;
49 u32 pl310_raw_intr_stat;
54 u32 pl310_inv_line_pa;
58 u32 pl310_clean_line_pa;
60 u32 pl310_clean_line_idx;
63 u32 pl310_clean_inv_line_pa;
65 u32 pl310_clean_inv_line_idx;
66 u32 pl310_clean_inv_way;
68 u32 pl310_lockdown_dbase;
69 u32 pl310_lockdown_ibase;
71 u32 pl310_addr_filter_start;
72 u32 pl310_addr_filter_end;
74 u32 pl310_test_operation;
82 u32 pl310_prefetch_ctrl;
87 void pl310_inval_all(void);
88 void pl310_clean_inval_all(void);
89 void pl310_inval_range(u32 start, u32 end);
90 void pl310_clean_inval_range(u32 start, u32 end);