forked from Xilinx/qemu-devicetrees
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversal-ddrmc-cpus.dtsi
85 lines (83 loc) · 3.19 KB
/
versal-ddrmc-cpus.dtsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
* Versal DDRMC CPUs only
*
* Copyright (c) 2018, Xilinx Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the <organization> nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "versal.dtsh"
#define CREATE_UB(X, VECTORS, GDB_ID, PVR_USER1) \
ddrmc_ub ## X: ddr_cpu@ ## X { \
gdb-id = GDB_ID; \
doc-status = "partial"; \
#interrupt-cells = <1>; \
compatible = "xlnx,microblaze-cpu"; \
device_type = "cpu"; \
version = "10.0"; \
xlnx,base-vectors = <VECTORS>; \
xlnx,div-zero-exception = <0x1>; \
xlnx,family = "virtex7"; \
xlnx,fault-tolerant = <0x1>; \
xlnx,fpu-exception = <0x0>; \
xlnx,ill-opcode-exception = <0x1>; \
xlnx,mmu-privileged-instr = <0x0>; \
xlnx,mmu-tlb-access = <0x3>; \
xlnx,mmu-zones = <0x2>; \
xlnx,opcode-0x0-illegal = <0x1>; \
xlnx,pc-width = <0x20>; \
xlnx,pvr = <0x2>; \
xlnx,pvr-user1 = <PVR_USER1>; \
xlnx,pvr-user2 = <0x0>; \
xlnx,reset-msr = <0x0>; \
xlnx,unaligned-exceptions = <0x1>; \
xlnx,use-barrel = <0x1>; \
xlnx,use-div = <0x1>; \
xlnx,use-ext-brk = <0x1>; \
xlnx,use-ext-nm-brk = <0x1>; \
xlnx,use-extended-fsl-instr = <0x0>; \
xlnx,use-fpu = <0x0>; \
xlnx,use-hw-mul = <0x2>; \
xlnx,use-mmu = <0x0>; \
xlnx,use-msr-instr = <0x1>; \
xlnx,use-pcmp-instr = <0x1>; \
xlnx,use-stack-protection = <0x1>; \
xlnx,addr-size= <52>; \
mr = <&lmb_ddrmc ## X>; \
memory = <&lmb_ddrmc ## X>; \
memattr = <&ddrmc_ub ## X ## _memattr>; \
gpios = <&npi_ddrmc_ub ## X 0 \
&npi_ddrmc_ub ## X 1>; \
gpio-names = "reset", "wakeup"; \
qemu,halt = <0x1>; \
}
/ {
cpus {
#if HAS_DDRMC0
CREATE_UB(0, MM_DDRMC_RAM_INSTR, "DDRMC-UB0", 0x0);
#endif
#if HAS_DDRMC1
CREATE_UB(1, MM_DDRMC_RAM_INSTR, "DDRMC-UB1", 0x0);
#endif
};
};