diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-04-11 16:24:06 +0000 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2010-04-11 16:24:06 +0000 |
commit | ef208e700c6c51eccf8f1125aae6df11865ca15b (patch) | |
tree | 8b16347ac678a16afba77950532110030e51700b /target/linux/xburst/files-2.6.32 | |
parent | af0b2ec8c791108e4f346422158af8f1a0769392 (diff) | |
download | master-187ad058-ef208e700c6c51eccf8f1125aae6df11865ca15b.tar.gz master-187ad058-ef208e700c6c51eccf8f1125aae6df11865ca15b.tar.bz2 master-187ad058-ef208e700c6c51eccf8f1125aae6df11865ca15b.zip |
[xburst] time.c: Timer enable registers are only 8bit width.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20796 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/xburst/files-2.6.32')
-rw-r--r-- | target/linux/xburst/files-2.6.32/arch/mips/jz4740/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/time.c b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/time.c index d9c5eba61c..77fc2012ed 100644 --- a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/time.c +++ b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/time.c @@ -98,12 +98,12 @@ static void jz4740_init_timer(void) static void jz4740_timer_enable(unsigned int timer) { writel(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_STOP_CLEAR); - writel(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_ENABLE_SET); + writeb(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_ENABLE_SET); } static void jz4740_timer_disable(unsigned int timer) { - writel(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_ENABLE_CLEAR); + writeb(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_ENABLE_CLEAR); writel(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_STOP_SET); } |