Update header file and removed interrupt_init()
Replace immap_5329.h and m5329.h with immap.h. Removed interrupt_init() and placed it in interrupts.c Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
This commit is contained in:
parent
3b635492c9
commit
7a17e759c7
1 changed files with 2 additions and 17 deletions
|
@ -29,8 +29,7 @@
|
||||||
#include <watchdog.h>
|
#include <watchdog.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
|
|
||||||
#include <asm/immap_5329.h>
|
#include <asm/immap.h>
|
||||||
#include <asm/m5329.h>
|
|
||||||
|
|
||||||
int do_reset(cmd_tbl_t * cmdtp, bd_t * bd, int flag, int argc, char *argv[])
|
int do_reset(cmd_tbl_t * cmdtp, bd_t * bd, int flag, int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
@ -117,18 +116,4 @@ int watchdog_init(void)
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
#endif /* #ifdef CONFIG_WATCHDOG */
|
#endif /* CONFIG_WATCHDOG */
|
||||||
|
|
||||||
#ifdef CONFIG_MCFINTC
|
|
||||||
int interrupt_init(void)
|
|
||||||
{
|
|
||||||
volatile int0_t *intp = (int0_t *) (CFG_INTR_BASE);
|
|
||||||
|
|
||||||
/* Make sure all interrupts are disabled */
|
|
||||||
intp->imrh0 |= 0xFFFFFFFF;
|
|
||||||
intp->imrl0 |= 0xFFFFFFFF;
|
|
||||||
|
|
||||||
enable_interrupts();
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif /* CONFIG_MCFINTC */
|
|
||||||
|
|
Loading…
Reference in a new issue