diff options
author | Kevin Cernekee <cernekee@gmail.com> | 2014-10-21 00:27:58 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 01:45:11 -0500 |
commit | bbf2ba67cdbdb3676a661c3eba5572d1e513627f (patch) | |
tree | 92cdfa8bfd348cacb28b4cd70117afe5d762ec8d | |
parent | a7ef1eaddbf4bd50bfee92d9dfbecadc61467bbf (diff) |
MIPS: BMIPS: Select the appropriate L1_CACHE_SHIFT for 438x and 5000 CPUs
BMIPS438x has a 64-byte D$ line size and BMIPS5000 has a 128-byte L2
line size. If L1_CACHE_SHIFT is undersized, DMA buffers will not be
cacheline-aligned and terrible things will happen.
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Cc: f.fainelli@gmail.com
Cc: mbizon@freebox.fr
Cc: jogo@openwrt.org
Cc: jfraser@broadcom.com
Cc: linux-mips@linux-mips.org
Cc: devicetree@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8164/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 992f98361e5a..002cf4c56ebf 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -1587,12 +1587,14 @@ config CPU_BMIPS4350 | |||
1587 | 1587 | ||
1588 | config CPU_BMIPS4380 | 1588 | config CPU_BMIPS4380 |
1589 | bool | 1589 | bool |
1590 | select MIPS_L1_CACHE_SHIFT_6 | ||
1590 | select SYS_SUPPORTS_SMP | 1591 | select SYS_SUPPORTS_SMP |
1591 | select SYS_SUPPORTS_HOTPLUG_CPU | 1592 | select SYS_SUPPORTS_HOTPLUG_CPU |
1592 | 1593 | ||
1593 | config CPU_BMIPS5000 | 1594 | config CPU_BMIPS5000 |
1594 | bool | 1595 | bool |
1595 | select MIPS_CPU_SCACHE | 1596 | select MIPS_CPU_SCACHE |
1597 | select MIPS_L1_CACHE_SHIFT_7 | ||
1596 | select SYS_SUPPORTS_SMP | 1598 | select SYS_SUPPORTS_SMP |
1597 | select SYS_SUPPORTS_HOTPLUG_CPU | 1599 | select SYS_SUPPORTS_HOTPLUG_CPU |
1598 | 1600 | ||