diff options
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r-- | arch/arm/mach-tegra/devices.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c index 1142a402b60d..39523ae61206 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -33,6 +33,12 @@ #include <mach/usb_phy.h> #include "gpio-names.h" +#if !defined(CONFIG_ARCH_TEGRA_2x_SOC) +#define UART_SOURCE_RATE 408000000 +#else +#define UART_SOURCE_RATE 216000000 +#endif + static struct resource i2c_resource1[] = { [0] = { .start = INT_I2C, @@ -723,7 +729,7 @@ static struct plat_serial8250_port debug_uarta_platform_data[] = { .type = PORT_TEGRA, .iotype = UPIO_MEM, .regshift = 2, - .uartclk = 216000000, + .uartclk = UART_SOURCE_RATE, }, { .flags = 0, @@ -739,7 +745,7 @@ static struct plat_serial8250_port debug_uartb_platform_data[] = { .type = PORT_TEGRA, .iotype = UPIO_MEM, .regshift = 2, - .uartclk = 216000000, + .uartclk = UART_SOURCE_RATE, }, { .flags = 0, @@ -755,7 +761,7 @@ static struct plat_serial8250_port debug_uartc_platform_data[] = { .type = PORT_TEGRA, .iotype = UPIO_MEM, .regshift = 2, - .uartclk = 216000000, + .uartclk = UART_SOURCE_RATE, }, { .flags = 0, @@ -771,7 +777,7 @@ static struct plat_serial8250_port debug_uartd_platform_data[] = { .type = PORT_TEGRA, .iotype = UPIO_MEM, .regshift = 2, - .uartclk = 216000000, + .uartclk = UART_SOURCE_RATE, }, { .flags = 0, @@ -788,7 +794,7 @@ static struct plat_serial8250_port debug_uarte_platform_data[] = { .type = PORT_TEGRA, .iotype = UPIO_MEM, .regshift = 2, - .uartclk = 216000000, + .uartclk = UART_SOURCE_RATE, }, { .flags = 0, |