[U-Boot] [PATCH v2 03/18] dm: Add a No-op uclass
Simon Glass
sjg at chromium.org
Sat May 18 16:08:25 UTC 2019
On Mon, 13 May 2019 at 08:30, Jean-Jacques Hiblot <jjhiblot at ti.com> wrote:
>
> This uclass is intended for devices that do not need any features from the
> uclass, including binding children.
> This will typically be used by devices that are used to bind child devices
> but do not use dm_scan_fdt_dev() to do it. That is for example the case of
> several USB wrappers that have 2 child devices (1 for device and 1 for
> host) but bind only one at a any given time.
>
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot at ti.com>
>
> ---
>
> Changes in v2:
> Add a test for the NOP uclass
>
> arch/sandbox/dts/test.dts | 12 +++++++
> drivers/core/uclass.c | 5 +++
> include/dm/uclass-id.h | 1 +
> test/dm/Makefile | 1 +
> test/dm/nop.c | 73 +++++++++++++++++++++++++++++++++++++++
> 5 files changed, 92 insertions(+)
> create mode 100644 test/dm/nop.c
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list