Changeset 20796


Ignore:
Timestamp:
2010-04-11T18:24:06+02:00 (6 years ago)
Author:
lars
Message:

[xburst] time.c: Timer enable registers are only 8bit width.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/xburst/files-2.6.32/arch/mips/jz4740/time.c

    r19783 r20796  
    9999{ 
    100100        writel(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_STOP_CLEAR); 
    101         writel(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_ENABLE_SET); 
     101        writeb(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_ENABLE_SET); 
    102102} 
    103103 
    104104static void jz4740_timer_disable(unsigned int timer) 
    105105{ 
    106         writel(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_ENABLE_CLEAR); 
     106        writeb(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_ENABLE_CLEAR); 
    107107        writel(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_STOP_SET); 
    108108} 
Note: See TracChangeset for help on using the changeset viewer.