diff options
author | Prashant Gaikwad <pgaikwad@nvidia.com> | 2011-07-08 14:55:19 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:47:27 -0800 |
commit | d3df73888a69d7ff7f1fb7250d0eabbc997ccd4f (patch) | |
tree | 8c90e2d835dbaf545fd3214a3e7fb100001c1952 /arch/arm/mach-tegra/devices.c | |
parent | 22dc8ddddd5bda158e5648c780e5c31d9fcdfc44 (diff) |
arm: tegra: devices: Set emc rate for avp
Set emc clock rate for avp client as required by the platform.
Original-Change-Id: I10374e1967cda6a9f497ba0a95bd62c3b58ecc40
Reviewed-on: http://git-master/r/40167
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: R54697789f03d9465339029b49cba336cb9592c88
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r-- | arch/arm/mach-tegra/devices.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c index 0254aad613ff..53094a262e8d 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -26,6 +26,7 @@ #include <linux/serial_8250.h> #include <linux/i2c-tegra.h> #include <linux/platform_data/tegra_usb.h> +#include <linux/tegra_avp.h> #include <asm/pmu.h> #include <mach/irqs.h> #include <mach/iomap.h> @@ -1393,6 +1394,14 @@ struct platform_device tegra_grhost_device = { .num_resources = ARRAY_SIZE(tegra_grhost_resources), }; +static struct tegra_avp_platform_data tegra_avp_pdata = { +#ifdef CONFIG_ARCH_TEGRA_2x_SOC + .emc_clk_rate = ULONG_MAX, +#else + .emc_clk_rate = 200000000, +#endif +}; + static struct resource tegra_avp_resources[] = { [0] = { .start = INT_SHR_SEM_INBOX_IBF, @@ -1409,6 +1418,7 @@ struct platform_device tegra_avp_device = { .resource = tegra_avp_resources, .dev = { .coherent_dma_mask = 0xffffffffULL, + .platform_data = &tegra_avp_pdata, }, }; |