Skip to contentSkip to conversation

m68knommu: fix compile breakage for 5407 cleopatra board

PATCH New Greg Ungerer 1 participant 1 message Sep 23

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m68knommu: fix compile breakage for 5407 cleopatra board

From: Greg Ungerer <[email protected]>

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.

---
 arch/m68k/coldfire/m5407.c | 5 +++++
 1 file changed, 5 insertions(+)
arch/m68k/coldfire/m5407.c +5 -0
index 23a14416241c..1f3e30b33398 100644
@@ -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);
 
Signature · 1 line
2.55.0