]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ARM: tegra: usb: Add config option to increase cpu freq
authorRakesh Bodla <rbodla@nvidia.com>
Wed, 4 Jul 2012 05:22:56 +0000 (10:52 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 19:13:25 +0000 (12:13 -0700)
Adding an option to increase the cpu frequency to
improve usb gadget transfer rate performance.

Bug 923594

Reviewed-on: http://git-master/r/80050
(cherry picked from commit d67b47bbb8322d65f745dcb2226af3f3d582d69a)

Conflicts:

arch/arm/mach-tegra/Kconfig

Change-Id: I4b23fc9948aec37ec58891205ec7dd02f0597af2
Reviewed-on: http://git-master/r/113437
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Rebase-Id: Ra2ea1650109a141610775585a6c83e19366500bd

arch/arm/mach-tegra/Kconfig
drivers/usb/gadget/tegra_udc.c

index 1275fc9910920adc20f43fb1b8478efd2558e357..4b5a6c052eceab60e3f89d5c4aa2a1086918df1c 100644 (file)
@@ -257,6 +257,17 @@ config TEGRA_EMC_TO_DDR_CLOCK
        default "2" if ARCH_TEGRA_2x_SOC
        default "1"
 
+config TEGRA_GADGET_BOOST_CPU_FREQ
+       int "Boost cpu frequency for tegra usb gadget (0-1300 mhz)"
+       range 0 1300
+       default 0
+       help
+         Devices need to boost frequency of CPU when they are connected
+         to host pc through usb cable for better performance. This value
+         is the amount of the frequency (in mhz) to be boosted. If it is
+         zero boosting frequency will not be enabled. This value will be
+         used only by usb gadget driver.
+
 config TEGRA_DYNAMIC_PWRDET
        bool "Enable dynamic activation of IO level auto-detection"
        depends on TEGRA_SILICON_PLATFORM
index 1c73ff0c3e3e61893370255249e09f6dc730e866..e30667c8bd7aaf917f45094adc56b295d9411ad9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012 NVIDIA Corporation
+ * Copyright (c) 2012, NVIDIA CORPORATION.  All rights reserved.
  *
  * Description:
  * High-speed USB device controller driver.
@@ -37,6 +37,7 @@
 #include <linux/workqueue.h>
 #include <linux/err.h>
 #include <linux/io.h>
+#include <linux/pm_qos.h>
 
 #include <asm/byteorder.h>
 #include <asm/io.h>
@@ -96,7 +97,7 @@ static const u8 tegra_udc_test_packet[53] = {
 static struct tegra_udc *the_udc;
 
 #ifdef CONFIG_TEGRA_GADGET_BOOST_CPU_FREQ
-       static struct pm_qos_request_list boost_cpu_freq_req;
+       static struct pm_qos_request boost_cpu_freq_req;
        static u32 ep_queue_request_count;
        static u8 boost_cpufreq_work_flag;
 #endif