m68knommu: fix compile breakage for 5407 cleopatra board
Subsystems (2)
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
@@ -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