i2c-vr: add XDPE192C3E,XDPE1D2G3B support
Extend xdpe1x2xx to support XDPE192C3E,XDPE1D2G3B VR devices which share
similar programming interfaces but use slightly different config size.
Tested pass on Yv5 platform.
Change-Id: I4f8bde67bce433a2536ffc9f88a49784d565ce42
Signed-off-by: Leo Yang <Leo-Yang@quantatw.com>
diff --git a/i2c-vr/xdpe1x2xx/xdpe1x2xx.hpp b/i2c-vr/xdpe1x2xx/xdpe1x2xx.hpp
index 6c38667..14a4070 100644
--- a/i2c-vr/xdpe1x2xx/xdpe1x2xx.hpp
+++ b/i2c-vr/xdpe1x2xx/xdpe1x2xx.hpp
@@ -25,7 +25,9 @@
private:
static const int MaxSectCnt = 16;
- static const int MaxSectDataCnt = 200;
+ /*According to the XDPE192C3E datasheet, the Config User Section size has
+ reached 864 bytes, so MaxSectDataCnt requires at least 216.*/
+ static const int MaxSectDataCnt = 300;
struct deviceInfo
{