-
-
Save dsd/1a6ed85792f4f8a70265e87fe1b8404b to your computer and use it in GitHub Desktop.
Force windows-dumped ES8316 register settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while read reg value; do | |
echo $reg $value | |
echo -n "$reg $value" > /sys/kernel/debug/regmap/i2c-ESSX8316:00/registers | |
done <winregs.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x0 0x00c2 | |
0x1 0x007f | |
0x2 0x0009 | |
0x3 0x0019 | |
0x4 0x0021 | |
0x5 0x0090 | |
0x6 0x0021 | |
0x7 0x0090 | |
0x8 0x0008 | |
0x9 0x0002 | |
0xa 0x0000 | |
0xb 0x0000 | |
0xc 0x00ff | |
0xd 0x0000 | |
0xe 0x003f | |
0xf 0x001f | |
0x10 0x0011 | |
0x11 0x00fc | |
0x12 0x0028 | |
0x13 0x0000 | |
0x14 0x0088 | |
0x15 0x0088 | |
0x16 0x00bb | |
0x17 0x0066 | |
0x18 0x0000 | |
0x19 0x0000 | |
0x1a 0x0010 | |
0x1b 0x0030 | |
0x1c 0x0000 | |
0x1d 0x0000 | |
0x1e 0x008a | |
0x1f 0x009c | |
0x20 0x00f9 | |
0x21 0x00f3 | |
0x22 0x0020 | |
0x23 0x0030 | |
0x24 0x0001 | |
0x25 0x0008 | |
0x26 0x0030 | |
0x27 0x0000 | |
0x28 0x0000 | |
0x29 0x004d | |
0x2a 0x0004 | |
0x2b 0x0090 | |
0x2c 0x0002 | |
0x2d 0x0006 | |
0x2e 0x0061 | |
0x2f 0x0000 | |
0x30 0x0000 | |
0x31 0x0000 | |
0x32 0x0000 | |
0x33 0x0000 | |
0x34 0x0000 | |
0x35 0x001f | |
0x36 0x00f7 | |
0x37 0x00fd | |
0x38 0x00ff | |
0x39 0x001f | |
0x3a 0x00f7 | |
0x3b 0x00fd | |
0x3c 0x00ff | |
0x3d 0x001f | |
0x3e 0x00f7 | |
0x3f 0x00fd | |
0x40 0x00ff | |
0x41 0x001f | |
0x42 0x00f7 | |
0x43 0x00fd | |
0x44 0x00ff | |
0x45 0x001f | |
0x46 0x00f7 | |
0x47 0x00fd | |
0x48 0x00ff | |
0x49 0x001f | |
0x4a 0x00f7 | |
0x4b 0x00fd | |
0x4c 0x00ff | |
0x4d 0x0000 | |
0x4e 0x0002 | |
0x4f 0x0022 | |
0x50 0x00a0 | |
0x51 0x0000 | |
0x52 0x0000 | |
0x53 0x0000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment