blob: 5cc88b13aad11cf3275c1d5f94784b5b77b31a2d [file] [log] [blame]
Jiafei Pan46367ad2018-03-02 07:23:30 +00001/*
2 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef FSL_CSU_H
8#define FSL_CSU_H
Jiafei Pan46367ad2018-03-02 07:23:30 +00009
10enum csu_cslx_access {
11 CSU_NS_SUP_R = 0x08,
12 CSU_NS_SUP_W = 0x80,
13 CSU_NS_SUP_RW = 0x88,
14 CSU_NS_USER_R = 0x04,
15 CSU_NS_USER_W = 0x40,
16 CSU_NS_USER_RW = 0x44,
17 CSU_S_SUP_R = 0x02,
18 CSU_S_SUP_W = 0x20,
19 CSU_S_SUP_RW = 0x22,
20 CSU_S_USER_R = 0x01,
21 CSU_S_USER_W = 0x10,
22 CSU_S_USER_RW = 0x11,
23 CSU_ALL_RW = 0xff,
24};
25
26struct csu_ns_dev {
27 uintptr_t ind;
28 uint32_t val;
29};
30
31void enable_layerscape_ns_access(void);
32
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000033#endif /* FSL_CSU_H */