From bfec3f74618e070e2de936160947df41b3bc5169 Mon Sep 17 00:00:00 2001 From: Bhushan Rayrikar Date: Sat, 20 Aug 2011 15:22:44 -0700 Subject: 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 Reviewed-by: Jihoon Bang Tested-by: Jihoon Bang Reviewed-by: Ryan Wong Tested-by: Ryan Wong --- arch/arm/mach-tegra/board-enterprise.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arch') 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 #include #include +#include #include #include @@ -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 = { -- cgit v1.2.3