Commit dccaaaeb authored by Nikita Kiryanov's avatar Nikita Kiryanov Committed by Tom Rini

arm: am437x: cm-t43: set tps fseal bit

Set TPS65218 FSEAL bit to 1 so that RTC could be powered using on-board
3V battery. This is necessary so that time and date will survive reboots and
power offs.

Cc: Tom Rini <>
Cc: Albert Aribaud <>
Cc: Igor Grinberg <>
Signed-off-by: default avatarNikita Kiryanov <>
Reviewed-by: default avatarTom Rini <>
parent 9bcfca12
......@@ -23,11 +23,18 @@ static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE;
int power_init_board(void)
struct pmic *p;
uchar tps_status = 0;
p = pmic_get("TPS65218_PMIC");
if (p && !pmic_probe(p))
if (p && !pmic_probe(p)) {
puts("PMIC: TPS65218\n");
/* We don't care if fseal is locked, but we do need it set */
tps65218_reg_read(TPS65218_STATUS, &tps_status);
if (!(tps_status & TPS65218_FSEAL))
printf("WARNING: RTC not backed by battery!\n");
return 0;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment