From 8b08200528431dbe4fce3ff2351ee2bc7830a357 Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Thu, 24 Sep 2026 00:23:33 +1000 Subject: [PATCH] m68knommu: fix compile breakage for 5407 cleopatra board 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 --- 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); -- knotmirror 0.0.1