Module: meta-ti
Branch: master
Commit: 03092005396f548c401ebbea5bf670c31614992a
URL:    
http://arago-project.org/git/meta-ti.git?a=commit;h=03092005396f548c401ebbea5bf670c31614992a

Author: Koen Kooi <[email protected]>
Date:   Thu Jun  7 17:40:44 2012 +0200

beaglebone-capes: add support for weatherstation cape

Signed-off-by: Koen Kooi <[email protected]>
Signed-off-by: Denys Dmytriyenko <[email protected]>

---

 recipes-ti/beagleboard/beaglebone-capes.bb      |    2 +-
 recipes-ti/beagleboard/beaglebone-capes/cape.sh |    6 ++++++
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/recipes-ti/beagleboard/beaglebone-capes.bb 
b/recipes-ti/beagleboard/beaglebone-capes.bb
index 2a9f1fb..b463a89 100644
--- a/recipes-ti/beagleboard/beaglebone-capes.bb
+++ b/recipes-ti/beagleboard/beaglebone-capes.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Userspace setup for beaglebone capes"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = 
"file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
 
-PR = "r2"
+PR = "r3"
 
 inherit allarch
 
diff --git a/recipes-ti/beagleboard/beaglebone-capes/cape.sh 
b/recipes-ti/beagleboard/beaglebone-capes/cape.sh
index 61240a5..566cdf5 100755
--- a/recipes-ti/beagleboard/beaglebone-capes/cape.sh
+++ b/recipes-ti/beagleboard/beaglebone-capes/cape.sh
@@ -10,6 +10,12 @@ for eeprom in /sys/bus/i2c/devices/3-005*/eeprom ; do
                                echo "Turning on backlight for LCD4 cape"
                                i2cset -f -y 1 0x24 0x07 0x09
                                i2cset -f -y 1 0x24 0x08 0x60;;
+               "BB-BONE-WTHR-01.")
+                               echo "Initializing I2C devices"
+                               echo sht21 0x40 > 
/sys/class/i2c-adapter/i2c-3/new_device
+                               echo bmp085 0x77 > 
/sys/class/i2c-adapter/i2c-3/new_device
+                               echo tsl2550 0x39 > 
/sys/class/i2c-adapter/i2c-3/new_device
+                               echo 1 > 
/sys/bus/i2c/devices/3-0039/operating_mode;;
                *)
                                echo "unknown cape: $PARTNUMBER";;
        esac

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

Reply via email to