diff options
Diffstat (limited to 'utils/regtools/desc/regs-example.xml')
-rw-r--r-- | utils/regtools/desc/regs-example.xml | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/utils/regtools/desc/regs-example.xml b/utils/regtools/desc/regs-example.xml new file mode 100644 index 0000000000..6fb8f759fe --- /dev/null +++ b/utils/regtools/desc/regs-example.xml | |||
@@ -0,0 +1,153 @@ | |||
1 | <?xml version="1.0"?> | ||
2 | <soc version="2"> | ||
3 | <name>vsoc</name> | ||
4 | <title>Virtual SOC</title> | ||
5 | <desc>Virtual SoC is a nice and powerful chip.</desc> | ||
6 | <author>Amaury Pouly</author> | ||
7 | <isa>ARM</isa> | ||
8 | <version>0.5</version> | ||
9 | <node> | ||
10 | <name>int</name> | ||
11 | <title>Interrupt Collector</title> | ||
12 | <desc>The interrupt collector controls the routing of interrupt to the processor</desc> | ||
13 | <instance> | ||
14 | <name>ICOLL</name> | ||
15 | <title>Interrupt collector</title> | ||
16 | <address>0x80000000</address> | ||
17 | </instance> | ||
18 | <node> | ||
19 | <name>status</name> | ||
20 | <access>read-only</access> | ||
21 | <title>Interrupt status register</title> | ||
22 | <instance> | ||
23 | <name>STATUS</name> | ||
24 | <address>0x4</address> | ||
25 | </instance> | ||
26 | <register> | ||
27 | <width>8</width> | ||
28 | <field> | ||
29 | <name>VDDIO_BO</name> | ||
30 | <desc>VDDIO brownout interrupt status</desc> | ||
31 | <position>0</position> | ||
32 | </field> | ||
33 | </register> | ||
34 | </node> | ||
35 | <node> | ||
36 | <name>enable</name> | ||
37 | <title>Interrupt enable register</title> | ||
38 | <instance> | ||
39 | <name>ENABLE</name> | ||
40 | <address>0x8</address> | ||
41 | </instance> | ||
42 | <register> | ||
43 | <width>16</width> | ||
44 | <field> | ||
45 | <name>VDDIO_BO</name> | ||
46 | <desc>VDDIO brownout interrupt enable</desc> | ||
47 | <position>0</position> | ||
48 | <width>2</width> | ||
49 | <enum> | ||
50 | <name>DISABLED</name> | ||
51 | <desc>Interrupt is disabled</desc> | ||
52 | <value>0</value> | ||
53 | </enum> | ||
54 | <enum> | ||
55 | <name>ENABLED</name> | ||
56 | <desc>Interrupt is enabled</desc> | ||
57 | <value>1</value> | ||
58 | </enum> | ||
59 | <enum> | ||
60 | <name>NMI</name> | ||
61 | <desc>Interrupt is non-maskable</desc> | ||
62 | <value>2</value> | ||
63 | </enum> | ||
64 | </field> | ||
65 | </register> | ||
66 | <variant> | ||
67 | <type>set</type> | ||
68 | <offset>4</offset> | ||
69 | </variant> | ||
70 | <variant> | ||
71 | <type>clr</type> | ||
72 | <offset>8</offset> | ||
73 | </variant> | ||
74 | </node> | ||
75 | </node> | ||
76 | <node> | ||
77 | <name>gpio</name> | ||
78 | <title>GPIO controller</title> | ||
79 | <desc>A GPIO controller manages several ports</desc> | ||
80 | <instance> | ||
81 | <name>CPU_GPIO</name> | ||
82 | <title>CPU GPIO controller 1 through 3</title> | ||
83 | <range> | ||
84 | <first>1</first> | ||
85 | <count>3</count> | ||
86 | <formula variable="n">0x80001000+(n-1)*0x1000</formula> | ||
87 | </range> | ||
88 | </instance> | ||
89 | <instance> | ||
90 | <name>COP_GPIO</name> | ||
91 | <title>Companion processor GPIO controller</title> | ||
92 | <desc>Although the companion processor GPIO controller is accessible from the CPU, it incurs an extra penalty on the bus</desc> | ||
93 | <address>0x90000000</address> | ||
94 | </instance> | ||
95 | <node> | ||
96 | <name>port</name> | ||
97 | <title>GPIO port</title> | ||
98 | <instance> | ||
99 | <name>PORT</name> | ||
100 | <range> | ||
101 | <first>0</first> | ||
102 | <count>4</count> | ||
103 | <base>0</base> | ||
104 | <stride>0x100</stride> | ||
105 | </range> | ||
106 | </instance> | ||
107 | <node> | ||
108 | <name>input</name> | ||
109 | <title>Input register</title> | ||
110 | <instance> | ||
111 | <name>IN</name> | ||
112 | <address>0</address> | ||
113 | </instance> | ||
114 | <register> | ||
115 | <width>8</width> | ||
116 | <field> | ||
117 | <name>VALUE</name> | ||
118 | <position>0</position> | ||
119 | <width>8</width> | ||
120 | </field> | ||
121 | </register> | ||
122 | </node> | ||
123 | <node> | ||
124 | <name>output_enable</name> | ||
125 | <title>Output enable register</title> | ||
126 | <instance> | ||
127 | <name>OE</name> | ||
128 | <address>0x10</address> | ||
129 | </instance> | ||
130 | <register> | ||
131 | <width>8</width> | ||
132 | <field> | ||
133 | <name>ENABLE</name> | ||
134 | <position>0</position> | ||
135 | <width>8</width> | ||
136 | </field> | ||
137 | </register> | ||
138 | <variant> | ||
139 | <type>set</type> | ||
140 | <address>4</address> | ||
141 | </variant> | ||
142 | <variant> | ||
143 | <type>clr</type> | ||
144 | <address>8</address> | ||
145 | </variant> | ||
146 | <variant> | ||
147 | <type>mask</type> | ||
148 | <address>12</address> | ||
149 | </variant> | ||
150 | </node> | ||
151 | </node> | ||
152 | </node> | ||
153 | </soc> \ No newline at end of file | ||