aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/philips
diff options
context:
space:
mode:
authorChris Dearman <chris@mips.com>2007-09-18 19:58:24 -0400
committerRalf Baechle <ralf@linux-mips.org>2008-04-28 12:14:25 -0400
commit351336929ccf222ae38ff0cb7a8dd5fd5c6236a0 (patch)
treed9e9253bd30cf011d248ad3b63761a9a725e5cb0 /arch/mips/philips
parentbec5052743ec8ae4c5669918cf9b130bf15709a2 (diff)
[MIPS] Allow setting of the cache attribute at run time.
Slightly tacky, but there is a precedent in the sparc archirecture code. Signed-off-by: Chris Dearman <chris@mips.com> Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/philips')
-rw-r--r--arch/mips/philips/pnx8550/jbs/board_setup.c4
-rw-r--r--arch/mips/philips/pnx8550/stb810/board_setup.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/philips/pnx8550/jbs/board_setup.c b/arch/mips/philips/pnx8550/jbs/board_setup.c
index f92826e0096d..e550a3e12f65 100644
--- a/arch/mips/philips/pnx8550/jbs/board_setup.c
+++ b/arch/mips/philips/pnx8550/jbs/board_setup.c
@@ -53,8 +53,8 @@ void __init board_setup(void)
53 53
54 /* clear all three cache coherency fields */ 54 /* clear all three cache coherency fields */
55 config0 &= ~(0x7 | (7<<25) | (7<<28)); 55 config0 &= ~(0x7 | (7<<25) | (7<<28));
56 config0 |= (CONF_CM_DEFAULT | (CONF_CM_DEFAULT<<25) | 56 config0 |= (_page_cachable_default >> _CACHE_SHIFT) |
57 (CONF_CM_DEFAULT<<28)); 57 (CONF_CM_DEFAULT << 25) | (CONF_CM_DEFAULT << 28);
58 write_c0_config(config0); 58 write_c0_config(config0);
59 BARRIER; 59 BARRIER;
60 60
diff --git a/arch/mips/philips/pnx8550/stb810/board_setup.c b/arch/mips/philips/pnx8550/stb810/board_setup.c
index 345d71e53cf2..d461d7a62365 100644
--- a/arch/mips/philips/pnx8550/stb810/board_setup.c
+++ b/arch/mips/philips/pnx8550/stb810/board_setup.c
@@ -39,8 +39,8 @@ void __init board_setup(void)
39 39
40 /* clear all three cache coherency fields */ 40 /* clear all three cache coherency fields */
41 config0 &= ~(0x7 | (7<<25) | (7<<28)); 41 config0 &= ~(0x7 | (7<<25) | (7<<28));
42 config0 |= (CONF_CM_DEFAULT | (CONF_CM_DEFAULT<<25) | 42 config0 |= (_page_cachable_default >> _CACHE_SHIFT) |
43 (CONF_CM_DEFAULT<<28)); 43 (CONF_CM_DEFAULT << 25) | (CONF_CM_DEFAULT << 28);
44 write_c0_config(config0); 44 write_c0_config(config0);
45 45
46 configpr = read_c0_config7(); 46 configpr = read_c0_config7();