forked from open-power/pdbg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathp8-pib.dts.m4
56 lines (52 loc) · 1.1 KB
/
p8-pib.dts.m4
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
define(`CONCAT', `$1$2')dnl
define(`HEX', `CONCAT(0x, $1)')dnl
define(`CORE_BASE', `eval(0x10000000 + $1 * 0x1000000, 16)')dnl
define(`CORE', `core@CORE_BASE($1) {
#address-cells = <0x2>;
#size-cells = <0x1>;
compatible = "ibm,power8-core";
reg = <0x0 HEX(CORE_BASE($1)) 0xfffff>;
index = <HEX(eval($2, 16))>;
chtm@11000 {
compatible = "ibm,power8-chtm";
reg = <0x0 0x11000 0xB>;
};
THREAD(0);
THREAD(1);
THREAD(2);
THREAD(3);
THREAD(4);
THREAD(5);
THREAD(6);
THREAD(7);
}')dnl
define(`THREAD_BASE', `eval(0x13000 + $1 * 0x10, 16)')dnl
define(`THREAD',`thread@THREAD_BASE($1) {
reg = <0x0 HEX(THREAD_BASE($1)) 0x10>;
compatible = "ibm,power8-thread";
index = <HEX(eval($1, 16))>;
}')dnl
dnl
define(`PROC_CORES', `CORE(1, 1);
CORE(2, 2);
CORE(3, 3);
CORE(4, 4);
CORE(5, 5);
CORE(6, 6);
CORE(9, 9);
CORE(10, 10);
CORE(11, 11);
CORE(12, 12);
CORE(13, 13);
CORE(14, 14)')dnl
adu@2020000 {
compatible = "ibm,power8-adu";
reg = <0x0 0x2020000 0x4>;
device_tree_path = "CONCAT(/mem,PROC_ID)";
};
nhtm@2010880 {
compatible = "ibm,power8-nhtm";
reg = <0x0 0x2010880 0x8>;
index = <0x0>;
};
PROC_CORES;