If "debug_uart" is specified in the command line, uart will
be sourced from 24MHz XTAL. This is required for getting the
correct power measurements on MX6SL.
Certain analog power optimizations are done only if ALL PLLs
are bypassed on MX6SL. To verify this path, we need to ensure
that UART is not sourced from PLL3.
Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
return 0;
}
+extern int uart_at_24;
+
static int serial_imx_probe(struct platform_device *pdev)
{
struct imx_port *sport;
ret = PTR_ERR(sport->clk);
goto unmap;
}
+ if (uart_at_24)
+ clk_set_parent(sport->clk, clk_get(NULL, "osc"));
+
clk_enable(sport->clk);
sport->port.uartclk = clk_get_rate(sport->clk);