msm8930 sglte: Add support for GSBI11 for serial console
This change adds GSBI11 UARTDM device and required resource
(its GPIOs and clocks) with their configurations for 8930
SGLTE EVT2 for serial console functionality.
CRs-Fixed: 459320
Change-Id: I552da00481feefb9b8c6857799995b5a0caade85
Signed-off-by: Saket Saurabh <ssaurabh@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8930-gpiomux.c b/arch/arm/mach-msm/board-8930-gpiomux.c
index b35be55..dcae37c 100644
--- a/arch/arm/mach-msm/board-8930-gpiomux.c
+++ b/arch/arm/mach-msm/board-8930-gpiomux.c
@@ -40,6 +40,29 @@
},
};
+/* GSBI11 UART configurations */
+static struct gpiomux_setting gsbi11_uart_cfg = {
+ .func = GPIOMUX_FUNC_1,
+ .drv = GPIOMUX_DRV_10MA,
+ .pull = GPIOMUX_PULL_NONE,
+};
+
+static struct msm_gpiomux_config msm8930_gsbi11_uart_configs[] __initdata = {
+ {
+ .gpio = 38, /* GSBI11 UART TX */
+ .settings = {
+ [GPIOMUX_SUSPENDED] = &gsbi11_uart_cfg,
+ },
+ },
+ {
+ .gpio = 39, /* GSBI11 UART RX */
+ .settings = {
+ [GPIOMUX_SUSPENDED] = &gsbi11_uart_cfg,
+ },
+ },
+};
+
+
/* The SPI configurations apply to GSBI 1*/
static struct gpiomux_setting spi_active = {
.func = GPIOMUX_FUNC_1,
@@ -1038,6 +1061,9 @@
if (minor_ver == 0)
msm_gpiomux_install(msm8930_gsbi10_uart_configs,
ARRAY_SIZE(msm8930_gsbi10_uart_configs));
+ else if (minor_ver == 1)
+ msm_gpiomux_install(msm8930_gsbi11_uart_configs,
+ ARRAY_SIZE(msm8930_gsbi11_uart_configs));
}
/* For SGLTE 8960 Fusion External VFR */