diff options
| author | Koen Kooi <koen@dominion.thruhere.net> | 2012-05-18 16:11:39 +0200 |
|---|---|---|
| committer | Denys Dmytriyenko <denys@ti.com> | 2012-05-21 16:53:36 -0400 |
| commit | 185d6216110354cca80f27b76d78a46336dadfc1 (patch) | |
| tree | 005fc668cc1c6293e0971408647f32dc89889823 /recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh | |
| parent | a9eca3f6f9258cba5f30b9e9bbb0e31bc5da0d77 (diff) | |
| download | meta-ti-185d6216110354cca80f27b76d78a46336dadfc1.tar.gz | |
beaglebone-capes: add a powerdown script as well
The current powerdown script disables the PMIC backlight
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh')
| -rwxr-xr-x | recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh b/recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh new file mode 100755 index 00000000..a08498d7 --- /dev/null +++ b/recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh | |||
| @@ -0,0 +1,11 @@ | |||
| 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 off backlight for LCD3 cape" | ||
| 7 | i2cset -f -y 1 0x24 0x07 0x00;; | ||
| 8 | *) | ||
| 9 | echo "unknown cape: $PARTNUMBER";; | ||
| 10 | esac | ||
| 11 | done | ||
