From patchwork Wed Jul 29 13:32:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 501712 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 9A1C01402F0 for ; Wed, 29 Jul 2015 23:32:53 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 487264B6E0; Wed, 29 Jul 2015 15:32:46 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v-gpTdQn7Gai; Wed, 29 Jul 2015 15:32:46 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C08884B6B2; Wed, 29 Jul 2015 15:32:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CBF054B6E0 for ; Wed, 29 Jul 2015 15:32:42 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aBndYRWRuVOh for ; Wed, 29 Jul 2015 15:32:42 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from gagarine.paulk.fr (gagarine.paulk.fr [109.190.93.129]) by theia.denx.de (Postfix) with ESMTPS id D45C74B6A2 for ; Wed, 29 Jul 2015 15:32:36 +0200 (CEST) Received: by gagarine.paulk.fr (Postfix, from userid 65534) id 4DF5520046; Wed, 29 Jul 2015 15:32:36 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on gagarine.paulk.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from localhost.localdomain (collins [192.168.1.129]) by gagarine.paulk.fr (Postfix) with ESMTP id 6D2B21FF48; Wed, 29 Jul 2015 15:32:18 +0200 (CEST) From: Paul Kocialkowski To: u-boot@lists.denx.de Date: Wed, 29 Jul 2015 15:32:03 +0200 Message-Id: <1438176732-3184-3-git-send-email-contact@paulk.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438176732-3184-1-git-send-email-contact@paulk.fr> References: <1438176732-3184-1-git-send-email-contact@paulk.fr> Cc: Marek Vasut , Ian Campbell Subject: [U-Boot] [PATCH v2 02/11] usb: Generic USB Kconfig option, that fits both host and gadget and comments X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" There is no particular reason why the USB Kconfig option should be specific to host mode. In prevision of adding MUSB host and gadget to Kconfig, this moves the title and help message of the USB Kconfig option to a more generic format. Adding comments to the usb Kconfig allows for a better separation and more readability in generated configs and in menuconfig. Signed-off-by: Paul Kocialkowski --- drivers/usb/Kconfig | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index 89f2137..1addb00 100644 --- a/drivers/usb/Kconfig +++ b/drivers/usb/Kconfig @@ -1,11 +1,9 @@ # -# USB device configuration +# USB configuration # -menu "USB support" - -config USB - bool "Support for Host-side USB" +menuconfig USB + bool "USB support" ---help--- Universal Serial Bus (USB) is a specification for a serial bus subsystem which offers higher speeds and more features than the @@ -19,8 +17,10 @@ config USB such as scanners, keyboards, mice, modems, cameras, disks, flash memory, network links, and printers to the PC. - Say Y here if your computer has a host-side USB port and you want - to use USB devices. You then need to say Y to at least one of the + Say Y here if your device has an USB port, either host, peripheral or + dual-role. + + For an USB host port, you then need to say Y to at least one of the Host Controller Driver (HCD) options below. Choose a USB 1.1 controller, such as "UHCI HCD support" or "OHCI HCD support", and "EHCI HCD (USB 2.0) support" except for older systems that @@ -55,6 +55,8 @@ source "drivers/usb/host/Kconfig" source "drivers/usb/emul/Kconfig" +comment "USB peripherals" + config USB_STORAGE bool "USB Mass Storage support" ---help--- @@ -62,5 +64,3 @@ config USB_STORAGE board's USB port. endif - -endmenu