meta-ampere: mtjade: bind smpro driver
Add script to bind smpro driver when the Host is available but it is not
bound before. This helps applications that use smpro driver works.
Tested:
1. Do A/C the system.
2. Turn ON the Host
3. Check if smpro nodes are available
# ls /sys/bus/i2c/drivers/smpro-core/
2-004e 2-004f bind uevent unbind
Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Change-Id: I6f96dc1f78ab77dae29bdc266949dcf7845de68c
diff --git a/meta-ampere/meta-jade/recipes-ampere/platform/ampere-utils.bbappend b/meta-ampere/meta-jade/recipes-ampere/platform/ampere-utils.bbappend
index d3f4f1a..e3a63f1 100644
--- a/meta-ampere/meta-jade/recipes-ampere/platform/ampere-utils.bbappend
+++ b/meta-ampere/meta-jade/recipes-ampere/platform/ampere-utils.bbappend
@@ -6,6 +6,7 @@
file://ampere_power_util.sh \
file://ampere_firmware_upgrade.sh \
file://ampere_flash_bios.sh \
+ file://ampere_driver_binder.sh \
"
do_install:append() {
@@ -15,4 +16,5 @@
install -m 0755 ${WORKDIR}/ampere_power_util.sh ${D}/${sbindir}/
install -m 0755 ${WORKDIR}/ampere_firmware_upgrade.sh ${D}/${sbindir}/
install -m 0755 ${WORKDIR}/ampere_flash_bios.sh ${D}/${sbindir}/
+ install -m 0755 ${WORKDIR}/ampere_driver_binder.sh ${D}/${sbindir}/
}