arm: tegra: la: Add config option for latency allowance.
Krishna Reddy [Thu, 23 Aug 2012 20:57:47 +0000 (13:57 -0700)]
This allows enable/disable latency allowance.

Change-Id: Iee2cb320f40de902e0c2792c516d7ac108451224
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/126984
GVS: Gerrit_Virtual_Submit

Rebase-Id: R59d215bff70a652b9277282dd7756067e00774ef

arch/arm/mach-tegra/Kconfig
arch/arm/mach-tegra/Makefile
arch/arm/mach-tegra/include/mach/latency_allowance.h

index f95fcae..8f3c921 100644 (file)
@@ -77,6 +77,7 @@ config ARCH_TEGRA_3x_SOC
        select PL310_ERRATA_727915
        select PL310_ERRATA_769419 if CACHE_L2X0
        select REPORT_PRESENT_CPUS if TEGRA_AUTO_HOTPLUG
+       select TEGRA_LATENCY_ALLOWANCE if !TEGRA_FPGA_PLATFORM
        select TEGRA_LP2_CPU_TIMER if HAVE_ARM_TWD && !TEGRA_RAIL_OFF_MULTIPLE_CPUS
        select USB_ARCH_HAS_EHCI if USB_SUPPORT
        select USB_ULPI if USB_PHY
@@ -418,4 +419,13 @@ config TEGRA_LP1_950
        depends on ARCH_TEGRA_3x_SOC
        help
                Enable support for LP1 Core voltage to set to lowest
+config TEGRA_LATENCY_ALLOWANCE
+       bool "Allow memory clients to configure latency allowance"
+       help
+         Latency allowance is a per-memory-client setting that tells the
+         memory controller how long it can ignore a request in favor of
+         others. In other words, It indicates how long a request from specific
+         memory client can wait before it is served.
+         Enabling this option allows memory clients configure the
+         latency allowance as per their bandwidth requirement.
 endif
index 70f10e7..53a3b31 100644 (file)
@@ -67,7 +67,7 @@ obj-$(CONFIG_TEGRA_ARB_SEMAPHORE)       += arb_sema.o
 obj-y                                   += dvfs.o
 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_dvfs.o
 ifeq ($(CONFIG_TEGRA_SILICON_PLATFORM),y)
-obj-y                                   += latency_allowance.o
+obj-$(CONFIG_TEGRA_LATENCY_ALLOWANCE)   += latency_allowance.o
 obj-$(CONFIG_TEGRA_EDP_LIMITS)          += edp.o
 endif
 ifeq ($(CONFIG_TEGRA_SILICON_PLATFORM),y)
index 3f4764b..aaab168 100644 (file)
@@ -88,7 +88,7 @@ enum tegra_la_id {
        TEGRA_LA_MAX_ID
 };
 
-#if defined(CONFIG_ARCH_TEGRA_2x_SOC) || !defined(CONFIG_TEGRA_SILICON_PLATFORM)
+#if !defined(CONFIG_TEGRA_LATENCY_ALLOWANCE)
 static inline int tegra_set_latency_allowance(enum tegra_la_id id,
                                                unsigned int bandwidth_in_mbps)
 {