[U-Boot] [PATCH v5 020/101] x86: sandbox: Add a PMC emulator and test

Bin Meng bmeng.cn at gmail.com
Tue Nov 26 07:07:45 UTC 2019


On Mon, Nov 25, 2019 at 12:11 PM Simon Glass <sjg at chromium.org> wrote:
>
> Add a simple PMC for sandbox to permit tests to run.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v5: None
> Changes in v4: None
> Changes in v3:
> - Rename power-mgr uclass to acpi-pmc
> - Tidy up Makefile rules to reduce duplication
>
> Changes in v2: None
>
>  arch/Kconfig                      |   2 +
>  arch/sandbox/dts/sandbox.dtsi     |  14 ++
>  arch/sandbox/dts/test.dts         |  14 ++
>  arch/sandbox/include/asm/test.h   |   1 +
>  drivers/Makefile                  |   1 +
>  drivers/power/acpi_pmc/Kconfig    |   9 ++
>  drivers/power/acpi_pmc/Makefile   |   1 +
>  drivers/power/acpi_pmc/pmc_emul.c | 246 ++++++++++++++++++++++++++++++
>  drivers/power/acpi_pmc/sandbox.c  |  97 ++++++++++++
>  test/dm/Makefile                  |   1 +
>  test/dm/pmc.c                     |  33 ++++
>  11 files changed, 419 insertions(+)
>  create mode 100644 drivers/power/acpi_pmc/pmc_emul.c
>  create mode 100644 drivers/power/acpi_pmc/sandbox.c
>  create mode 100644 test/dm/pmc.c
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list