summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/devices.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-02-22 17:35:38 +0530
committerSimone Willett <swillett@nvidia.com>2012-02-23 21:19:09 -0800
commit97d4143b0c92d5e34ddce226c9fe35c16c87017b (patch)
tree7097699b19bac9f84b688f1ef40f2d593d8f6f70 /arch/arm/mach-tegra/devices.c
parent809057a612651f4562d288d9d5730f358f25cd2a (diff)
ARM: tegra: clock src initialisation for debug port in common place
Moving clock source rate initialisation of debug ports in common place from board files. In this way, it does not need to call the same function from all board files and so avoid duplicating. Change-Id: I4e0292c7760488125c0dd8ee5fa23f50faca3436 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/85174 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r--arch/arm/mach-tegra/devices.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c
index 39bc04bd2e39..65a5fadefad5 100644
--- a/arch/arm/mach-tegra/devices.c
+++ b/arch/arm/mach-tegra/devices.c
@@ -38,12 +38,6 @@
#include "gpio-names.h"
#include "devices.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,
@@ -806,7 +800,6 @@ static struct plat_serial8250_port debug_uarta_platform_data[] = {
.type = PORT_TEGRA,
.iotype = UPIO_MEM,
.regshift = 2,
- .uartclk = UART_SOURCE_RATE,
},
{
.flags = 0,
@@ -822,7 +815,6 @@ static struct plat_serial8250_port debug_uartb_platform_data[] = {
.type = PORT_TEGRA,
.iotype = UPIO_MEM,
.regshift = 2,
- .uartclk = UART_SOURCE_RATE,
},
{
.flags = 0,
@@ -838,7 +830,6 @@ static struct plat_serial8250_port debug_uartc_platform_data[] = {
.type = PORT_TEGRA,
.iotype = UPIO_MEM,
.regshift = 2,
- .uartclk = UART_SOURCE_RATE,
},
{
.flags = 0,
@@ -854,7 +845,6 @@ static struct plat_serial8250_port debug_uartd_platform_data[] = {
.type = PORT_TEGRA,
.iotype = UPIO_MEM,
.regshift = 2,
- .uartclk = UART_SOURCE_RATE,
},
{
.flags = 0,
@@ -871,7 +861,6 @@ static struct plat_serial8250_port debug_uarte_platform_data[] = {
.type = PORT_TEGRA,
.iotype = UPIO_MEM,
.regshift = 2,
- .uartclk = UART_SOURCE_RATE,
},
{
.flags = 0,
@@ -1735,7 +1724,7 @@ struct platform_device tegra_nvmap_device = {
.id = -1,
};
-void tegra_init_debug_uart_rate(void)
+void __init tegra_init_debug_uart_rate(void)
{
unsigned int uartclk;
struct clk *debug_uart_parent = clk_get_sys(NULL, "pll_p");