Searched hist:"34 deb103dd636294cfbfbe3adbd5706db9a7ef2e" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/kernel/ |
| H A D | dt.c | 34deb103dd636294cfbfbe3adbd5706db9a7ef2e Mon Oct 02 12:25:59 UTC 2017 Peng Fan <peng.fan@nxp.com> core: dt: fix getting address and size
According to ePAPR spec.
" The #address-cells and #size-cells properties may be used in any device node that has children in the device tree hierarchy and describes how child device nodes should be addressed. The #address-cells property defines the number of <u32> cells used to encode the address field in a child node’s reg property. The #size-cells property defines the number of <u32> cells used to encode the size field in a child node’s reg property.
The #address-cells and #size-cells properties are not inherited from ancestors in the device tree. They shall be explicitly defined.
An ePAPR-compliant boot program shall supply #address-cells and #size-cells on all nodes that have children.
If missing, a client program should assume a default value of 2 for
An ePAPR-compliant boot program shall supply #address-cells and #size-cells on all nodes that have children. "
So need to use the parent's address-cells and size-cells property.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
|