1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-06-05 02:11:00 +00:00

beaglebone-capes: add support for weatherstation cape

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Koen Kooi
2012-06-07 17:40:44 +02:00
committed by Denys Dmytriyenko
parent c5e5c304b8
commit 0309200539
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -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
@@ -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