ARM: tegra: bonaire: Lower UART clock for QT
Adeel Raza [Fri, 21 Sep 2012 20:17:47 +0000 (13:17 -0700)]
UART clock is slower in QT compared to silicon. Therefore, lower UART
clock for QT.

Change-Id: Ib2c3acbced3315a78450392528823c5d999db10b
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/134545
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mark Stadler <mastadler@nvidia.com>

arch/arm/mach-tegra/board-bonaire.c

index 2206c68..875acfd 100644 (file)
@@ -531,6 +531,10 @@ static void __init tegra_bonaire_init(void)
        tegra_enable_pinmux();
        bonaire_pinmux_init();
 
+       if (tegra_revision == TEGRA_REVISION_QT)
+               debug_uart_platform_data[0].uartclk =
+                                               tegra_clk_measure_input_freq();
+
        platform_add_devices(bonaire_devices, ARRAY_SIZE(bonaire_devices));
 
 #ifdef CONFIG_TEGRA_SIMULATION_PLATFORM