mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-01-25 11:25:17 +00:00
i386: Fix regression introduced by commit 8c63d47651
A local variable was deleted that should not have been Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
This commit is contained in:
parent
ac28dcfe89
commit
c214eaf35c
1 changed files with 5 additions and 0 deletions
|
@ -25,10 +25,13 @@
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/i8254.h>
|
#include <asm/i8254.h>
|
||||||
#include <asm/ibmpc.h>
|
#include <asm/ibmpc.h>
|
||||||
|
#include <asm/interrupt.h>
|
||||||
|
|
||||||
#define TIMER0_VALUE 0x04aa /* 1kHz 1.9318MHz / 1000 */
|
#define TIMER0_VALUE 0x04aa /* 1kHz 1.9318MHz / 1000 */
|
||||||
#define TIMER2_VALUE 0x0a8e /* 440Hz */
|
#define TIMER2_VALUE 0x0a8e /* 440Hz */
|
||||||
|
|
||||||
|
static int timer_init_done = 0;
|
||||||
|
|
||||||
int timer_init(void)
|
int timer_init(void)
|
||||||
{
|
{
|
||||||
/* initialize timer 0 and 2
|
/* initialize timer 0 and 2
|
||||||
|
@ -52,6 +55,8 @@ int timer_init(void)
|
||||||
irq_install_handler (0, timer_isr, NULL);
|
irq_install_handler (0, timer_isr, NULL);
|
||||||
unmask_irq (0);
|
unmask_irq (0);
|
||||||
|
|
||||||
|
timer_init_done = 1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue