meta-yadro: add subtree
Alexander Filippov (4):
Initial commit
meta-yadro: Initial version of meta-vesnin layer
meta-yadro: Add readme files
meta-vesnin: Use VESNIN DTS from kernel repo
Change-Id: Ifa6f1ad3890af4800d27a76fb709e8f8d91295df
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-yadro/meta-vesnin/recipes-phosphor/occ/files/occ_sensor.yaml b/meta-yadro/meta-vesnin/recipes-phosphor/occ/files/occ_sensor.yaml
new file mode 100644
index 0000000..97fd3f7
--- /dev/null
+++ b/meta-yadro/meta-vesnin/recipes-phosphor/occ/files/occ_sensor.yaml
@@ -0,0 +1,12 @@
+- Instance: 0
+ SensorID: 0x08
+ SensorName: occ0
+- Instance: 1
+ SensorID: 0x09
+ SensorName: occ1
+- Instance: 6
+ SensorID: 0x06
+ SensorName: occ2
+- Instance: 7
+ SensorID: 0x07
+ SensorName: occ3
diff --git a/meta-yadro/meta-vesnin/recipes-phosphor/occ/openpower-occ-control_%.bbappend b/meta-yadro/meta-vesnin/recipes-phosphor/occ/openpower-occ-control_%.bbappend
new file mode 100644
index 0000000..6a7aa8c
--- /dev/null
+++ b/meta-yadro/meta-vesnin/recipes-phosphor/occ/openpower-occ-control_%.bbappend
@@ -0,0 +1 @@
+EXTRA_OECONF_append = " --enable-i2c-occ"
diff --git a/meta-yadro/meta-vesnin/recipes-phosphor/occ/vesnin-openpower-occ-control-config-native.bb b/meta-yadro/meta-vesnin/recipes-phosphor/occ/vesnin-openpower-occ-control-config-native.bb
new file mode 100644
index 0000000..2db6c36
--- /dev/null
+++ b/meta-yadro/meta-vesnin/recipes-phosphor/occ/vesnin-openpower-occ-control-config-native.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Vesnin OCC Control sensor IDs"
+PR = "r1"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${YADROBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
+
+inherit native
+inherit openpower-occ-control
+
+PROVIDES += "virtual/openpower-occ-control-config-native"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+SRC_URI += "file://occ_sensor.yaml"
+
+S = "${WORKDIR}"
+do_install() {
+ install -d ${YAML_DEST}/
+ install ${S}/occ_sensor.yaml ${YAML_DEST}/
+}