Skip to contentSkip to conversation

iMX: Fix build for iMX53

PATCH New Arnaud Patard (Rtp) 3 participants 3 messages Aug 5, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

PATCH 1/1 iMX: Fix build for iMX53

Quoted 15 lines · Arnaud Patard

Commit fad107086d5a869c1c07e5bb35b7b57a10ecf578 fixed the wrong test for MX51 as the MX51 addresses are wrong for MX50 and MX53 but now it's MX51 only, UART_PADDR is not defined anymore when building for MX50/MX53.

Index: linux-2.6/arch/arm/plat-mxc/include/mach/debug-macro.S
===================================================================

arch/arm/plat-mxc/include/mach/debug-macro.S +1 -0
@@ -44,6 +44,14 @@
 #define UART_PADDR	MX51_UART1_BASE_ADDR
 #endif
 
+/* iMX50/53 have same addresses, but not iMX51 */

arch/arm/plat-mxc/include/mach/debug-macro.S line 57

Quoted 10 lines
arch/arm/plat-mxc/include/mach/debug-macro.S +7 -0
+#if defined(CONFIG_SOC_IMX50) || defined(CONFIG_SOC_IMX53)
+#ifdef UART_PADDR
+#error "CONFIG_DEBUG_LL is incompatible with multiple archs"
+#endif
+#define UART_PADDR	MX53_UART1_BASE_ADDR
+#endif
+
 #define UART_VADDR	IMX_IO_ADDRESS(UART_PADDR)
 
 		.macro	addruart, rp, rv

Looks good

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
#3 lore raw

PATCH 1/1 iMX: Fix build for iMX53

In reply to Arnaud Patard (Rtp)

Hello.

Quoted 1 line · Arnaud Patard (Rtp)

Commit fad107086d5a869c1c07e5bb35b7b57a10ecf578 fixed the wrong test for MX51

Please specify that commit's summary in parens.

Quoted 5 lines

as the MX51 addresses are wrong for MX50 and MX53 but now it's MX51 only, UART_PADDR is not defined anymore when building for MX50/MX53.

WBR, Sergei