[U-Boot] [PATCH 33/51] drivers: Add transmitter uclass

Simon Glass sjg at chromium.org
Wed Jul 19 09:05:57 UTC 2017


Hi Mario,

On 14 July 2017 at 05:55, Mario Six <mario.six at gdsys.cc> wrote:
> This patch adds a simple transmitter uclass meant for DVI or DisplayPort
> transmitters. The only driver functionality implemented are power_on and
> power_off methods for powering the transmitter device on and off,
> respectively.

Could we use UCLASS_DISPLAY for this? We are using that for things
like DisplayPort and HDMI.

If so you could add any missing operation and move your tests to that?

>
> Signed-off-by: Mario Six <mario.six at gdsys.cc>
> ---
>
>  arch/sandbox/dts/sandbox.dts              |  4 ++
>  arch/sandbox/dts/test.dts                 |  4 ++
>  configs/sandbox_defconfig                 |  2 +
>  drivers/Kconfig                           |  2 +
>  drivers/Makefile                          |  1 +
>  drivers/transmitter/Kconfig               | 16 +++++++
>  drivers/transmitter/Makefile              |  9 ++++
>  drivers/transmitter/sandbox_transmitter.c | 74 +++++++++++++++++++++++++++++++
>  drivers/transmitter/transmitter-uclass.c  | 36 +++++++++++++++
>  include/dm/uclass-id.h                    |  1 +
>  include/transmitter.h                     | 49 ++++++++++++++++++++
>  test/dm/Makefile                          |  1 +
>  test/dm/transmitter.c                     | 31 +++++++++++++
>  13 files changed, 230 insertions(+)
>  create mode 100644 drivers/transmitter/Kconfig
>  create mode 100644 drivers/transmitter/Makefile
>  create mode 100644 drivers/transmitter/sandbox_transmitter.c
>  create mode 100644 drivers/transmitter/transmitter-uclass.c
>  create mode 100644 include/transmitter.h
>  create mode 100644 test/dm/transmitter.c
>

Regards,
Simon


More information about the U-Boot mailing list