update for TAS2557 PG2.1 FTC
authorPeter Li <peter-li@ti.com>
Wed, 22 Feb 2017 15:35:09 +0000 (23:35 +0800)
committerPeter Li <peter-li@ti.com>
Wed, 22 Feb 2017 15:35:09 +0000 (23:35 +0800)
lib/libftc32.a
lib/libftc64.a
tas2557.c

index 95650576222462a239d258d77d04016c7a928c4e..61604fb0ca6a8f509bd4d523e75e743aace4a1ba 100755 (executable)
Binary files a/lib/libftc32.a and b/lib/libftc32.a differ
index a9fc3835fb16cdf2263c2b9bb8efabe385f93a33..6be1fe91e46befcddef1f8990afaa51073b6809c 100755 (executable)
Binary files a/lib/libftc64.a and b/lib/libftc64.a differ
index bd138f123929e6027c4788bbf4bce8dcdc0e4ce1..aafbc55c6eb2e5d04b70b2fce4dca9121c187aa3 100755 (executable)
--- a/tas2557.c
+++ b/tas2557.c
@@ -207,6 +207,20 @@ void tas2557_coeff_write(uint8_t book, uint8_t page, uint8_t reg, uint32_t data)
                write(gTILoad, pBook, 2);
                write(gTILoad, pPage, 2);
                write(gTILoad, pData, 5);
+
+               pBook[1] = 0x00;
+               pPage[1] = 0x35;
+
+               pData[0] = 0x2c;
+               pData[1] = 0x00;
+               pData[2] = 0x00;
+               pData[3] = 0x00;
+               pData[4] = 0x01;
+
+               write(gTILoad, pPageZero, 2);
+               write(gTILoad, pBook, 2);
+               write(gTILoad, pPage, 2);
+               write(gTILoad, pData, 5);
        }
 }
 
@@ -358,15 +372,18 @@ void tas2557_close_bin(void)
        {
                0x00, 0x04, 0x85, 0x00,
                0x8C, 0x19, 0x7C, 0x00,
+               0x00, 0x00, 0x01, 0x00,
+               0x00, 0x04, 0x85, 0x00,
+               0x00, 0x35, 0x2c, 0x00,
                0x00, 0x00, 0x01, 0x00
-       };      
+       };
        
        // write the commit sequence
-       memcpy(&gpDevABlock[gnDevABlockIndex*4], pCommit, 12);
-       gnDevABlockIndex += 3;
+       memcpy(&gpDevABlock[gnDevABlockIndex*4], pCommit, 24);
+       gnDevABlockIndex += 6;
        
-       memcpy(&gpDevBBlock[gnDevBBlockIndex*4], pCommit, 12);
-       gnDevBBlockIndex += 3;
+       memcpy(&gpDevBBlock[gnDevBBlockIndex*4], pCommit, 24);
+       gnDevBBlockIndex += 6;
        
        // write number of commands for calibration block
        gpDevABlock[4] = ((gnDevABlockIndex-2) & 0xFF000000) >> 24;