Hi Simon, On Wed, Jul 19, 2017 at 11:06 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 14 July 2017 at 05:55, Mario Six <mario....@gdsys.cc> wrote: >> Add driver for the IHS IO endpoint on IHS FPGAs. > > Would UCLASS_MAILBOX work for this? > > Or MISC? >
Hmm, we do need the enable_receive, disable_receive, set_address, data_available, and reset_status functions somehow, so mailbox is probably a bit restrictive. The misc uclass will always work, of course, but implementing all functionality with ioctl is a bit ugly as well. >> >> Signed-off-by: Mario Six <mario....@gdsys.cc> >> --- >> >> drivers/misc/Kconfig | 6 + >> drivers/misc/Makefile | 1 + >> drivers/misc/gdsys_ioep.c | 301 >> ++++++++++++++++++++++++++++++++++++++++++++++ >> include/dm/uclass-id.h | 1 + >> include/gdsys_ioep.h | 196 ++++++++++++++++++++++++++++++ >> 5 files changed, 505 insertions(+) >> create mode 100644 drivers/misc/gdsys_ioep.c >> create mode 100644 include/gdsys_ioep.h Best regards, Mario _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot