platform: tegra: add mipi cal config
Adeel Raza [Thu, 10 Jul 2014 16:52:17 +0000 (09:52 -0700)]
Add config for enabling/disabling camera MIPI calibration code.

Bug 1509349

Change-Id: I15da2b9c1c32ce7bee919fa8349c75d41ac388db
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/436706
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

drivers/platform/tegra/Kconfig
drivers/platform/tegra/Makefile

index 6ded392..a3aa5e3 100644 (file)
@@ -50,3 +50,9 @@ config TEGRA_CBUS_CAN_USE_SKIPPERS
        help
          When enabled, clock skippers for cbus modules can be used to provide
          fine granularity clock rate control
+
+config TEGRA_CAMERA_MIPI_CAL
+       bool "Tegra camera MIPI calibration"
+       default y
+       help
+         Enable Tegra camera MIPI calibration.
index 287ade9..e18b694 100644 (file)
@@ -11,11 +11,7 @@ obj-$(CONFIG_TEGRA_FIQ_DEBUGGER)        += tegra_fiq_debugger.o
 obj-$(CONFIG_TEGRA_IOMMU_SMMU)          += iommu.o
 obj-$(CONFIG_TEGRA_BOOTLOADER_DEBUG)    += tegra_bootloader_debug.o
 
-ifneq ($(CONFIG_ARCH_TEGRA_2x_SOC),y)
-ifneq ($(CONFIG_ARCH_TEGRA_3x_SOC),y)
-obj-y                                   += mipi-cal.o
-endif
-endif
+obj-$(CONFIG_TEGRA_CAMERA_MIPI_CAL)     += mipi-cal.o
 obj-$(CONFIG_TEGRA_NVADSP)             += nvadsp/
 
 obj-y += mc/