Skip to content

Commit

Permalink
ARM: tegra: uncompress.h: Store UART address in a variable
Browse files Browse the repository at this point in the history
This will allow a future change to auto-detect which UART to use.

Signed-off-by: Doug Anderson <dianders@chromium.org>
[swarren: Extracted from a larger patch by Doug]
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Doug Anderson <dianders@chromium.org>
Acked-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Doug Anderson authored and Olof Johansson committed Feb 7, 2012
1 parent 229c7b2 commit 31bac13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/arm/mach-tegra/include/mach/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down

0 comments on commit 31bac13

Please sign in to comment.