[MIPS] Allow setting of the cache attribute at run time.
[pandora-kernel.git] / arch / mips / philips / pnx8550 / stb810 / board_setup.c
index 345d71e..d461d7a 100644 (file)
@@ -39,8 +39,8 @@ void __init board_setup(void)
 
        /* clear all three cache coherency fields */
        config0 &= ~(0x7 | (7<<25) | (7<<28));
-       config0 |= (CONF_CM_DEFAULT | (CONF_CM_DEFAULT<<25) |
-                       (CONF_CM_DEFAULT<<28));
+       config0 |= (_page_cachable_default >> _CACHE_SHIFT) |
+                  (CONF_CM_DEFAULT << 25) | (CONF_CM_DEFAULT << 28);
        write_c0_config(config0);
 
        configpr = read_c0_config7();