mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
xen/arm, device-tree: Make static-mem use #{address,size}-cells
In order to keep consistency in the device tree binding, there is
no need for static memory allocation feature to define a specific
set of address and size cells for "xen,static-mem" property.
Therefore, this commit reuses the regular #{address,size}-cells
for parsing the device tree "xen,static-mem" property. Update
the documentation accordingly.
Also, take the chance to remove the unnecessary "#address-cells"
and "#size-cells" in the domU1 node of the device tree to only
emphasize the related part that the example is showing.
Signed-off-by: Henry Wang <Henry.Wang@arm.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
1 parent
cc80e2bab0
commit
942ac5fc15
4 files changed
+10
-29
No files matched your search
@@ -350,8 +350,8 @@ areas are pre-defined by configuration using physical address ranges.
|
||||
|
||||
Memory can be statically allocated to a domain using the property "xen,static-
|
||||
mem" defined in the domain configuration. The number of cells for the address
|
||||
and the size must be defined using respectively the properties
|
||||
"#xen,static-mem-address-cells" and "#xen,static-mem-size-cells".
|
||||
and the size must be defined respectively by the parent node properties
|
||||
"#address-cells" and "#size-cells".
|
||||
|
||||
The property 'memory' is still needed and should match the amount of memory
|
||||
given to the guest. Currently, it either comes from static memory or lets Xen
|
||||
@@ -366,14 +366,13 @@ device-tree:
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
#address-cells = <0x1>;
|
||||
#size-cells = <0x1>;
|
||||
...
|
||||
domU1 {
|
||||
compatible = "xen,domain";
|
||||
#address-cells = <0x2>;
|
||||
#size-cells = <0x2>;
|
||||
cpus = <2>;
|
||||
memory = <0x0 0x80000>;
|
||||
#xen,static-mem-address-cells = <0x1>;
|
||||
#xen,static-mem-size-cells = <0x1>;
|
||||
xen,static-mem = <0x30000000 0x20000000>;
|
||||
...
|
||||
};
|
||||
|
||||
@@ -33,14 +33,13 @@ on static allocation in the device-tree:
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
#address-cells = <0x1>;
|
||||
#size-cells = <0x1>;
|
||||
...
|
||||
domU1 {
|
||||
compatible = "xen,domain";
|
||||
#address-cells = <0x2>;
|
||||
#size-cells = <0x2>;
|
||||
cpus = <2>;
|
||||
memory = <0x0 0x80000>;
|
||||
#xen,static-mem-address-cells = <0x1>;
|
||||
#xen,static-mem-size-cells = <0x1>;
|
||||
xen,static-mem = <0x30000000 0x20000000>;
|
||||
direct-map;
|
||||
...
|
||||
|
||||