summaryrefslogtreecommitdiff
path: root/drivers/rtc/mxsrtc.c
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-08-13 09:53:12 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-09-01 14:58:25 +0200
commitfa7a51cb8272bd6076ea4701fd6bdc65a68703ba (patch)
treeb1dd7f9cc3921fb5eb1cd0cbd9a34b1e197f7ae9 /drivers/rtc/mxsrtc.c
parentaf963ba8f4f301475d13faa42b5dec8f0ed3c23a (diff)
downloadu-boot-imx-fa7a51cb8272bd6076ea4701fd6bdc65a68703ba.zip
u-boot-imx-fa7a51cb8272bd6076ea4701fd6bdc65a68703ba.tar.gz
u-boot-imx-fa7a51cb8272bd6076ea4701fd6bdc65a68703ba.tar.bz2
mxs: Convert sys_proto.h prefixes to 'mxs'
The sys_proto.h functions (except the boot modes) are compatible with i.MX233 and i.MX28 so we use 'mxs' prefix for its methods. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'drivers/rtc/mxsrtc.c')
-rw-r--r--drivers/rtc/mxsrtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/mxsrtc.c b/drivers/rtc/mxsrtc.c
index 72f7400..ffefb91 100644
--- a/drivers/rtc/mxsrtc.c
+++ b/drivers/rtc/mxsrtc.c
@@ -41,7 +41,7 @@ int mxs_rtc_set_time(uint32_t secs)
* is taken from the linux kernel driver for the STMP37xx RTC since
* documentation doesn't mention it.
*/
- ret = mx28_wait_mask_clr(&rtc_regs->hw_rtc_stat_reg,
+ ret = mxs_wait_mask_clr(&rtc_regs->hw_rtc_stat_reg,
0x80 << RTC_STAT_STALE_REGS_OFFSET, MXS_RTC_MAX_TIMEOUT);
if (ret)
@@ -80,7 +80,7 @@ void rtc_reset(void)
mxs_rtc_set_time(0);
/* Reset the RTC block */
- ret = mx28_reset_block(&rtc_regs->hw_rtc_ctrl_reg);
+ ret = mxs_reset_block(&rtc_regs->hw_rtc_ctrl_reg);
if (ret)
printf("MXS RTC: Block reset timeout\n");
}