Other Parts Discussed in Thread: TWL6030
Dear sir.
i use omap4470 /TWL6030.android version is 4AI.1.3.
when kernel booting. rtc driver probe function twl_rtc_probe() try to enable RTC as below:
ret = twl_rtc_read_u8(&rd_reg, REG_RTC_CTRL_REG);
if (ret < 0)
goto out1;
if (!(rd_reg & BIT_RTC_CTRL_REG_STOP_RTC_M)) {
dev_info(&pdev->dev, "Enabling TWL-RTC.\n");
rd_reg = BIT_RTC_CTRL_REG_STOP_RTC_M;
ret = twl_rtc_write_u8(rd_reg, REG_RTC_CTRL_REG);
if (ret < 0)
goto out1;
}
i use i2c to read back status and RTC seems not enable.
after check twl6030 data.
RTC register protect by msecure pin.but in our schematic twl6030 msecure pin is not connect to omap4470.
there have some information about disable MSECURE protect find from twl6030 datasheet.
"When MSECURE is logical level 1, all read and write accesses are authorized; when MSECURE is logical
level 0, only read accesses are authorized.The MSECURE detection security feature is enabled and disabled by an OTP bit."
I can not find how to disable MSECRURE by OTP bit.
Can you help us.
thanks.
BR.
SAM