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

Commit 31bac137 authored by Doug Anderson's avatar Doug Anderson Committed by Olof Johansson
Browse files

ARM: tegra: uncompress.h: Store UART address in a variable



This will allow a future change to auto-detect which UART to use.

Signed-off-by: default avatarDoug Anderson <dianders@chromium.org>
[swarren: Extracted from a larger patch by Doug]
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
Tested-by: default avatarDoug Anderson <dianders@chromium.org>
Acked-by: default avatarDoug Anderson <dianders@chromium.org>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 229c7b22
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -30,10 +30,10 @@

#define DEBUG_UART_SHIFT 2

volatile u8 *uart;

static void putc(int c)
{
	volatile u8 *uart = (volatile u8 *)TEGRA_DEBUG_UART_BASE;

	if (uart == NULL)
		return;

@@ -50,8 +50,8 @@ static inline void arch_decomp_setup(void)
{
	volatile u32 *apb_misc = (volatile u32 *)TEGRA_APB_MISC_BASE;
	u32 chip, div;
	volatile u8 *uart = (volatile u8 *)TEGRA_DEBUG_UART_BASE;

	uart = (volatile u8 *)TEGRA_DEBUG_UART_BASE;
	if (uart == NULL)
		return;