]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sh: Fix up MTU2 support for SH7203.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 29 Jan 2009 09:10:13 +0000 (18:10 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 29 Jan 2009 09:10:13 +0000 (18:10 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/Kconfig
arch/sh/kernel/timers/timer-mtu2.c

index 5784bcec1a16995a8993d39581a79ebdeaa9a0dc..c6faad734e57cba32cde32d8c89b8af2401260b4 100644 (file)
@@ -447,7 +447,8 @@ config SH_TIMER_IRQ
                        CPU_SUBTYPE_SH7763
        default "86" if CPU_SUBTYPE_SH7619
        default "140" if CPU_SUBTYPE_SH7206
-       default "142" if CPU_SUBTYPE_SH7203
+       default "142" if CPU_SUBTYPE_SH7203 && SH_CMT
+       default "153" if CPU_SUBTYPE_SH7203 && SH_MTU2
        default "238" if CPU_SUBTYPE_MXG
        default "16"
 
index c3d237e1d566e4c91704284b07a8ced28ce2ba1d..9a77ae86b403132a0483c964d2bf83af53794f72 100644 (file)
@@ -35,7 +35,8 @@
 #define MTU2_TSR_1     0xfffe4385
 #define MTU2_TCNT_1    0xfffe4386      /* 16-bit counter */
 
-#if defined(CONFIG_CPU_SUBTYPE_SH7201)
+#if defined(CONFIG_CPU_SUBTYPE_SH7201) || \
+    defined(CONFIG_CPU_SUBTYPE_SH7203)
 #define MTU2_TGRA_1    0xfffe4388
 #else
 #define MTU2_TGRA_1    0xfffe438a