]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - arch/m68k/cpu/mcf5227x/interrupts.c
3 * (C) Copyright 2000-2004
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 * Copyright (C) 2004-2007, 2012 Freescale Semiconductor, Inc.
7 * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
9 * SPDX-License-Identifier: GPL-2.0+
12 /* CPU specific interrupt routine */
14 #include <asm/immap.h>
17 int interrupt_init(void)
19 int0_t
*intp
= (int0_t
*) (CONFIG_SYS_INTR_BASE
);
21 /* Make sure all interrupts are disabled */
22 setbits_be32(&intp
->imrh0
, 0xffffffff);
23 setbits_be32(&intp
->imrl0
, 0xffffffff);
29 #if defined(CONFIG_MCFTMR)
30 void dtimer_intr_setup(void)
32 int0_t
*intp
= (int0_t
*) (CONFIG_SYS_INTR_BASE
);
34 out_8(&intp
->icr0
[CONFIG_SYS_TMRINTR_NO
], CONFIG_SYS_TMRINTR_PRI
);
35 clrbits_be32(&intp
->imrh0
, CONFIG_SYS_TMRINTR_MASK
);