summaryrefslogtreecommitdiff
path: root/include/linux/usb
diff options
context:
space:
mode:
authorPhilip Rakity <prakity@nvidia.com>2014-01-29 11:00:46 +0000
committerJuha Tukkinen <jtukkinen@nvidia.com>2014-02-13 03:22:40 -0800
commit9669f646d2ae5c78c4f93739a855d7d73822bbd8 (patch)
tree7c345fc0a51b3df6d350dd60aa7473ff3be8f0ca /include/linux/usb
parentd2e049dae9d99dcd30dbdbe06566d5f4fd47fcd7 (diff)
include: usb: add include files for QC2
Add support for Quick Charge 2 charger. Charger support 5V, 9V, 12V and 20V charging. Bug 1424733 Change-Id: Iad0c8d0394a1d091655611e9d2ebeef7f51c15c9 Reviewed-on: http://git-master/r/361517 (cherry picked from commit 606a0b2282f2c702609078f38def8c39c784623a) Signed-off-by: Philip Rakity <prakity@nvidia.com> Reviewed-on: http://git-master/r/363210 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jay Cheng <jacheng@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/tegra_usb_phy.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/usb/tegra_usb_phy.h b/include/linux/usb/tegra_usb_phy.h
index cdab5a1b2611..affb6de3912f 100644
--- a/include/linux/usb/tegra_usb_phy.h
+++ b/include/linux/usb/tegra_usb_phy.h
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2010 Google, Inc.
- * Copyright (c) 2011-2013, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
@@ -95,6 +95,14 @@ bool tegra_usb_phy_hw_accessible(struct tegra_usb_phy *phy);
bool tegra_usb_phy_charger_detected(struct tegra_usb_phy *phy);
/**
+ * Indicates whether qc2 charger is connected or not
+ * if QuickCharge 2 DCP returns true
+ * if standard CDP/DCP returns false
+ */
+bool tegra_usb_phy_qc2_charger_detected(struct tegra_usb_phy *phy,
+ int max_voltage);
+
+/**
* Indicates whether nvidia proprietary charger is connected or not
* if nvidia proprietary charger is detected then returns true else false
*/