hc
2023-11-06 9df731a176aab8e03b984b681b1bea01ccff6644
u-boot/include/dm/fdtaddr.h
....@@ -35,6 +35,18 @@
3535 void *devfdt_get_addr_ptr(struct udevice *dev);
3636
3737 /**
38
+ * devfdt_remap_addr_index() - Return indexed pointer to the memory-mapped
39
+ * I/O address of the reg property of a device
40
+ * @index: the 'reg' property can hold a list of <addr, size> pairs
41
+ * and @index is used to select which one is required
42
+ *
43
+ * @dev: Pointer to a device
44
+ *
45
+ * Return: Pointer to addr, or NULL if there is no such property
46
+ */
47
+void *devfdt_remap_addr_index(struct udevice *dev, int index);
48
+
49
+/**
3850 * devfdt_map_physmem() - Read device address from reg property of the
3951 * device node and map the address into CPU address
4052 * space.