diff options
Diffstat (limited to 'arch/arm/mach-tegra/common.c')
-rw-r--r-- | arch/arm/mach-tegra/common.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c index 96ca3c54f5c2..a5f373ec0284 100644 --- a/arch/arm/mach-tegra/common.c +++ b/arch/arm/mach-tegra/common.c @@ -96,6 +96,7 @@ static int pmu_core_edp = 1200; /* default 1.2V EDP limit */ static int board_panel_type; static enum power_supply_type pow_supply_type; static int modem_id; +static int debug_uart_port_id; void (*tegra_reset)(char mode, const char *cmd); /* WARNING: There is implicit client of pllp_out3 like i2c, uart, dsi @@ -522,11 +523,17 @@ __setup("core_edp_mv=", tegra_pmu_core_edp); static int __init tegra_debug_uartport(char *info) { - if (!strcmp(info, "hsport")) + char *p = info; + if (!strncmp(p, "hsport", 6)) is_tegra_debug_uart_hsport = true; - else if (!strcmp(info, "lsport")) + else if (!strncmp(p, "lsport", 6)) is_tegra_debug_uart_hsport = false; + if (p[6] == ',') + debug_uart_port_id = memparse(p + 7, &p); + else + debug_uart_port_id = -1; + return 1; } @@ -535,6 +542,10 @@ bool is_tegra_debug_uartport_hs(void) return is_tegra_debug_uart_hsport; } +int get_tegra_uart_debug_port_id(void) +{ + return debug_uart_port_id; +} __setup("debug_uartport=", tegra_debug_uartport); void tegra_get_board_info(struct board_info *bi) |