i2c tools better naming scheme
[cr816-sim.git] / tools / bq_boot_getversion
blob8c4d204ed4bde686f3569086ab12a4431863e62a
1 #!/bin/sh
2 #get ROM version
4 . ./i2c_config.sh
6 smb_init
7 smb_write 1 0xd
8 smb_read 2
9 TMP=$(smb_commit)
10 LO=${TMP%% *}
11 HI=${TMP#* }
13 printf "%x.%02x\n" $HI $LO