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
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
/*
- * Copyright (C) 2012 NVIDIA Corporation
+ * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
*
* Description:
* High-speed USB device controller driver.
#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>
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