diff options
| author | Tom Rini <[email protected]> | 2021-06-24 11:11:13 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-06-24 11:11:13 -0400 |
| commit | 67edf2553f15e5148efca213af3f41cef3410680 (patch) | |
| tree | c362fd9dc9446add0e24fd4d843dee32af2f299a /include/dm/ofnode.h | |
| parent | 95eca8612b7ba790dfe5d72ce3269ef3a7cdae84 (diff) | |
| parent | e41a2bc6b87397ef0aeda4132a8227d164cd592b (diff) | |
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-spi into next
- SPI NOT OF partitions (Marek BehĂșn)
- Macronic SPI NAND (Jaime Liao)
- Macronix MX66UW2G345G SPI NOR (zhengxun)
Diffstat (limited to 'include/dm/ofnode.h')
| -rw-r--r-- | include/dm/ofnode.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index 8a69fd87da7..3da05d8b217 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -459,6 +459,16 @@ ofnode ofnode_get_parent(ofnode node); const char *ofnode_get_name(ofnode node); /** + * ofnode_get_path() - get the full path of a node + * + * @node: valid node to look up + * @buf: buffer to write the node path into + * @buflen: buffer size + * @return 0 if OK, -ve on error + */ +int ofnode_get_path(ofnode node, char *buf, int buflen); + +/** * ofnode_get_by_phandle() - get ofnode from phandle * * @phandle: phandle to look up @@ -490,6 +500,23 @@ phys_addr_t ofnode_get_addr_size_index(ofnode node, int index, fdt_size_t *size); /** + * ofnode_get_addr_size_index_notrans() - get an address/size from a node + * based on index, without address + * translation + * + * This reads the register address/size from a node based on index. + * The resulting address is not translated. Useful for example for on-disk + * addresses. + * + * @node: node to read from + * @index: Index of address to read (0 for first) + * @size: Pointer to size of the address + * @return address, or FDT_ADDR_T_NONE if not present or invalid + */ +phys_addr_t ofnode_get_addr_size_index_notrans(ofnode node, int index, + fdt_size_t *size); + +/** * ofnode_get_addr_index() - get an address from a node * * This reads the register address from a node |
