[U-Boot] [PATCH 1/3] drivers: Add FPGA register map uclass
Mario Six
mario.six at gdsys.cc
Wed Apr 11 06:23:54 UTC 2018
Hi Simon,
On Fri, Mar 30, 2018 at 10:40 AM, Simon Glass <sjg at chromium.org> wrote:
> Hi Mario,
>
> On 28 March 2018 at 20:37, Mario Six <mario.six at 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.six at 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.
>
OK, that should work, I'll move the functionality over to regmap then.
> Regards,
> Simon
>
Best regards,
Mario
More information about the U-Boot
mailing list