i2c tools better naming scheme
[cr816-sim.git] / tools / bq_boot_data_checksum
blob670b17f84ba40d82b147844e79bd0616a53c30ad
1 #!/bin/sh
2 #get data flash checksum 0x4000-0x47e0
4 . ./i2c_config.sh
6 smb_init
7 smb_write 1 0xe
8 smb_read 2
9 TMP=$(smb_commit)
10 LO=${TMP%% *}
11 HI=${TMP#* }
13 printf "0x%02x%02x\n" $HI $LO