]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: tegra: turn on UART A clock at boot
authorStephen Warren <swarren@nvidia.com>
Tue, 24 Jul 2012 21:44:11 +0000 (15:44 -0600)
committerStephen Warren <swarren@nvidia.com>
Thu, 6 Sep 2012 17:47:18 +0000 (11:47 -0600)
Some boards use UART D for the main serial console, and some use UART A.
UART D's clock is listed in board-dt-tegra20.c's clock table, whereas
UART A's clock is not. This causes the clock code to think UART A's
clock is unsed. The common clock framework turns off unused clocks at
boot time. This makes the kernel appear to hang. Add UART A's clock into
the clock table to prevent this. Eventually, this requirement should be
handled by the UART driver, and/or properties in a board-specific device
tree file.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/mach-tegra/board-dt-tegra20.c

index c0999633a9ab24054a2c5e2cc9d526c020320b8c..b4e7cc14713cb0e2c0a9d4de05db4622aac943bc 100644 (file)
@@ -71,6 +71,7 @@ struct of_dev_auxdata tegra20_auxdata_lookup[] __initdata = {
 
 static __initdata struct tegra_clk_init_table tegra_dt_clk_init_table[] = {
        /* name         parent          rate            enabled */
+       { "uarta",      "pll_p",        216000000,      true },
        { "uartd",      "pll_p",        216000000,      true },
        { "usbd",       "clk_m",        12000000,       false },
        { "usb2",       "clk_m",        12000000,       false },