diff options
Diffstat (limited to 'arch/arm/mach-tegra/common.c')
-rw-r--r-- | arch/arm/mach-tegra/common.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c index 2024612a718e..725765ec7a09 100644 --- a/arch/arm/mach-tegra/common.c +++ b/arch/arm/mach-tegra/common.c @@ -51,6 +51,7 @@ unsigned long tegra_carveout_size; unsigned long tegra_lp0_vec_start; unsigned long tegra_lp0_vec_size; unsigned long tegra_grhost_aperture; +static bool is_tegra_debug_uart_hsport; static struct board_info tegra_board_info = { .board_id = -1, @@ -229,6 +230,23 @@ static int __init tegra_board_info_parse(char *info) __setup("board_info=", tegra_board_info_parse); +static int __init tegra_debug_uartport(char *info) +{ + if (!strcmp(info, "hsport")) + is_tegra_debug_uart_hsport = true; + else if (!strcmp(info, "lsport")) + is_tegra_debug_uart_hsport = false; + + return 1; +} + +bool is_tegra_debug_uartport_hs(void) +{ + return is_tegra_debug_uart_hsport; +} + +__setup("debug_uartport=", tegra_debug_uartport); + void tegra_get_board_info(struct board_info *bi) { memcpy(bi, &tegra_board_info, sizeof(*bi)); |