Hello Greg,
Resent, now with checkpath.pl suggested changes, except :
WARNING: please, no space for starting a line,
excluding comments
#75: FILE: arch/m68k/include/asm/gpio.h:39:
+defined(CONFIG_M527x) || defined(CONFIG_M528x) || \$
WARNING: please, no space for starting a line,
excluding comments
#76: FILE: arch/m68k/include/asm/gpio.h:40:
+defined(CONFIG_M532x) || defined(CONFIG_M548x)$
WARNING: please write a paragraph that describes the config symbol fully
#355: FILE: arch/m68knommu/Kconfig:176:
+ help
total: 0 errors, 3 warnings, 582 lines checked
0011-m68knommu-add-basic-mmu-less-m548x-support.patch has style problems,
please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Philippe
--
Add a very basic mmu-less support for coldfire m548x family. This is perhaps
also valid for m547x family. The port comprises the serial, tick timer and
reboot support. The gpio part compiles but is empty. This gives a functional
albeit limited linux for the m548x coldfire family. This has been tested
on a Freescale M548xEVB Lite board with a M5484 processor and the default
dbug monitor.
Signed-off-by: Philippe De Muyter p...@macqel.be
---
arch/m68k/include/asm/cacheflush_no.h |2 +-
arch/m68k/include/asm/coldfire.h|4 +-
arch/m68k/include/asm/gpio.h|7 +-
arch/m68k/include/asm/m548xgpt.h| 88
arch/m68k/include/asm/m548xsim.h| 55 ++
arch/m68k/include/asm/mcfcache.h|2 +-
arch/m68k/include/asm/mcfsim.h |2 +
arch/m68k/include/asm/mcfslt.h | 44
arch/m68k/include/asm/mcfuart.h |5 +
arch/m68knommu/Kconfig |7 +-
arch/m68knommu/Makefile |3 +
arch/m68knommu/platform/548x/Makefile | 18
arch/m68knommu/platform/548x/config.c | 115 +
arch/m68knommu/platform/coldfire/Makefile |1 +
arch/m68knommu/platform/coldfire/sltimers.c | 145 +++
15 files changed, 493 insertions(+), 5 deletions(-)
create mode 100644 arch/m68k/include/asm/m548xgpt.h
create mode 100644 arch/m68k/include/asm/m548xsim.h
create mode 100644 arch/m68k/include/asm/mcfslt.h
create mode 100644 arch/m68knommu/platform/548x/Makefile
create mode 100644 arch/m68knommu/platform/548x/config.c
create mode 100644 arch/m68knommu/platform/coldfire/sltimers.c
diff --git a/arch/m68k/include/asm/cacheflush_no.h
b/arch/m68k/include/asm/cacheflush_no.h
index 89f1956..7085bd5 100644
--- a/arch/m68k/include/asm/cacheflush_no.h
+++ b/arch/m68k/include/asm/cacheflush_no.h
@@ -29,7 +29,7 @@
static inline void __flush_cache_all(void)
{
-#ifdef CONFIG_M5407
+#if defined(CONFIG_M5407) || defined(CONFIG_M548x)
/*
* Use cpushl to push and invalidate all cache lines.
* Gas doesn't seem to know how to generate the ColdFire
diff --git a/arch/m68k/include/asm/coldfire.h b/arch/m68k/include/asm/coldfire.h
index 83a9fa4..3b0a34d 100644
--- a/arch/m68k/include/asm/coldfire.h
+++ b/arch/m68k/include/asm/coldfire.h
@@ -32,7 +32,9 @@
*/
#defineMCF_MBAR0x1000
#defineMCF_MBAR2 0x8000
-#if defined(CONFIG_M520x)
+#if defined(CONFIG_M548x)
+#defineMCF_IPSBAR MCF_MBAR
+#elif defined(CONFIG_M520x)
#defineMCF_IPSBAR 0xFC00
#else
#defineMCF_IPSBAR 0x4000
diff --git a/arch/m68k/include/asm/gpio.h b/arch/m68k/include/asm/gpio.h
index 283214d..1b57adb 100644
--- a/arch/m68k/include/asm/gpio.h
+++ b/arch/m68k/include/asm/gpio.h
@@ -36,7 +36,8 @@
*/
#if defined(CONFIG_M5206) || defined(CONFIG_M5206e) || \
defined(CONFIG_M520x) || defined(CONFIG_M523x) || \
-defined(CONFIG_M527x) || defined(CONFIG_M528x) || defined(CONFIG_M532x)
+defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
+defined(CONFIG_M532x) || defined(CONFIG_M548x)
/* These parts have GPIO organized by 8 bit ports */
@@ -136,6 +137,8 @@ static inline u32 __mcf_gpio_ppdr(unsigned gpio)
#endif
else
return MCFGPIO_PPDR + mcfgpio_port(gpio - MCFGPIO_SCR_START);
+#else
+ return 0;
#endif
}
@@ -173,6 +176,8 @@ static inline u32 __mcf_gpio_podr(unsigned gpio)
#endif
else
return MCFGPIO_PODR + mcfgpio_port(gpio - MCFGPIO_SCR_START);
+#else
+ return 0;
#endif
}
diff --git a/arch/m68k/include/asm/m548xgpt.h b/arch/m68k/include/asm/m548xgpt.h
new file mode 100644
index 000..c8ef158
--- /dev/null
+++ b/arch/m68k/include/asm/m548xgpt.h
@@ -0,0 +1,88 @@
+/*
+ * File: m548xgpt.h
+ * Purpose:Register and bit definitions for the MCF548X
+ *
+ * Notes:
+ *
+ */
+
+#ifndef m548xgpt_h
+#define m548xgpt_h
+
+/*
+*