[U-Boot] [PATCH 1/3] drivers: Add FPGA register map uclass

Simon Glass sjg at chromium.org
Fri Mar 30 08:40:50 UTC 2018


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.

Regards,
Simon


More information about the U-Boot mailing list