* [PATCH] m68knommu: fix compile breakage for 5407 cleopatra board
@ 2026-09-23 14:35 Greg Ungerer
0 siblings, 0 replies; only message in thread
From: Greg Ungerer @ 2026-09-23 14:35 UTC (permalink / raw)
To: linux-m68k; +Cc: Greg Ungerer
From: Greg Ungerer <gerg@linux-m68k.org>
Compiling for the Cleopatra target and specifying the ColdFire 5407 SoC
will fail with the following errors:
m68k-linux-ld: arch/m68k/coldfire/nettel.o: in function `init_nettel':
nettel.c:(.init.text+0x74): undefined reference to `ppdata'
m68k-linux-ld: nettel.c:(.init.text+0x9c): undefined reference to `ppdata'
m68k-linux-ld: nettel.c:(.init.text+0x6a): undefined reference to `ppdata'
m68k-linux-ld: nettel.c:(.init.text+0x7a): undefined reference to `ppdata'
m68k-linux-ld: nettel.c:(.init.text+0x92): undefined reference to `ppdata'
The fix is to define "ppdata" in the same way as is done for the 5307 and
5272 - it is the same register setup in the 5407 as those other SoC parts.
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
---
arch/m68k/coldfire/m5407.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/m68k/coldfire/m5407.c b/arch/m68k/coldfire/m5407.c
index 23a14416241c..1f3e30b33398 100644
--- a/arch/m68k/coldfire/m5407.c
+++ b/arch/m68k/coldfire/m5407.c
@@ -22,6 +22,11 @@
/***************************************************************************/
+/*
+ * Some platforms need software versions of the GPIO data registers.
+ */
+unsigned short ppdata;
+
DEFINE_CLK(pll, "pll.0", MCF_CLK);
DEFINE_CLK(sys, "sys.0", MCF_BUSCLK);
--
2.55.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-23 14:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-23 14:35 [PATCH] m68knommu: fix compile breakage for 5407 cleopatra board Greg Ungerer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.