]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mips/txx9/generic/setup_tx3927.c
MIPS: TXx9: Runtime configuration of timeout-error
[linux-2.6-omap-h63xx.git] / arch / mips / txx9 / generic / setup_tx3927.c
index 7bd963d37fc3a6a9c3471d6847c7ce2fdf72ae75..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);
 
@@ -99,16 +94,14 @@ void __init tx3927_setup(void)
        txx9_gpio_init(TX3927_PIO_REG, 0, 16);
 
        conf = read_c0_conf();
-       if (!(conf & TX39_CONF_ICE))
-               printk(KERN_INFO "TX3927 I-Cache disabled.\n");
-       if (!(conf & TX39_CONF_DCE))
-               printk(KERN_INFO "TX3927 D-Cache disabled.\n");
-       else if (!(conf & TX39_CONF_WBON))
-               printk(KERN_INFO "TX3927 D-Cache WriteThrough.\n");
-       else if (!(conf & TX39_CONF_CWFON))
-               printk(KERN_INFO "TX3927 D-Cache WriteBack.\n");
-       else
-               printk(KERN_INFO "TX3927 D-Cache WriteBack (CWF) .\n");
+       if (conf & TX39_CONF_DCE) {
+               if (!(conf & TX39_CONF_WBON))
+                       pr_info("TX3927 D-Cache WriteThrough.\n");
+               else if (!(conf & TX39_CONF_CWFON))
+                       pr_info("TX3927 D-Cache WriteBack.\n");
+               else
+                       pr_info("TX3927 D-Cache WriteBack (CWF) .\n");
+       }
 }
 
 void __init tx3927_time_init(unsigned int evt_tmrnr, unsigned int src_tmrnr)