Skip to content
Snippets Groups Projects
Commit 06015146 authored by Peter Tyser's avatar Peter Tyser Committed by Wolfgang Denk
Browse files

m41t11: Remove unused functions


Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
parent 9ef78511
No related branches found
No related tags found
No related merge requests found
...@@ -181,18 +181,4 @@ void rtc_reset (void) ...@@ -181,18 +181,4 @@ void rtc_reset (void)
val = val & 0x3F;/*turn off freq test keep calibration*/ val = val & 0x3F;/*turn off freq test keep calibration*/
i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_CONTROL_ADDR, 1, &val, 1); i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_CONTROL_ADDR, 1, &val, 1);
} }
int rtc_store(int addr, unsigned char* data, int size)
{
/*don't let things wrap onto the time on a write*/
if( (addr+size) >= M41T11_STORAGE_SZ )
return 1;
return i2c_write( CONFIG_SYS_I2C_RTC_ADDR, REG_CNT+addr, 1, data, size );
}
int rtc_recall(int addr, unsigned char* data, int size)
{
return i2c_read( CONFIG_SYS_I2C_RTC_ADDR, REG_CNT+addr, 1, data, size );
}
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment