nsekar@codeaurora.org has uploaded this change for review.

View Change

libpayload: Fix uart driver for qcs405 support

Change-Id: Ied54cf5dd13e9ab752533ad07e9ea906f41060b8
Signed-off-by: Nitheesh Sekar <nsekar@codeaurora.org>
Signed-off-by: Sricharan R <sricharan@codeaurora.org>
---
M payloads/libpayload/drivers/serial/ipq40xx.c
1 file changed, 5 insertions(+), 3 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/65/29965/1
diff --git a/payloads/libpayload/drivers/serial/ipq40xx.c b/payloads/libpayload/drivers/serial/ipq40xx.c
index 52d71b8..6ffa3f9 100644
--- a/payloads/libpayload/drivers/serial/ipq40xx.c
+++ b/payloads/libpayload/drivers/serial/ipq40xx.c
@@ -269,7 +269,7 @@
#define MSM_BOOT_UART_DM_E_RX_NOT_READY 5

#define UART1_DM_BASE ((void *)0x078af000)
-#define UART2_DM_BASE ((void *)0x078b0000)
+#define UART2_DM_BASE ((void *)0x078b1000)

enum {
BLSP1_UART1,
@@ -288,8 +288,8 @@
* board/qcom/ipq40xx_cdp/ipq40xx_board_param.h
*/
static const uart_params_t uart_board_param = {
- .uart_dm_base = UART1_DM_BASE,
- .blsp_uart = BLSP1_UART1,
+ .uart_dm_base = UART2_DM_BASE,
+ .blsp_uart = BLSP1_UART2,
};

#define write32(addr, val) writel(val, addr)
@@ -558,6 +558,8 @@
if (!sc_ptr)
return;

+ msm_boot_uart_dm_init(uart_board_param.uart_dm_base);
+
consin.havekey = serial_havechar;
consin.getchar = serial_getchar;


To view, visit change 29965. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ied54cf5dd13e9ab752533ad07e9ea906f41060b8
Gerrit-Change-Number: 29965
Gerrit-PatchSet: 1
Gerrit-Owner: nsekar@codeaurora.org
Gerrit-MessageType: newchange