aboutsummaryrefslogtreecommitdiffstats
path: root/host/apps
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-04-29 05:26:29 +0000
committerPhilip Balister <philip@opensdr.com>2010-04-29 05:26:29 +0000
commit2de179640be9d897a63f7423f6e04399394abb8b (patch)
tree20efc22dbd798b9fd43754fd6d88de627217e282 /host/apps
parentf2454f90023552c00b5b25aca4e8eaa8d46c0751 (diff)
downloaduhd-2de179640be9d897a63f7423f6e04399394abb8b.tar.gz
uhd-2de179640be9d897a63f7423f6e04399394abb8b.tar.bz2
uhd-2de179640be9d897a63f7423f6e04399394abb8b.zip
Add script to setup board id info in eeprom.
Diffstat (limited to 'host/apps')
-rwxr-xr-xhost/apps/omap_debug/setup-board-id-eeprom.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/host/apps/omap_debug/setup-board-id-eeprom.sh b/host/apps/omap_debug/setup-board-id-eeprom.sh
new file mode 100755
index 000000000..4dba1cce5
--- /dev/null
+++ b/host/apps/omap_debug/setup-board-id-eeprom.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+i2cset -y 3 0x51 0x00 0x00
+i2cset -y 3 0x51 0x01 0x03
+i2cset -y 3 0x51 0x02 0x00
+i2cset -y 3 0x51 0x03 0x01
+i2cset -y 3 0x51 0x04 0x01
+i2cset -y 3 0x51 0x05 0x00
+i2cset -y 3 0x51 0x06 0x00
+
+i2cget -y 3 0x51 0 b
+i2cget -y 3 0x51 1 b
+i2cget -y 3 0x51 2 b
+i2cget -y 3 0x51 3 b
+i2cget -y 3 0x51 4 b
+i2cget -y 3 0x51 5 b
+i2cget -y 3 0x51 6 b