arm: tegra: devices: Set emc rate for avp
Prashant Gaikwad [Fri, 8 Jul 2011 09:25:19 +0000 (14:25 +0530)]
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

arch/arm/mach-tegra/devices.c

index 0254aad..53094a2 100644 (file)
@@ -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,
        },
 };