mxs: Convert sys_proto.h prefixes to 'mxs'
[oweals/u-boot.git] / arch / arm / cpu / arm926ejs / mxs / timer.c
index 5b73f4a2b3e1a4a297f131b0fd67bef610585018..4ed75e604ca8b589ffb0592cff24c0b3a0d866c9 100644 (file)
@@ -62,11 +62,11 @@ static inline unsigned long us_to_tick(unsigned long us)
 
 int timer_init(void)
 {
-       struct mx28_timrot_regs *timrot_regs =
-               (struct mx28_timrot_regs *)MXS_TIMROT_BASE;
+       struct mxs_timrot_regs *timrot_regs =
+               (struct mxs_timrot_regs *)MXS_TIMROT_BASE;
 
        /* Reset Timers and Rotary Encoder module */
-       mx28_reset_block(&timrot_regs->hw_timrot_rotctrl_reg);
+       mxs_reset_block(&timrot_regs->hw_timrot_rotctrl_reg);
 
        /* Set fixed_count to 0 */
        writel(0, &timrot_regs->hw_timrot_fixed_count0);
@@ -84,8 +84,8 @@ int timer_init(void)
 
 unsigned long long get_ticks(void)
 {
-       struct mx28_timrot_regs *timrot_regs =
-               (struct mx28_timrot_regs *)MXS_TIMROT_BASE;
+       struct mxs_timrot_regs *timrot_regs =
+               (struct mxs_timrot_regs *)MXS_TIMROT_BASE;
 
        /* Current tick value */
        uint32_t now = readl(&timrot_regs->hw_timrot_running_count0);