From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sun, 8 Dec 2019 10:53:04 +0800 Subject: [PATCH v6 021/102] x86: sandbox: Add a PMC emulator and test In-Reply-To: <20191206213936.v6.21.Iaa0d3c4022768bebfb60bf7d0cddbdd060bc8f67@changeid> References: <20191207044315.51770-1-sjg@chromium.org> <20191206213936.v6.21.Iaa0d3c4022768bebfb60bf7d0cddbdd060bc8f67@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Dec 7, 2019 at 12:47 PM Simon Glass wrote: > > Add a simple PMC for sandbox to permit tests to run. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > 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!