pseq: Create phosphor-power-sequencer application
Create the initial version of the phosphor-power-sequencer application.
Update or create meson and README files to support.
Signed-off-by: Jim Wright <jlwright@us.ibm.com>
Change-Id: I385358cc601448a35b3aae9bfa1c6488f1512c59
diff --git a/README.md b/README.md
index 14e0899..77eb09d 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,9 @@
* cold-redundancy: Application that makes power supplies work in Cold
Redundancy mode and rotates them at intervals.
+* [phosphor-power-sequencer](phosphor-power-sequencer/README.md): Applications
+ for configuring and monitoring power sequencer and related devices that
+ support JSON-driven configuration.
* [phosphor-power-supply](phosphor-power-supply/README.md): Next generation
power supply monitoring application.
* [phosphor-regulators](phosphor-regulators/README.md): JSON-driven application
diff --git a/meson.build b/meson.build
index 3e0409e..4b356c7 100644
--- a/meson.build
+++ b/meson.build
@@ -128,6 +128,9 @@
if get_option('sequencer-monitor')
subdir('power-sequencer')
endif
+if get_option('sequencer-monitor-ng')
+ subdir('phosphor-power-sequencer')
+endif
if get_option('supply-monitor')
subdir('power-supply')
endif
diff --git a/meson_options.txt b/meson_options.txt
index 418320a..10710b2 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -60,6 +60,10 @@
description: 'Enable support for power sequencer control'
)
option(
+ 'sequencer-monitor-ng', type: 'boolean',
+ description: 'Enable support for power sequencer control utilizing JSON configuration and supporting multiple systems in a single build image'
+)
+option(
'utils', type: 'boolean',
description: 'Enable support for power supply utilities'
)
diff --git a/phosphor-power-sequencer/README.md b/phosphor-power-sequencer/README.md
new file mode 100644
index 0000000..0493e03
--- /dev/null
+++ b/phosphor-power-sequencer/README.md
@@ -0,0 +1,4 @@
+## Overview
+
+This directory contains applications for configuring and monitoring power
+sequencer and related devices that support JSON-driven configuration.
diff --git a/phosphor-power-sequencer/meson.build b/phosphor-power-sequencer/meson.build
new file mode 100644
index 0000000..19218ec
--- /dev/null
+++ b/phosphor-power-sequencer/meson.build
@@ -0,0 +1,2 @@
+subdir('src')
+
diff --git a/phosphor-power-sequencer/src/meson.build b/phosphor-power-sequencer/src/meson.build
new file mode 100644
index 0000000..d16083d
--- /dev/null
+++ b/phosphor-power-sequencer/src/meson.build
@@ -0,0 +1,7 @@
+phosphor_power_sequencer = executable(
+ 'phosphor-pseq-ucd90320-monitor',
+ 'ucd90320_monitor.cpp',
+ implicit_include_directories: false,
+ install: true
+)
+
diff --git a/phosphor-power-sequencer/src/ucd90320_monitor.cpp b/phosphor-power-sequencer/src/ucd90320_monitor.cpp
new file mode 100644
index 0000000..698b0d0
--- /dev/null
+++ b/phosphor-power-sequencer/src/ucd90320_monitor.cpp
@@ -0,0 +1,20 @@
+/**
+ * Copyright © 2021 IBM Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+int main()
+{
+ return 0;
+}