[PATCH v6 021/102] x86: sandbox: Add a PMC emulator and test
Bin Meng
bmeng.cn at gmail.com
Sun Dec 8 03:53:04 CET 2019
On Sat, Dec 7, 2019 at 12:47 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>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
> Changes in v6: None
> 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 | 3 +
> arch/sandbox/dts/sandbox.dtsi | 14 ++
> arch/sandbox/dts/test.dts | 14 ++
> arch/sandbox/include/asm/test.h | 1 +
> cmd/Kconfig | 8 +
> cmd/Makefile | 1 +
> cmd/pmc.c | 81 ++++++++++
> 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 ++++
> 14 files changed, 510 insertions(+)
> create mode 100644 cmd/pmc.c
> 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
>
applied to u-boot-x86/next, thanks!
More information about the U-Boot
mailing list