From patchwork Sun Jul 31 15:16:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 73074 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp2287280qga; Sun, 31 Jul 2016 08:17:29 -0700 (PDT) X-Received: by 10.28.3.69 with SMTP id 66mr10179908wmd.26.1469978249630; Sun, 31 Jul 2016 08:17:29 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id ew17si27511383wjd.262.2016.07.31.08.17.29; Sun, 31 Jul 2016 08:17:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C76D2A7516; Sun, 31 Jul 2016 17:17:28 +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 Kb0dE6szjRSy; Sun, 31 Jul 2016 17:17:28 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CFEBCA74DB; Sun, 31 Jul 2016 17:17:27 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 828FDA74DB for ; Sun, 31 Jul 2016 17:17:24 +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 INyXFF4XtKQd for ; Sun, 31 Jul 2016 17:17:24 +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 conuserg-07.nifty.com (conuserg-07.nifty.com [210.131.2.74]) by theia.denx.de (Postfix) with ESMTPS id C9D7AA74D6 for ; Sun, 31 Jul 2016 17:17:18 +0200 (CEST) Received: from grover.sesame (FL1-119-242-215-193.osk.mesh.ad.jp [119.242.215.193]) (authenticated) by conuserg-07.nifty.com with ESMTP id u6VFGaLs000794; Mon, 1 Aug 2016 00:16:49 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com u6VFGaLs000794 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1469978210; bh=FbU8tubQXvHZBZ9honUCOsItM21tIK/NrVUQpJ27nbM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2yYVm3pYuDqV1kU9ysX67EDol2pir321FTxYnPPUqFF3f0Xg7o4XeGjrR35hNSKF7 VvU8oR9W3VuGhJ7Kd4Lo8IlgFbE5G67XQ/mSe/4XeBWnixzfW7dsZMd6pMwhqucmmb fohUHTOPCwTTUhC7lAvF2yd4/tIUaCgrlC0sQns0T1H7lnoMrrIie0lW9zYszMI7JZ oLQWXtPGPViqfcxVQFFydqc8qXEzphIDzE4EeR2Ki0ROGQG+7AW7uLXvLuFaALorRZ n5ftzmmp/3YIV3lHH56WhPH0wvKBtO2weaLLxsVrC+Q2+EbDl0VkwXTHf788LCc2CR mVOzKQD7M8yVg== X-Nifty-SrcIP: [119.242.215.193] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Mon, 1 Aug 2016 00:16:32 +0900 Message-Id: <1469978194-4910-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1469978194-4910-1-git-send-email-yamada.masahiro@socionext.com> References: <1469978194-4910-1-git-send-email-yamada.masahiro@socionext.com> Cc: Marek Vasut , Alexey Brodkin , Stefan Roese Subject: [U-Boot] [PATCH v2 1/3] usb: add CONFIG_USB_OHCI_HCD in Kconfig 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" Add this option as a common config for all OHCI controllers. Its help message was copied from Linux. Also, I moved it below EHCI to respect the order in Linux's Kconfig. Add CONFIG_USB_OHCI_HCD=y to axs103_defconfig, which is the only user of OHCI_GENERIC. Signed-off-by: Masahiro Yamada --- Changes in v2: - Fix a typo CONIFG_ -> CONFIG_ configs/axs103_defconfig | 1 + drivers/usb/host/Kconfig | 35 +++++++++++++++++++++++++---------- 2 files changed, 26 insertions(+), 10 deletions(-) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/configs/axs103_defconfig b/configs/axs103_defconfig index c8474de..109b021 100644 --- a/configs/axs103_defconfig +++ b/configs/axs103_defconfig @@ -25,6 +25,7 @@ CONFIG_ETH_DESIGNWARE=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_DM_USB=y +CONFIG_USB_OHCI_HCD=y CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_STORAGE=y CONFIG_USE_PRIVATE_LIBGCC=y diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 5092251..8e87f77 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -24,15 +24,7 @@ config USB_XHCI_DWC3 Say Y or if your system has a Dual Role SuperSpeed USB controller based on the DesignWare USB3 IP Core. -endif - -config USB_OHCI_GENERIC - bool "Support for generic OHCI USB controller" - depends on OF_CONTROL - depends on DM_USB - default n - ---help--- - Enables support for generic OHCI controller. +endif # USB_XHCI_HCD config USB_EHCI_HCD bool "EHCI HCD (USB 2.0) support" @@ -100,4 +92,27 @@ config USB_EHCI_GENERIC ---help--- Enables support for generic EHCI controller. -endif +endif # USB_EHCI_HCD + +config USB_OHCI_HCD + bool "OHCI HCD (USB 1.1) support" + ---help--- + The Open Host Controller Interface (OHCI) is a standard for accessing + USB 1.1 host controller hardware. It does more in hardware than Intel's + UHCI specification. If your USB host controller follows the OHCI spec, + say Y. On most non-x86 systems, and on x86 hardware that's not using a + USB controller from Intel or VIA, this is appropriate. If your host + controller doesn't use PCI, this is probably appropriate. For a PCI + based system where you're not sure, the "lspci -v" entry will list the + right "prog-if" for your USB controller(s): EHCI, OHCI, or UHCI. + +if USB_OHCI_HCD + +config USB_OHCI_GENERIC + bool "Support for generic OHCI USB controller" + depends on OF_CONTROL + depends on DM_USB + ---help--- + Enables support for generic OHCI controller. + +endif # USB_OHCI_HCD