From f425d20cc9c016bcb51312dc8736d23ade618ae2 Mon Sep 17 00:00:00 2001 From: Peter De Schrijver Date: Fri, 30 Mar 2012 11:38:47 +0300 Subject: cpuquiet: public interfaces for cpuquiet Change-Id: Ie391d6d11fad7b76b0bf5daff67ac46663651dc0 Signed-off-by: Peter De Schrijver Reviewed-on: http://git-master/r/105265 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Sai Gurrappadi Tested-by: Sai Gurrappadi Reviewed-by: Diwakar Tundlam --- include/linux/cpuquiet.h | 53 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 include/linux/cpuquiet.h (limited to 'include') diff --git a/include/linux/cpuquiet.h b/include/linux/cpuquiet.h new file mode 100644 index 000000000000..8459af7aad74 --- /dev/null +++ b/include/linux/cpuquiet.h @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2012 NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#ifndef _LINUX_CPUONLINE_H +#define _LINUX_CPUONLINE_H + +#include +#include + +#define CPUQUIET_NAME_LEN 16 + +struct cpuquiet_governor { + char name[CPUQUIET_NAME_LEN]; + struct list_head governor_list; + int (*start) (void); + void (*stop) (void); + int (*store_active) (unsigned int cpu, bool active); + struct module *owner; +}; + +struct cpuquiet_driver { + char name[CPUQUIET_NAME_LEN]; + int (*quiesence_cpu) (unsigned int cpunumber); + int (*wake_cpu) (unsigned int cpunumber); +}; + +extern int cpuquiet_register_governor(struct cpuquiet_governor *gov); +extern void cpuquiet_unregister_governor(struct cpuquiet_governor *gov); +extern int cpuquiet_quiesence_cpu(unsigned int cpunumber); +extern int cpuquiet_wake_cpu(unsigned int cpunumber); +extern int cpuquiet_register_driver(struct cpuquiet_driver *drv); +extern void cpuquiet_unregister_driver(struct cpuquiet_driver *drv); +extern int cpuquiet_add_group(struct attribute_group *attrs); +extern void cpuquiet_remove_group(struct attribute_group *attrs); +int cpuquiet_kobject_init(struct kobject *kobj, struct kobj_type *type, + char *name); +extern unsigned int nr_cluster_ids; +#endif -- cgit v1.2.3 From 3954ebe6f374e2cd0e0fde4742883dddd6202a7e Mon Sep 17 00:00:00 2001 From: Venu Byravarasu Date: Thu, 7 Jun 2012 14:57:12 +0530 Subject: usb: Add builtin_host support to platform data structure Add builtin_host variable to tegra USB platform data structure bug 947300 Change-Id: I0c5efd245a63c4331959f18faf316f1632e1801e Signed-off-by: Venu Byravarasu Reviewed-on: http://git-master/r/106982 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty GVS: Gerrit_Virtual_Submit --- include/linux/platform_data/tegra_usb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/linux/platform_data/tegra_usb.h b/include/linux/platform_data/tegra_usb.h index 911175086977..de17149b7842 100644 --- a/include/linux/platform_data/tegra_usb.h +++ b/include/linux/platform_data/tegra_usb.h @@ -119,6 +119,7 @@ struct tegra_usb_host_mode_data { struct tegra_usb_platform_data { bool port_otg; bool has_hostpc; + bool builtin_host_disabled; enum tegra_usb_phy_interface phy_intf; enum tegra_usb_operation_mode op_mode; -- cgit v1.2.3 From b17f01f41b5cd2a49e48b87fb51d59c181819d89 Mon Sep 17 00:00:00 2001 From: Rakesh Bodla Date: Thu, 7 Jun 2012 17:29:15 +0530 Subject: ARM: tegra3: usb: USB1_UTMIP_XCVR_CFG0_0 value changed Changed USB1_UTMIP_XCVR_CFG0_0 register value with values provided by sys-eng * Implemented algo as described on Bug 974236 * Added variable 'usb_calib_mask' in 'usb platform data' to make distinction on how many bits to mask in usb_calib_0 fuse Bug 978870 Bug 972436 Change-Id: I71f27b0cf5ffe33a9896238b01c52650ca632352 Signed-off-by: Rakesh Bodla Reviewed-on: http://git-master/r/103308 Reviewed-by: Simone Willett Tested-by: Simone Willett --- include/linux/platform_data/tegra_usb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/linux/platform_data/tegra_usb.h b/include/linux/platform_data/tegra_usb.h index de17149b7842..97472714e8e6 100644 --- a/include/linux/platform_data/tegra_usb.h +++ b/include/linux/platform_data/tegra_usb.h @@ -47,6 +47,7 @@ struct tegra_utmi_config { u8 xcvr_lsfslew; u8 xcvr_lsrslew; signed char xcvr_setup_offset; + u8 xcvr_use_lsb; u8 xcvr_use_fuses; }; -- cgit v1.2.3