[U-Boot] [PATCH] Add a power domain framework/uclass

Simon Glass sjg at chromium.org
Fri Jul 15 06:17:12 CEST 2016


Hi Stephen,

On 13 July 2016 at 13:45, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> Many SoCs allow power to be applied to or removed from portions of the SoC
> (power domains). This may be used to save power. This API provides the
> means to control such power management hardware.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
> I'll soon(?) send a Tegra186 power domain driver that implements this
> new subsystem. I'm waiting for all the relevant DT bindings to be
> reviewed as kernel patches first though.
>
>  Makefile                                         |   1 +
>  arch/sandbox/dts/test.dts                        |  10 ++
>  arch/sandbox/include/asm/power-domain.h          |  21 ++++
>  configs/sandbox_defconfig                        |   2 +
>  drivers/power/Kconfig                            |   2 +
>  drivers/power/domain/Kconfig                     |  20 ++++
>  drivers/power/domain/Makefile                    |   7 ++
>  drivers/power/domain/power-domain-uclass.c       | 112 +++++++++++++++++++++
>  drivers/power/domain/sandbox-power-domain-test.c |  55 +++++++++++
>  drivers/power/domain/sandbox-power-domain.c      | 104 ++++++++++++++++++++
>  include/dm/uclass-id.h                           |   1 +
>  include/power-domain-uclass.h                    |  82 ++++++++++++++++
>  include/power-domain.h                           | 120 +++++++++++++++++++++++
>  test/dm/Makefile                                 |   1 +
>  test/dm/power-domain.c                           |  46 +++++++++
>  15 files changed, 584 insertions(+)
>  create mode 100644 arch/sandbox/include/asm/power-domain.h
>  create mode 100644 drivers/power/domain/Kconfig
>  create mode 100644 drivers/power/domain/Makefile
>  create mode 100644 drivers/power/domain/power-domain-uclass.c
>  create mode 100644 drivers/power/domain/sandbox-power-domain-test.c
>  create mode 100644 drivers/power/domain/sandbox-power-domain.c
>  create mode 100644 include/power-domain-uclass.h
>  create mode 100644 include/power-domain.h
>  create mode 100644 test/dm/power-domain.c

Acked-by: Simon Glass <sjg at chromium.org>

Could you add a command (with list/on/off subcommands) to control this also?

Regards,
Simon


More information about the U-Boot mailing list