msm_serial_hs_lite: Enable clock when configuring the GSBI
Enable the bus clock when configuring the GSBI registers for UART mode in the msm_serial_hs_lite driver. CRs-Fixed: 292755 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
This commit is contained in:
committed by
Bryan Huntsman
parent
8d1f8724f0
commit
131d2e7746
@@ -795,11 +795,16 @@ static void msm_hsl_config_port(struct uart_port *port, int flags)
|
|||||||
if (msm_hsl_request_port(port))
|
if (msm_hsl_request_port(port))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (msm_serial_hsl_has_gsbi(port))
|
if (msm_serial_hsl_has_gsbi(port)) {
|
||||||
|
if (msm_hsl_port->pclk)
|
||||||
|
clk_enable(msm_hsl_port->pclk);
|
||||||
if ((ioread32(msm_hsl_port->mapped_gsbi + GSBI_CONTROL_ADDR) &
|
if ((ioread32(msm_hsl_port->mapped_gsbi + GSBI_CONTROL_ADDR) &
|
||||||
GSBI_PROTOCOL_I2C_UART) != GSBI_PROTOCOL_I2C_UART)
|
GSBI_PROTOCOL_I2C_UART) != GSBI_PROTOCOL_I2C_UART)
|
||||||
iowrite32(GSBI_PROTOCOL_I2C_UART,
|
iowrite32(GSBI_PROTOCOL_I2C_UART,
|
||||||
msm_hsl_port->mapped_gsbi + GSBI_CONTROL_ADDR);
|
msm_hsl_port->mapped_gsbi + GSBI_CONTROL_ADDR);
|
||||||
|
if (msm_hsl_port->pclk)
|
||||||
|
clk_disable(msm_hsl_port->pclk);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int msm_hsl_verify_port(struct uart_port *port,
|
static int msm_hsl_verify_port(struct uart_port *port,
|
||||||
|
|||||||
Reference in New Issue
Block a user