mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[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
This commit is contained in:
@@ -98,12 +98,12 @@ static void jz4740_init_timer(void)
|
|||||||
static void jz4740_timer_enable(unsigned int timer)
|
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_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)
|
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);
|
writel(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_STOP_SET);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user