Add d-bus interfaces for Settings
Resolves openbmc/openbmc#1486.
Change-Id: I377f40516a6a0317bb4b5d811704288048c83cc8
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/xyz/openbmc_project/Control/Boot/Mode.interface.yaml b/xyz/openbmc_project/Control/Boot/Mode.interface.yaml
new file mode 100644
index 0000000..879ff76
--- /dev/null
+++ b/xyz/openbmc_project/Control/Boot/Mode.interface.yaml
@@ -0,0 +1,24 @@
+description: >
+ Implement to set boot mode. The mode typically identifies
+ the end target of the boot process.
+
+properties:
+ - name: BootMode
+ type: enum[self.Modes]
+ description: >
+ The desired boot mode.
+
+enumerations:
+ - name: Modes
+ description: >
+ Possible boot modes.
+ values:
+ - name: Regular
+ description: >
+ The regular/default mode, such as boot to an OS.
+ - name: Safe
+ description: >
+ Boot to a diagnostic/trouble-shooting mode.
+ - name: Setup
+ description: >
+ Boot to BIOS setup.
diff --git a/xyz/openbmc_project/Control/Boot/RebootPolicy.interface.yaml b/xyz/openbmc_project/Control/Boot/RebootPolicy.interface.yaml
new file mode 100644
index 0000000..06f2faa
--- /dev/null
+++ b/xyz/openbmc_project/Control/Boot/RebootPolicy.interface.yaml
@@ -0,0 +1,8 @@
+description: >
+ Implement to set common reboot policies.
+
+properties:
+ - name: AutoReboot
+ type: boolean
+ description: >
+ Whether or not auto reboot is enabled.
diff --git a/xyz/openbmc_project/Control/Boot/Source.interface.yaml b/xyz/openbmc_project/Control/Boot/Source.interface.yaml
new file mode 100644
index 0000000..ea811bd
--- /dev/null
+++ b/xyz/openbmc_project/Control/Boot/Source.interface.yaml
@@ -0,0 +1,26 @@
+description: >
+ Implement to designate the source of a boot image.
+
+properties:
+ - name: BootSource
+ type: enum[self.Sources]
+ description: >
+ The desired boot image source.
+
+enumerations:
+ - name: Sources
+ description: >
+ Possible sources of a boot image.
+ values:
+ - name: Disk
+ description: >
+ Boot from the local hard disk.
+ - name: ExternalMedia
+ description: >
+ Boot from CD/DVD/USB, etc.
+ - name: Network
+ description: >
+ Boot from a remote source over a network.
+ - name: Default
+ description: >
+ Boot from an implementation defined source.