platform: msm8610: Add GPIO config for the BLSP1 UART2.
Change-Id: I74f17d6b31d6a65e53125425d38e4d231d3d55e2
diff --git a/platform/msm8610/gpio.c b/platform/msm8610/gpio.c
index f67c014..f6a47ca 100644
--- a/platform/msm8610/gpio.c
+++ b/platform/msm8610/gpio.c
@@ -58,4 +58,19 @@
/* Configure gpio for blsp uart 2 */
void gpio_config_uart_dm(uint8_t id)
{
+ switch(id)
+ {
+ case 2:
+ /* Configure GPIOs for BLSP1 UART2. */
+ /* configure rx gpio */
+ gpio_tlmm_config(5, 2, GPIO_INPUT, GPIO_NO_PULL,
+ GPIO_8MA, GPIO_DISABLE);
+
+ /* configure tx gpio */
+ gpio_tlmm_config(4, 2, GPIO_OUTPUT, GPIO_NO_PULL,
+ GPIO_8MA, GPIO_DISABLE);
+ break;
+ default:
+ dprintf(CRITICAL, "No gpio config found for uart id = %d\n", id);
+ }
}