This patch introduces a new helper routine - fwnode_iomap(), which allows to map the memory mapped IO for a given device node. This implementation does not cover the ACPI case and may be expanded in the future. The main purpose here is to be able to develop resource provider agnostic drivers.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -122,6 +122,8 @@ void fwnode_handle_put(struct fwnode_handle *fwnode); · 121 unmodified lines | |||
| 122 | 122 | ||
| 123 | int fwnode_irq_get(const struct fwnode_handle *fwnode, unsigned int index); | 123 | int fwnode_irq_get(const struct fwnode_handle *fwnode, unsigned int index); |
| 124 | 124 | ||
| 125 | void __iomem *fwnode_iomap(struct fwnode_handle *fwnode, int index); | ||
| 126 | |||
| 125 | unsigned int device_get_child_node_count(struct device *dev); | 127 | unsigned int device_get_child_node_count(struct device *dev); |
| 126 | 128 | ||
| 127 | static inline bool device_property_read_bool(struct device *dev, | 129 | static inline bool device_property_read_bool(struct device *dev, |