ARM: tegra: Include dvfs/edp for pre-si build
Jeff Smith [Fri, 9 Nov 2012 00:34:04 +0000 (16:34 -0800)]
This change is a part of the effort to enable runtime
platform detection and reduce compile-time conditionals.

Bug 1333554

Change-Id: I1fe2d6a603a1ade2cfeda220e81628b116c8df6f
Signed-off-by: Jeff Smith <jsmith@nvidia.com>
Reviewed-on: http://git-master/r/252551
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Chetan Kumar Nagamangala Govindaiah <chetankumarn@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

arch/arm/mach-tegra/Makefile
arch/arm/mach-tegra/edp.c

index 06aaeef..8c2d678 100644 (file)
@@ -109,12 +109,10 @@ obj-y                                   += latency_allowance.o
 obj-y                                   += tegra3_la.o
 obj-y                                   += tegra11x_la.o
 obj-y                                   += tegra14x_la.o
-ifeq ($(CONFIG_TEGRA_SILICON_PLATFORM),y)
 obj-$(CONFIG_TEGRA_EDP_LIMITS)          += edp.o
 obj-$(CONFIG_TEGRA_CORE_EDP_LIMITS)     += edp_core.o
 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_edp.o
 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += tegra14_edp.o
-endif
 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_speedo.o
 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += tegra14_speedo.o
 obj-$(CONFIG_ARCH_TEGRA_12x_SOC)        += tegra12_speedo.o
index 1c189f2..c46a444 100644 (file)
@@ -760,6 +760,9 @@ static int __init tegra_edp_debugfs_init(void)
        struct dentry *edp_dir;
        struct dentry *vdd_cpu_dir;
 
+       if (!tegra_platform_is_silicon())
+               return -ENOSYS;
+
        edp_dir = tegra_edp_debugfs_dir();
 
        if (!edp_dir)