From patchwork Mon May 25 14:44:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Juszkiewicz X-Patchwork-Id: 1297370 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=juszkiewicz.com.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=juszkiewicz.com.pl header.i=@juszkiewicz.com.pl header.a=rsa-sha256 header.s=mail header.b=FV+UfUnb; dkim=fail reason="signature verification failed" (1024-bit key) header.d=juszkiewicz.com.pl header.i=@juszkiewicz.com.pl header.a=rsa-sha256 header.s=mail header.b=MTcMHM0y; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49W0Hj1vlSz9sT0 for ; Tue, 26 May 2020 00:45:04 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5603981784; Mon, 25 May 2020 16:44:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=quarantine dis=none) header.from=juszkiewicz.com.pl Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=juszkiewicz.com.pl header.i=@juszkiewicz.com.pl header.b="FV+UfUnb"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=juszkiewicz.com.pl header.i=@juszkiewicz.com.pl header.b="MTcMHM0y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3A99A81817; Mon, 25 May 2020 16:44:57 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from muminek.juszkiewicz.com.pl (muminek.juszkiewicz.com.pl [IPv6:2001:41d0:1:43dd::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1940281687 for ; Mon, 25 May 2020 16:44:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=juszkiewicz.com.pl Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marcin@juszkiewicz.com.pl Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 9F4F8261923; Mon, 25 May 2020 16:44:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=juszkiewicz.com.pl; s=mail; t=1590417893; bh=+GDvHFDITJljjnkSQtXCu+tEZ6JnR3PrwTMeh3e7Kwo=; h=From:To:Cc:Subject:Date:From; b=FV+UfUnbI/+c2cyWV8TnGQsIjLPCvQHv3/v5kOjWEpTteIqvsSuY3WlA62Po+Vh4U fcyufRO3nxEKCs3rdSt/rgJgg7p3Wr5fObC8Ucwz2MLXRsz0BpkqLOKpSCT57bhSb2 +IOBxdMQR+67Yp19D6Ulcmw/Ce3X1UrTvq0T9le0= Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C4csKkiVCQ5V; Mon, 25 May 2020 16:44:51 +0200 (CEST) Received: from puchatek.local.com.pl (89-67-26-161.dynamic.chello.pl [89.67.26.161]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id 1F4F426191A; Mon, 25 May 2020 16:44:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=juszkiewicz.com.pl; s=mail; t=1590417891; bh=+GDvHFDITJljjnkSQtXCu+tEZ6JnR3PrwTMeh3e7Kwo=; h=From:To:Cc:Subject:Date:From; b=MTcMHM0yFbWsHLnhcdD/Qrty1NGSxkENgRLG0GH5n01u2++VY8OU/Qxrm4W/bEuWY roMn4spqd1f1eLJoQGwh4o9Pqu3fpypFb/i+4kJ6cL9zp7zAGoT/z8nWuclUT74Mc8 2XQxlOWcVSGuh8AI6H/GUK+FlcdG/rHR2kRbDQ60= From: Marcin Juszkiewicz To: u-boot@lists.denx.de Cc: kever.yang@rock-chips.com, Marcin Juszkiewicz Subject: [PATCH] rockchip: enable USB OHCI host for RockPro64 Date: Mon, 25 May 2020 16:44:49 +0200 Message-Id: <20200525144449.399887-1-marcin@juszkiewicz.com.pl> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean U-Boot has video output enabled so time to get keyboard working. => usb reset;usb tree resetting USB... Bus usb@fe380000: USB EHCI 1.00 Bus usb@fe3a0000: USB OHCI 1.0 Bus usb@fe3c0000: USB EHCI 1.00 Bus usb@fe3e0000: USB OHCI 1.0 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb@fe380000 for devices... 1 USB Device(s) found scanning bus usb@fe3a0000 for devices... 1 USB Device(s) found scanning bus usb@fe3c0000 for devices... 1 USB Device(s) found scanning bus usb@fe3e0000 for devices... 3 USB Device(s) found scanning bus dwc3 for devices... cannot reset port 1!? 2 USB Device(s) found scanning usb for storage devices... 2 Storage Device(s) found USB device tree: 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller 1 Hub (12 Mb/s, 0mA) U-Boot Root Hub 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller 1 Hub (12 Mb/s, 0mA) | U-Boot Root Hub | +-2 Hub (12 Mb/s, 100mA) | ALCOR Generic USB Hub | +-3 Mass Storage (12 Mb/s, 200mA) Kingston DT 101 G2 001478544887BB3157380157 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Mass Storage (5 Gb/s, 76mA) ADATA ADATA USB Flash Drive 1520405012240002 Signed-off-by: Marcin Juszkiewicz Reviewed-by: Kever Yang --- configs/rockpro64-rk3399_defconfig | 2 ++ include/configs/rockpro64_rk3399.h | 2 ++ 2 files changed, 4 insertions(+) diff --git configs/rockpro64-rk3399_defconfig configs/rockpro64-rk3399_defconfig index 53abce0057..205be70cb0 100644 --- configs/rockpro64-rk3399_defconfig +++ configs/rockpro64-rk3399_defconfig @@ -52,6 +52,8 @@ CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y +CONFIG_USB_OHCI_HCD=y +CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y CONFIG_USB_ETHER_ASIX88179=y diff --git include/configs/rockpro64_rk3399.h include/configs/rockpro64_rk3399.h index 7a72cf6049..37a08b2c00 100644 --- include/configs/rockpro64_rk3399.h +++ include/configs/rockpro64_rk3399.h @@ -17,4 +17,6 @@ #define SDRAM_BANK_SIZE (2UL << 30) +#define CONFIG_USB_OHCI_NEW +#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2 #endif