diff options
| author | Denys Dmytriyenko <denys@konsulko.com> | 2022-02-22 04:13:45 +0000 |
|---|---|---|
| committer | Ryan Eatmon <reatmon@ti.com> | 2022-02-22 12:01:38 -0600 |
| commit | 20f3191aeb592dd889eeaf96a31526297de95306 (patch) | |
| tree | aec879b9855ff8a54df171ee808e30ac26f1c80b /recipes-ti/beagleboard/beaglebone-capes/cape.sh | |
| parent | bea4fd2c401af05b866bd6af1c4e501d31b7b420 (diff) | |
| download | meta-ti-20f3191aeb592dd889eeaf96a31526297de95306.tar.gz | |
meta-ti: create a sub-layer meta-ti-bsp from existing content
Extra sub-layers will be created next and relevant content moved across them.
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'recipes-ti/beagleboard/beaglebone-capes/cape.sh')
| -rwxr-xr-x | recipes-ti/beagleboard/beaglebone-capes/cape.sh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/recipes-ti/beagleboard/beaglebone-capes/cape.sh b/recipes-ti/beagleboard/beaglebone-capes/cape.sh deleted file mode 100755 index c279349d..00000000 --- a/recipes-ti/beagleboard/beaglebone-capes/cape.sh +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | for eeprom in /sys/bus/i2c/devices/3-005*/eeprom ; do | ||
| 3 | PARTNUMBER=$(hexdump -e '8/1 "%c"' $eeprom -s 58 -n16) | ||
| 4 | case $PARTNUMBER in | ||
| 5 | "BB-BONE-LCD3-01.") | ||
| 6 | echo "Turning on backlight for LCD3 cape" | ||
| 7 | i2cset -f -y 1 0x24 0x07 0x09 | ||
| 8 | i2cset -f -y 1 0x24 0x08 0x60;; | ||
| 9 | "BB-BONE-LCD4"*) | ||
| 10 | echo "Turning on backlight for LCD4 cape" | ||
| 11 | i2cset -f -y 1 0x24 0x07 0x09 | ||
| 12 | i2cset -f -y 1 0x24 0x08 0x60;; | ||
| 13 | "BB-BONE-WTHR-01.") | ||
| 14 | echo "Initializing I2C devices" | ||
| 15 | echo sht21 0x40 > /sys/class/i2c-adapter/i2c-3/new_device | ||
| 16 | echo bmp085 0x77 > /sys/class/i2c-adapter/i2c-3/new_device | ||
| 17 | echo tsl2550 0x39 > /sys/class/i2c-adapter/i2c-3/new_device | ||
| 18 | echo 1 > /sys/bus/i2c/devices/3-0039/operating_mode;; | ||
| 19 | *) | ||
| 20 | echo "unknown cape: $PARTNUMBER";; | ||
| 21 | esac | ||
| 22 | done | ||
