espi-control: Add program to disable eSPI
This commit introduces a program that can disable and re-enable eSPI on
a Nuvoton BMC.
Tested:
- Ran "npcm7xx_espi_control -d", and confirmed that IPMI stopped
working.
- Ran "npcm7xx_espi_control", and confirmed that IPMI started working
again.
Change-Id: I9637ac4d84b82931f107946ff53e7ef16a965d25
Signed-off-by: John Wedig <johnwedig@google.com>
diff --git a/subprojects/espi-control/meson.build b/subprojects/espi-control/meson.build
new file mode 100644
index 0000000..9e45228
--- /dev/null
+++ b/subprojects/espi-control/meson.build
@@ -0,0 +1,23 @@
+project(
+ 'espi_control',
+ 'cpp',
+ version: '0.1',
+ meson_version: '>=1.1.1',
+ default_options: [
+ 'warning_level=3',
+ 'werror=true',
+ 'cpp_std=c++23',
+ ],
+)
+
+executable(
+ 'npcm7xx-espi-control',
+ 'npcm7xx_espi_control.cpp',
+ implicit_include_directories: false,
+ dependencies:
+ [
+ dependency('stdplus'),
+ ],
+ install: true,
+ install_dir: get_option('libexecdir'),
+)