]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
MIPS: TXx9: Runtime configuration of timeout-error
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Tue, 19 Aug 2008 13:55:10 +0000 (22:55 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 11 Oct 2008 15:18:42 +0000 (16:18 +0100)
Add kernel options to control bus timeout error.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/txx9/generic/setup.c
arch/mips/txx9/generic/setup_tx3927.c

index fa88aefea9ef247832f2278be176ec896ea7175a..fa45f174b0eeb91aa5a69d6d001a86ad16a337e4 100644 (file)
@@ -68,7 +68,12 @@ unsigned int txx9_master_clock;
 unsigned int txx9_cpu_clock;
 unsigned int txx9_gbus_clock;
 
+#ifdef CONFIG_CPU_TX39XX
+/* don't enable by default - see errata */
+int txx9_ccfg_toeon __initdata;
+#else
 int txx9_ccfg_toeon __initdata = 1;
+#endif
 
 /* Minimum CLK support */
 
@@ -315,6 +320,12 @@ static void __init preprocess_cmdline(void)
                } else if (strcmp(str, "dcdisable") == 0) {
                        txx9_dc_disable = 1;
                        continue;
+               } else if (strcmp(str, "toeoff") == 0) {
+                       txx9_ccfg_toeon = 0;
+                       continue;
+               } else if (strcmp(str, "toeon") == 0) {
+                       txx9_ccfg_toeon = 1;
+                       continue;
                }
                if (arcs_cmdline[0])
                        strcat(arcs_cmdline, " ");
index 4bc2f859379d95fc8b136792dfb3731d0eda9d8b..06c4925760780fee41291b8f8b780758796be515 100644 (file)
@@ -32,11 +32,6 @@ void __init tx3927_setup(void)
        int i;
        unsigned int conf;
 
-       /* don't enable - see errata */
-       txx9_ccfg_toeon = 0;
-       if (strstr(prom_getcmdline(), "toeon") != NULL)
-               txx9_ccfg_toeon = 1;
-
        txx9_reg_res_init(TX3927_REV_PCODE(), TX3927_REG_BASE,
                          TX3927_REG_SIZE);