diff options
Diffstat (limited to 'meta-yadro/meta-vesnin/recipes-phosphor/occ')
3 files changed, 31 insertions, 0 deletions
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 000000000..97fd3f76c --- /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 000000000..6a7aa8c5e --- /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 000000000..2db6c3661 --- /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}/ +} |