[U-Boot] [PATCH 39/51] drivers: Add gdsys_ioep driver

Mario Six mario.six at gdsys.cc
Tue Jul 25 11:49:55 UTC 2017


Hi Simon,

On Wed, Jul 19, 2017 at 11:06 AM, Simon Glass <sjg at chromium.org> wrote:
> Hi Mario,
>
> On 14 July 2017 at 05:55, Mario Six <mario.six at 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.six at 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


More information about the U-Boot mailing list