Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9c92783 authored by Arnaud Patard's avatar Arnaud Patard Committed by Sascha Hauer
Browse files

iMX: Fix build for iMX53



Commit fad10708 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.

Signed-off-by: default avatarArnaud Patard <arnaud.patard@rtp-net.org>
Tested-by: default avatarSteev Klimaszewski <steev@genesi-usa.com>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent 546fb6cb
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -44,6 +44,14 @@
#define UART_PADDR	MX51_UART1_BASE_ADDR
#endif

/* iMX50/53 have same addresses, but not iMX51 */
#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