提交 31bac137 编写于 作者: D Doug Anderson 提交者: Olof Johansson

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: NDoug Anderson <dianders@chromium.org>
[swarren: Extracted from a larger patch by Doug]
Signed-off-by: NStephen Warren <swarren@nvidia.com>
Tested-by: NDoug Anderson <dianders@chromium.org>
Acked-by: NDoug Anderson <dianders@chromium.org>
Signed-off-by: NOlof Johansson <olof@lixom.net>
上级 229c7b22
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册