From patchwork Tue Nov 17 15:09:49 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar Gupta X-Patchwork-Id: 60674 Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAHFCPwG023625 for ; Tue, 17 Nov 2009 15:12:25 GMT Received: from dlep36.itg.ti.com ([157.170.170.91]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id nAHFAD4P003954 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Nov 2009 09:10:13 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id nAHFADx5019137; Tue, 17 Nov 2009 09:10:13 -0600 (CST) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 9365180630; Tue, 17 Nov 2009 09:10:11 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dbdp31.itg.ti.com (dbdp31.itg.ti.com [172.24.170.98]) by linux.omap.com (Postfix) with ESMTP id C7E5380627 for ; Tue, 17 Nov 2009 09:10:03 -0600 (CST) Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id nAHF9wuv027836; Tue, 17 Nov 2009 20:39:59 +0530 (IST) Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by psplinux050.india.ti.com (8.13.1/8.13.1) with ESMTP id nAHF9wdm024374; Tue, 17 Nov 2009 20:39:58 +0530 Received: (from a0393629@localhost) by psplinux050.india.ti.com (8.13.1/8.13.1/Submit) id nAHF9w2i024371; Tue, 17 Nov 2009 20:39:58 +0530 From: Ajay Kumar Gupta To: linux-usb@vger.kernel.org Subject: [PATCH 1/8] musb: Add structure to get board specific data Date: Tue, 17 Nov 2009 20:39:49 +0530 Message-Id: <1258470596-24321-2-git-send-email-ajay.gupta@ti.com> X-Mailer: git-send-email 1.6.2.4 In-Reply-To: <1258470596-24321-1-git-send-email-ajay.gupta@ti.com> References: <1258470596-24321-1-git-send-email-ajay.gupta@ti.com> Cc: davinci-linux-open-source@linux.davincidsp.com, cooloney@kernel.org, felipe.balbi@nokia.com, linux-omap@vger.kernel.org, gadiyar@ti.com X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com diff --git a/include/linux/usb/musb.h b/include/linux/usb/musb.h index d437556..6e1426c 100644 --- a/include/linux/usb/musb.h +++ b/include/linux/usb/musb.h @@ -27,6 +27,15 @@ struct musb_hdrc_eps_bits { u8 bits; }; +/* MUSB board-specific details */ +struct musb_hdrc_board_data { + /* power (mA/2) sourcing capability */ + u8 power; + /* (HOST or OTG) msec/2 after VBUS on till power good */ + u8 potpgt; + +}; + struct musb_hdrc_config { /* MUSB configuration-specific details */ unsigned multipoint:1; /* multipoint device */ @@ -67,15 +76,9 @@ struct musb_hdrc_platform_data { /* (HOST or OTG) switch VBUS on/off */ int (*set_vbus)(struct device *dev, int is_on); - /* (HOST or OTG) mA/2 power supplied on (default = 8mA) */ - u8 power; - /* (PERIPHERAL) mA/2 max power consumed (default = 100mA) */ u8 min_power; - /* (HOST or OTG) msec/2 after VBUS on till power good */ - u8 potpgt; - /* Power the device on or off */ int (*set_power)(int state); @@ -84,6 +87,9 @@ struct musb_hdrc_platform_data { /* MUSB configuration-specific details */ struct musb_hdrc_config *config; + + /* MUSB board-specific details */ + struct musb_hdrc_board_data *board_data; };