blob: 51d3a9aa8ea2369c0a2b9edc83af1301784f067a [file] [log] [blame]
Matt Spinlerd4cf3a32016-12-20 10:59:13 -06001#!/bin/sh
2
3i2cset -y 4 0x12 0x2E 0x23 b # VDD/VCS 0
4i2cset -y 4 0x13 0x2E 0x23 b # VDN 0
5i2cset -y 5 0x12 0x2E 0x23 b # VDD/VCS 1
6i2cset -y 5 0x13 0x2E 0x23 b # VDN 1
7
Andrew Geissler7e9e9f02017-07-28 15:55:06 -05008# A side VDDR - set to 1.23V
9i2cset -y 4 0x71 0x00 0x01
10i2cset -y 4 0x71 0x21 0x3B 0x01 i
11i2cset -y 4 0x71 0x00 0x00
12
13# B side VDDR - set to 1.23V
14i2cset -y 5 0x71 0x00 0x01
15i2cset -y 5 0x71 0x21 0x3B 0x01 i
16i2cset -y 5 0x71 0x00 0x00
Andrew Geissler7e1ed0c2017-07-28 16:07:27 -050017
18# VDN A - PGOOD_ON threshold
19i2cset -y 4 0x71 0x00 0x00 b # PAGE
20i2cset -y 4 0x71 0x5E 0xCD 0x00 i # set to 0.8V
21
22# VDN B - PGOOD_ON threshold
23i2cset -y 5 0x71 0x00 0x00 b # PAGE
24i2cset -y 5 0x71 0x5E 0xCD 0x00 i # set to 0.8V