Closed asm2750 closed 6 years ago
Should be helpful for FPGA based and other embedded systems. Most custom peripherals are accessed through a base address already but the device tree that gets generated by tools tend to not use unique names for the field that UIO uses making it hard to know if the correct peripheral is being used.
Looks good, but please fold the changes to one commit and don't use camelcase for variable names.
Ah ok, so just change the variable names and submit it as one pull request then?
Added a helper function that searches the memory map members of each UIO instance based on a given base address and returns the first UIO info structure that has the matching base address.