[RFC 1/8] m68k: coldfire: unlink FPU presence from MMU activation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



m5441x coldfire chips contains a MMU and no FPU.
This patch allow building this chip with MMU activated.

Signed-off-by: Yannick GICQUEL <yannick.gicquel@xxxxxxxxx>
---
 arch/m68k/Kconfig     | 2 +-
 arch/m68k/Kconfig.cpu | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
index 2dd8f63..d704c16 100644
--- a/arch/m68k/Kconfig
+++ b/arch/m68k/Kconfig
@@ -14,7 +14,7 @@ config M68K
 	select GENERIC_IOMAP
 	select GENERIC_STRNCPY_FROM_USER if MMU
 	select GENERIC_STRNLEN_USER if MMU
-	select FPU if MMU
+	select FPU if MMU && !COLDFIRE
 	select ARCH_WANT_IPC_PARSE_VERSION
 	select ARCH_USES_GETTIMEOFFSET if MMU && !COLDFIRE
 	select HAVE_FUTEX_CMPXCHG if MMU && FUTEX
diff --git a/arch/m68k/Kconfig.cpu b/arch/m68k/Kconfig.cpu
index 33013df..3661eb4 100644
--- a/arch/m68k/Kconfig.cpu
+++ b/arch/m68k/Kconfig.cpu
@@ -257,6 +257,7 @@ config M54xx
 config M547x
 	bool "MCF547x"
 	select M54xx
+	select FPU
 	select MMU_COLDFIRE if MMU
 	select HAVE_CACHE_CB
 	select HAVE_MBAR
@@ -265,6 +266,7 @@ config M547x
 
 config M548x
 	bool "MCF548x"
+	select FPU
 	select MMU_COLDFIRE if MMU
 	select M54xx
 	select HAVE_CACHE_CB
@@ -274,7 +276,7 @@ config M548x
 
 config M5441x
 	bool "MCF5441x"
-	depends on !MMU
+	select MMU_COLDFIRE if MMU
 	select GENERIC_CLOCKEVENTS
 	select HAVE_CACHE_CB
 	help
-- 
1.9.1.286.g5172cb3

--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux