]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
m68knommu: clean up ColdFire 532x CPU timer setup
authorGreg Ungerer <gerg@uclinux.org>
Tue, 19 May 2009 05:00:01 +0000 (15:00 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 15 Sep 2009 23:43:52 +0000 (09:43 +1000)
The newer ColdFire 532x family of CPU's uses the old timer, but has a
newer interrupt controller. It doesn't need the special timer setup
that was required when using the older interrupt controller. Remove the
dead timer irq and level setting code, and define the hard coded vector.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/include/asm/m532xsim.h
arch/m68knommu/platform/532x/config.c

index 021a0e15527036dd9e658f82112c5ba0ca9c103f..36bf15aec9aebcfc6da77bc3f2f83e2907a5a805 100644 (file)
 #define MCFSIM_ICR_TIMER1      (0xFC048040+32)
 #define MCFSIM_ICR_TIMER2      (0xFC048040+33)
 
+/*
+ *     Define system peripheral IRQ usage.
+ */
+#define        MCF_IRQ_TIMER           (64 + 32)       /* Timer0 */
+#define        MCF_IRQ_PROFILER        (64 + 33)       /* Timer1 */
 
 /*
  *     Define the Cache register flags.
index 66e212b58b85908f3e92800cc1232523408da584..d632948e64e53602d3714197852f441d3288cf78 100644 (file)
 
 /***************************************************************************/
 
-extern unsigned int mcf_timervector;
-extern unsigned int mcf_profilevector;
-extern unsigned int mcf_timerlevel;
-
-/***************************************************************************/
-
 static struct mcf_platform_uart m532x_uart_platform[] = {
        {
                .mapbase        = MCFUART_BASE1,
@@ -87,6 +81,7 @@ static struct platform_device m532x_fec = {
        .num_resources          = ARRAY_SIZE(m532x_fec_resources),
        .resource               = m532x_fec_resources,
 };
+
 static struct platform_device *m532x_devices[] __initdata = {
        &m532x_uart,
        &m532x_fec,
@@ -126,12 +121,6 @@ static void __init m532x_fec_init(void)
 
 /***************************************************************************/
 
-void mcf_settimericr(unsigned int timer, unsigned int level)
-{
-}
-
-/***************************************************************************/
-
 static void m532x_cpu_reset(void)
 {
        local_irq_disable();
@@ -153,10 +142,6 @@ void __init config_BSP(char *commandp, int size)
        }
 #endif
 
-       mcf_timervector = 64+32;
-       mcf_profilevector = 64+33;
-       mach_reset = m532x_cpu_reset;
-
 #ifdef CONFIG_BDM_DISABLE
        /*
         * Disable the BDM clocking.  This also turns off most of the rest of