[Feature][ZXW-452]merge P54U02 version
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I17e6795ab66e2b9d1cbbfec4b7c0028d666e177d
diff --git a/boot/common/src/uboot/drivers/power/zx234290.c b/boot/common/src/uboot/drivers/power/zx234290.c
index b6f9678..90a52e2 100755
--- a/boot/common/src/uboot/drivers/power/zx234290.c
+++ b/boot/common/src/uboot/drivers/power/zx234290.c
@@ -355,6 +355,7 @@
int pmu_init(void)
{
int ret = 0;
+ uchar reg_val = 0;
struct pmu_opt pmu = {NULL};
/* GPIO init */
@@ -381,7 +382,17 @@
}
*/
ret = zx234290_get_boot_reason_prev();
-
+ ret +=zx234290_i2c_read_reg(ZX234297_REG_ADDR_SINK_CONTROL,®_val);
+ if(reg_val==0x7f){//means 296G C
+ reg_val = 0xff;//define to 296
+ ret+=zx234290_i2c_write_reg(ZX234297_REG_ADDR_SINK_CONTROL,®_val);
+ }
+
+ if (ret != SUCCESS)
+ {
+ printf( "[%s]set 0x29 error ret=0x%x!\n", __FUNCTION__,ret);
+ }
+
return ret;
}