diff options
author | Bhushan Rayrikar <brayrikar@nvidia.com> | 2011-08-20 15:22:44 -0700 |
---|---|---|
committer | Ryan Wong <ryanw@nvidia.com> | 2011-08-24 17:13:35 -0700 |
commit | bfec3f74618e070e2de936160947df41b3bc5169 (patch) | |
tree | 896c87ae8354660914bd82ba0ee44b85b178e798 /arch | |
parent | 6cf0ae80e615f399fe449a0ebf046993543ac143 (diff) |
ARM: tegra: board-enterprise: Control for governor
Add control to allow setting governor from tegra_camera
Bug 853164
Change-Id: I89c723ebe8be5ad907214c18e4084f03e26171bf
Reviewed-on: http://git-master/r/48339
Tested-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Ryan Wong <ryanw@nvidia.com>
Tested-by: Ryan Wong <ryanw@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/board-enterprise.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise.c b/arch/arm/mach-tegra/board-enterprise.c index 32b20c02c14c..e267507d9ded 100644 --- a/arch/arm/mach-tegra/board-enterprise.c +++ b/arch/arm/mach-tegra/board-enterprise.c @@ -37,6 +37,7 @@ #include <linux/spi/spi.h> #include <linux/tegra_uart.h> #include <linux/fsl_devices.h> +#include <media/tegra_camera.h> #include <mach/clk.h> #include <mach/iomap.h> @@ -710,9 +711,18 @@ static struct platform_device tegra_rtc_device = { .num_resources = ARRAY_SIZE(tegra_rtc_resources), }; +static struct tegra_camera_platform_data tegra_pdata = { + .set_conservative_governor = cpufreq_set_conservative_governor, + .save_default_governor = cpufreq_save_default_governor, + .restore_default_governor = cpufreq_restore_default_governor, +}; + static struct platform_device tegra_camera = { .name = "tegra_camera", .id = -1, + .dev = { + .platform_data = &tegra_pdata, + }, }; static struct platform_device *enterprise_devices[] __initdata = { |