| /rk3399_rockchip-uboot/include/dm/ |
| H A D | of_access.h | 3cf4841077bc170e305243e4ba2aac4420b9fb55 Mon Jan 13 10:34:56 UTC 2020 Patrick Delaunay <patrick.delaunay@st.com> BACKPORT: dm: core: add ofnode and dev function to iterate on node property
Add functions to iterate on all property with livetree - dev_read_first_prop - dev_read_next_prop - dev_read_prop_by_prop and - ofnode_get_first_property - ofnode_get_next_property - ofnode_get_property_by_prop
And helper: dev_for_each_property
For example: struct ofprop property;
dev_for_each_property(property, config) { value = dev_read_prop_by_prop(&property, &propname, &len);
or:
for (res = ofnode_get_first_property(node, &property); !res; res = ofnode_get_next_property(&property)) { value = ofnode_get_property_by_prop(&property, &propname, &len); .... }
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Simon Glass <sjg@chromium.org> Change-Id: Idb339daab9dd50fc8e08c38d7de33b5238a69578 (cherry picked from commit ce891fcada6638c39a0de28f821cfa2b9406440c)
|
| H A D | ofnode.h | 3cf4841077bc170e305243e4ba2aac4420b9fb55 Mon Jan 13 10:34:56 UTC 2020 Patrick Delaunay <patrick.delaunay@st.com> BACKPORT: dm: core: add ofnode and dev function to iterate on node property
Add functions to iterate on all property with livetree - dev_read_first_prop - dev_read_next_prop - dev_read_prop_by_prop and - ofnode_get_first_property - ofnode_get_next_property - ofnode_get_property_by_prop
And helper: dev_for_each_property
For example: struct ofprop property;
dev_for_each_property(property, config) { value = dev_read_prop_by_prop(&property, &propname, &len);
or:
for (res = ofnode_get_first_property(node, &property); !res; res = ofnode_get_next_property(&property)) { value = ofnode_get_property_by_prop(&property, &propname, &len); .... }
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Simon Glass <sjg@chromium.org> Change-Id: Idb339daab9dd50fc8e08c38d7de33b5238a69578 (cherry picked from commit ce891fcada6638c39a0de28f821cfa2b9406440c)
|
| H A D | read.h | 3cf4841077bc170e305243e4ba2aac4420b9fb55 Mon Jan 13 10:34:56 UTC 2020 Patrick Delaunay <patrick.delaunay@st.com> BACKPORT: dm: core: add ofnode and dev function to iterate on node property
Add functions to iterate on all property with livetree - dev_read_first_prop - dev_read_next_prop - dev_read_prop_by_prop and - ofnode_get_first_property - ofnode_get_next_property - ofnode_get_property_by_prop
And helper: dev_for_each_property
For example: struct ofprop property;
dev_for_each_property(property, config) { value = dev_read_prop_by_prop(&property, &propname, &len);
or:
for (res = ofnode_get_first_property(node, &property); !res; res = ofnode_get_next_property(&property)) { value = ofnode_get_property_by_prop(&property, &propname, &len); .... }
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Simon Glass <sjg@chromium.org> Change-Id: Idb339daab9dd50fc8e08c38d7de33b5238a69578 (cherry picked from commit ce891fcada6638c39a0de28f821cfa2b9406440c)
|
| /rk3399_rockchip-uboot/drivers/core/ |
| H A D | of_access.c | 3cf4841077bc170e305243e4ba2aac4420b9fb55 Mon Jan 13 10:34:56 UTC 2020 Patrick Delaunay <patrick.delaunay@st.com> BACKPORT: dm: core: add ofnode and dev function to iterate on node property
Add functions to iterate on all property with livetree - dev_read_first_prop - dev_read_next_prop - dev_read_prop_by_prop and - ofnode_get_first_property - ofnode_get_next_property - ofnode_get_property_by_prop
And helper: dev_for_each_property
For example: struct ofprop property;
dev_for_each_property(property, config) { value = dev_read_prop_by_prop(&property, &propname, &len);
or:
for (res = ofnode_get_first_property(node, &property); !res; res = ofnode_get_next_property(&property)) { value = ofnode_get_property_by_prop(&property, &propname, &len); .... }
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Simon Glass <sjg@chromium.org> Change-Id: Idb339daab9dd50fc8e08c38d7de33b5238a69578 (cherry picked from commit ce891fcada6638c39a0de28f821cfa2b9406440c)
|
| H A D | read.c | 3cf4841077bc170e305243e4ba2aac4420b9fb55 Mon Jan 13 10:34:56 UTC 2020 Patrick Delaunay <patrick.delaunay@st.com> BACKPORT: dm: core: add ofnode and dev function to iterate on node property
Add functions to iterate on all property with livetree - dev_read_first_prop - dev_read_next_prop - dev_read_prop_by_prop and - ofnode_get_first_property - ofnode_get_next_property - ofnode_get_property_by_prop
And helper: dev_for_each_property
For example: struct ofprop property;
dev_for_each_property(property, config) { value = dev_read_prop_by_prop(&property, &propname, &len);
or:
for (res = ofnode_get_first_property(node, &property); !res; res = ofnode_get_next_property(&property)) { value = ofnode_get_property_by_prop(&property, &propname, &len); .... }
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Simon Glass <sjg@chromium.org> Change-Id: Idb339daab9dd50fc8e08c38d7de33b5238a69578 (cherry picked from commit ce891fcada6638c39a0de28f821cfa2b9406440c)
|
| H A D | ofnode.c | 3cf4841077bc170e305243e4ba2aac4420b9fb55 Mon Jan 13 10:34:56 UTC 2020 Patrick Delaunay <patrick.delaunay@st.com> BACKPORT: dm: core: add ofnode and dev function to iterate on node property
Add functions to iterate on all property with livetree - dev_read_first_prop - dev_read_next_prop - dev_read_prop_by_prop and - ofnode_get_first_property - ofnode_get_next_property - ofnode_get_property_by_prop
And helper: dev_for_each_property
For example: struct ofprop property;
dev_for_each_property(property, config) { value = dev_read_prop_by_prop(&property, &propname, &len);
or:
for (res = ofnode_get_first_property(node, &property); !res; res = ofnode_get_next_property(&property)) { value = ofnode_get_property_by_prop(&property, &propname, &len); .... }
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Simon Glass <sjg@chromium.org> Change-Id: Idb339daab9dd50fc8e08c38d7de33b5238a69578 (cherry picked from commit ce891fcada6638c39a0de28f821cfa2b9406440c)
|