msm8974: Enable UART
Add clock and gpio support needed for UART on 8974.
Change-Id: I277941c8fa4c1dad8cf241e638dde71d156c6fb4
diff --git a/platform/copper/gpio.c b/platform/copper/gpio.c
index 86b9e40..806aab4 100644
--- a/platform/copper/gpio.c
+++ b/platform/copper/gpio.c
@@ -54,9 +54,11 @@
/* Configure gpio for blsp uart 2 */
void gpio_config_uart_dm(uint8_t id)
{
- gpio_tlmm_config(0, 2, GPIO_OUTPUT, GPIO_NO_PULL,
+ /* configure rx gpio */
+ gpio_tlmm_config(5, 2, GPIO_INPUT, GPIO_NO_PULL,
GPIO_8MA, GPIO_DISABLE);
- gpio_tlmm_config(1, 2, GPIO_INPUT, GPIO_NO_PULL,
+ /* configure tx gpio */
+ gpio_tlmm_config(4, 2, GPIO_OUTPUT, GPIO_NO_PULL,
GPIO_8MA, GPIO_DISABLE);
}