x86: sandbox: Add a PMC emulator and test
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:41:54 +0000 (21:41 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:11 +0000 (11:44 +0800)
commit3b65ee34b908ce0c495c25987f5feb37ac163eab
treeba7a13fb9a4254844237c545e40a4068dba0ff84
parent6c6d88e142e8714ed88d051c524036ff17278390
x86: sandbox: Add a PMC emulator and test

Add a simple PMC for sandbox to permit tests to run.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
14 files changed:
arch/Kconfig
arch/sandbox/dts/sandbox.dtsi
arch/sandbox/dts/test.dts
arch/sandbox/include/asm/test.h
cmd/Kconfig
cmd/Makefile
cmd/pmc.c [new file with mode: 0644]
drivers/Makefile
drivers/power/acpi_pmc/Kconfig
drivers/power/acpi_pmc/Makefile
drivers/power/acpi_pmc/pmc_emul.c [new file with mode: 0644]
drivers/power/acpi_pmc/sandbox.c [new file with mode: 0644]
test/dm/Makefile
test/dm/pmc.c [new file with mode: 0644]