diff options
Diffstat (limited to 'arch/mips/alchemy/common/setup.c')
-rw-r--r-- | arch/mips/alchemy/common/setup.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/mips/alchemy/common/setup.c b/arch/mips/alchemy/common/setup.c index 62b4e7bbeab9..566a1743f685 100644 --- a/arch/mips/alchemy/common/setup.c +++ b/arch/mips/alchemy/common/setup.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <linux/jiffies.h> | 30 | #include <linux/jiffies.h> |
31 | #include <linux/module.h> | 31 | #include <linux/module.h> |
32 | 32 | ||
33 | #include <asm/dma-coherence.h> | ||
33 | #include <asm/mipsregs.h> | 34 | #include <asm/mipsregs.h> |
34 | #include <asm/time.h> | 35 | #include <asm/time.h> |
35 | 36 | ||
@@ -59,6 +60,15 @@ void __init plat_mem_setup(void) | |||
59 | /* Clear to obtain best system bus performance */ | 60 | /* Clear to obtain best system bus performance */ |
60 | clear_c0_config(1 << 19); /* Clear Config[OD] */ | 61 | clear_c0_config(1 << 19); /* Clear Config[OD] */ |
61 | 62 | ||
63 | hw_coherentio = 0; | ||
64 | coherentio = 1; | ||
65 | switch (alchemy_get_cputype()) { | ||
66 | case ALCHEMY_CPU_AU1000: | ||
67 | case ALCHEMY_CPU_AU1500: | ||
68 | case ALCHEMY_CPU_AU1100: | ||
69 | coherentio = 0; | ||
70 | } | ||
71 | |||
62 | board_setup(); /* board specific setup */ | 72 | board_setup(); /* board specific setup */ |
63 | 73 | ||
64 | /* IO/MEM resources. */ | 74 | /* IO/MEM resources. */ |