{"id":799649,"url":"http://patchwork.ozlabs.org/api/1.2/patches/799649/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1502248361-7953-2-git-send-email-william.wu@rock-chips.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.2/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1502248361-7953-2-git-send-email-william.wu@rock-chips.com>","list_archive_url":null,"date":"2017-08-09T03:12:39","name":"[U-Boot,1/3] configs: rockchip: add USB configs for evb-rv1108 board","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"f43209adfee9ae58463a5ac062fc9e429c20da0e","submitter":{"id":69388,"url":"http://patchwork.ozlabs.org/api/1.2/people/69388/?format=json","name":"William Wu","email":"william.wu@rock-chips.com"},"delegate":{"id":69486,"url":"http://patchwork.ozlabs.org/api/1.2/users/69486/?format=json","username":"ptomsich","first_name":"Philipp","last_name":"Tomsich","email":"philipp.tomsich@theobroma-systems.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1502248361-7953-2-git-send-email-william.wu@rock-chips.com/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/799649/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/799649/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xS7PZ14ckz9rxm\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  9 Aug 2017 20:52:02 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid E48A1C21FC1; Wed,  9 Aug 2017 10:51:30 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id CC93BC21E91;\n\tWed,  9 Aug 2017 10:51:04 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid A1BC2C21C5C; Wed,  9 Aug 2017 03:12:54 +0000 (UTC)","from regular1.263xmail.com (regular1.263xmail.com [211.150.99.135])\n\tby lists.denx.de (Postfix) with ESMTPS id A75D6C21C2F\n\tfor <u-boot@lists.denx.de>; Wed,  9 Aug 2017 03:12:53 +0000 (UTC)","from william.wu?rock-chips.com (unknown [192.168.167.193])\n\tby regular1.263xmail.com (Postfix) with ESMTP id D1C9E1E28C;\n\tWed,  9 Aug 2017 11:12:48 +0800 (CST)","from localhost.localdomain (localhost [127.0.0.1])\n\tby smtp.263.net (Postfix) with ESMTPA id 3D44D3EB;\n\tWed,  9 Aug 2017 11:12:48 +0800 (CST)","from unknown (unknown [58.22.7.114])\n\tby smtp.263.net (Postfix) whith SMTP id 41765BFEY1;\n\tWed, 09 Aug 2017 11:12:49 +0800 (CST)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=0.8 required=5.0 tests=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H2,UPPERCASE_50_75 autolearn=no autolearn_force=no\n\tversion=3.4.0","X-263anti-spam":"KSV:0;","X-MAIL-GRAY":"0","X-MAIL-DELIVERY":"1","X-KSVirus-check":"0","X-ABS-CHECKED":"4","X-RL-SENDER":"william.wu@rock-chips.com","X-FST-TO":"sjg@chromium.org","X-SENDER-IP":"58.22.7.114","X-LOGIN-NAME":"william.wu@rock-chips.com","X-UNIQUE-TAG":"<a9b0d582cd42d066230e0307c3d9017b>","X-ATTACHMENT-NUM":"0","X-SENDER":"wulf@rock-chips.com","X-DNS-TYPE":"0","From":"William Wu <william.wu@rock-chips.com>","To":"sjg@chromium.org, philipp.tomsich@theobroma-systems.com,\n\tandy.yan@rock-chips.com","Date":"Wed,  9 Aug 2017 11:12:39 +0800","Message-Id":"<1502248361-7953-2-git-send-email-william.wu@rock-chips.com>","X-Mailer":"git-send-email 2.0.0","In-Reply-To":"<1502248361-7953-1-git-send-email-william.wu@rock-chips.com>","References":"<1502248361-7953-1-git-send-email-william.wu@rock-chips.com>","X-Mailman-Approved-At":"Wed, 09 Aug 2017 10:51:00 +0000","Cc":"huangtao@rock-chips.com, albert.u.boot@aribaud.net,\n\tfrank.wang@rock-chips.com, u-boot@lists.denx.de","Subject":"[U-Boot] [PATCH 1/3] configs: rockchip: add USB configs for\n\tevb-rv1108 board","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"This patch adds USB configs to support the USB OTG port(consist\nof DWC2 controller) and the USB Host port(consist of EHCI and OHCI\ncontrollers) on evb-rv1108 board, and also support fastboot over\nUSB and USB mass storage.\n\nSigned-off-by: William Wu <william.wu@rock-chips.com>\n---\n configs/evb-rv1108_defconfig    | 22 ++++++++++++++++++++++\n include/configs/rv1108_common.h |  3 +++\n 2 files changed, 25 insertions(+)","diff":"diff --git a/configs/evb-rv1108_defconfig b/configs/evb-rv1108_defconfig\nindex 3deea7c..496bfc8 100644\n--- a/configs/evb-rv1108_defconfig\n+++ b/configs/evb-rv1108_defconfig\n@@ -6,8 +6,16 @@ CONFIG_DEFAULT_DEVICE_TREE=\"rv1108-evb\"\n CONFIG_DEBUG_UART=y\n CONFIG_ENV_IS_NOWHERE=y\n # CONFIG_DISPLAY_CPUINFO is not set\n+CONFIG_FASTBOOT=y\n+CONFIG_USB_FUNCTION_FASTBOOT=y\n+CONFIG_CMD_FASTBOOT=y\n+CONFIG_FASTBOOT_BUF_ADDR=0x62000000\n+CONFIG_FASTBOOT_BUF_SIZE=0x08000000\n+CONFIG_FASTBOOT_FLASH=y\n+CONFIG_FASTBOOT_FLASH_MMC_DEV=1\n # CONFIG_CMD_IMLS is not set\n CONFIG_CMD_SF=y\n+CONFIG_CMD_USB=y\n # CONFIG_CMD_SETEXPR is not set\n CONFIG_CMD_CACHE=y\n CONFIG_CMD_TIME=y\n@@ -27,10 +35,24 @@ CONFIG_ETH_DESIGNWARE=y\n CONFIG_GMAC_ROCKCHIP=y\n CONFIG_PINCTRL=y\n CONFIG_PINCTRL_ROCKCHIP_RV1108=y\n+CONFIG_DM_REGULATOR_FIXED=y\n CONFIG_BAUDRATE=1500000\n # CONFIG_SPL_SERIAL_PRESENT is not set\n CONFIG_DEBUG_UART_BASE=0x10210000\n CONFIG_DEBUG_UART_CLOCK=24000000\n CONFIG_DEBUG_UART_SHIFT=2\n CONFIG_SYSRESET=y\n+CONFIG_USB=y\n+CONFIG_USB_EHCI_HCD=y\n+CONFIG_USB_EHCI_GENERIC=y\n+CONFIG_USB_OHCI_HCD=y\n+CONFIG_USB_OHCI_GENERIC=y\n+CONFIG_USB_DWC2=y\n+CONFIG_USB_STORAGE=y\n+CONFIG_USB_GADGET=y\n+CONFIG_USB_GADGET_DWC2_OTG=y\n+CONFIG_USB_GADGET_DOWNLOAD=y\n+CONFIG_G_DNL_MANUFACTURER=\"Rockchip\"\n+CONFIG_G_DNL_VENDOR_NUM=0x2207\n+CONFIG_G_DNL_PRODUCT_NUM=0x110a\n CONFIG_ERRNO_STR=y\ndiff --git a/include/configs/rv1108_common.h b/include/configs/rv1108_common.h\nindex 2b63abc..f6fefaa 100644\n--- a/include/configs/rv1108_common.h\n+++ b/include/configs/rv1108_common.h\n@@ -29,4 +29,7 @@\n #define CONFIG_SYS_INIT_SP_ADDR\t\t(CONFIG_SYS_TEXT_BASE + 0x100000)\n #define CONFIG_SYS_LOAD_ADDR\t\t(CONFIG_SYS_SDRAM_BASE + 0x2000000)\n \n+/* rockchip ohci host driver */\n+#define CONFIG_USB_OHCI_NEW\n+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS\t1\n #endif\n","prefixes":["U-Boot","1/3"]}