Hi Mario, On 28 March 2018 at 20:37, Mario Six <mario....@gdsys.cc> wrote: > The FPGA (as a device) and the register map supplied by a FPGA are two > different entities. There are U-Boot drivers for the former, but not for > the later. > > Add a uclass that makes it possible to read from and write to FPGA > memory maps. The interface provided emulates the PCI interface, with one > function for reading/writing plus a size parameter. > > Signed-off-by: Mario Six <mario....@gdsys.cc> > --- > drivers/Kconfig | 2 + > drivers/Makefile | 1 + > drivers/fpgamap/Kconfig | 9 +++ > drivers/fpgamap/Makefile | 8 +++ > drivers/fpgamap/fpgamap-uclass.c | 53 ++++++++++++++++ > include/dm/uclass-id.h | 1 + > include/fpgamap.h | 131 > +++++++++++++++++++++++++++++++++++++++ > 7 files changed, 205 insertions(+) > create mode 100644 drivers/fpgamap/Kconfig > create mode 100644 drivers/fpgamap/Makefile > create mode 100644 drivers/fpgamap/fpgamap-uclass.c > create mode 100644 include/fpgamap.h >
Could we use regmap for this? That uclass really could use being enhanced to do the things you do here. Regards, Simon _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot