From patchwork Mon Apr 1 11:52:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1072684 X-Patchwork-Delegate: lukma@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="F+0+qYcD"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44XrNf09Hxz9sMQ for ; Mon, 1 Apr 2019 22:54:25 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 7AFE4C21E1E; Mon, 1 Apr 2019 11:53:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id DF863C21E4F; Mon, 1 Apr 2019 11:53:05 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 54B2DC21E34; Mon, 1 Apr 2019 11:52:58 +0000 (UTC) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by lists.denx.de (Postfix) with ESMTPS id 66E44C21DB6 for ; Mon, 1 Apr 2019 11:52:56 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id b12so4668915pgk.0 for ; Mon, 01 Apr 2019 04:52:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AazDVOt1x8/gI2knDK/ToM9gdF/I9UmT886Zd/HG6do=; b=F+0+qYcD8MQmDe7QyLxhavmKCoKQDaznXU1GhDWAOKYdkKJ6N/RWX9OzuafE13/e0W 0GxPmJtqn9GVketWrG+022MnxZLikoZlR9vXodX8/iVdh97H+SJZJJg7LHyHu7uZXxWd +M9I/1m3LV/OrAB7ORptUFCHpUH1F2YQ4MJPAirCaRCI4/FKsz89OBn9oShAZkABUt7Y WDahH5fHg9Okl7Y1ZhLyidBvL+f7H03hfqwa9Djtx1b7l6oKvh1H/FhxcEMfV7ms1OeE Va5IZZhNz9PgUmJE/vU0TyYkYyNCTGYjwDap3I344G9lT+/RR+ElxEGgAppSIe75Y1ul cu1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AazDVOt1x8/gI2knDK/ToM9gdF/I9UmT886Zd/HG6do=; b=Qu/sKzuiG90nWK+IBsBQomXE63ejiIodG1a+/CF5DDPnmSBRs3d2I4VYUT1NCtVncv gKXs21jEVSyEjLTlYdkk5PDCikvMEMqlpPh++JYq0E8DFwjDhmtSGlmIn/cnDhgwOam+ mYdJPkFjbm818xje6SFU3LRXTTYBpVQRov2hCbAaxKLHLCTdeF/wsWb80c2T9+iZcImj NhVwEXtot633TRUAv9mRhFX6P4b1cfIHnjwqaPFdAQTHuMDhqTNrB/GfqM8/i9KlrHi7 UTwyHn3yL+rxpqDyKbe+DM0esCc0rCLdcVsf7eDh97X4m1nXQDuAM3630TRjHvsT7bxn SwhA== X-Gm-Message-State: APjAAAW4/by5lobQcXRQuBvdbDYs8d+2+aygl/sa8pn8r/d2v8K/6R91 CwW8TbhqNhVIA4y+Jp7J3OA= X-Google-Smtp-Source: APXvYqy9+uswANlPkmSeqd77Nxi2/fZljMaCsPnNHOpBGD+Y0vCwTSfFVEpLn32QfrDKRStx0P89Ig== X-Received: by 2002:a65:5acc:: with SMTP id d12mr60742025pgt.337.1554119575070; Mon, 01 Apr 2019 04:52:55 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.132]) by smtp.gmail.com with ESMTPSA id d75sm26170524pga.66.2019.04.01.04.52.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 04:52:54 -0700 (PDT) From: Anand Moon To: Jaehoon Chung , Marek Vasut , Tobias Jakobi , Minkyu Kang , Lukasz Majewski , Simon Glass , Krzysztof Kozlowski Date: Mon, 1 Apr 2019 11:52:27 +0000 Message-Id: <20190401115232.453-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190401115232.453-1-linux.amoon@gmail.com> References: <20190401115232.453-1-linux.amoon@gmail.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [RFC 1/6] odroid: exynos: USB initialization on the U3/X2 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" From: Tobias Jakobi Rename board_usb_init() to exynos_usb_init() and call it early in the Exynos EHCI driver when probing. This kind of works. After a 'usb start; usb stop; usb start' cycle the attached devices are recognized. Add small delay between gpio_direction_output to stable initialization of usb gpio pins. Signed-off-by: Tobias Jakobi Signed-off-by: Anand Moon --- Reoder the exynos_usb_init so that "usb start" command initialization correcly. --- --- board/samsung/odroid/odroid.c | 14 +++++++++----- drivers/usb/host/ehci-exynos.c | 7 +++++++ 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/board/samsung/odroid/odroid.c b/board/samsung/odroid/odroid.c index 3e594fd850..79d14ead01 100644 --- a/board/samsung/odroid/odroid.c +++ b/board/samsung/odroid/odroid.c @@ -468,8 +468,6 @@ struct dwc2_plat_otg_data s5pc210_otg_data = { }; #endif -#if defined(CONFIG_USB_GADGET) || defined(CONFIG_CMD_USB) - static void set_usb3503_ref_clk(void) { #ifdef CONFIG_BOARD_TYPES @@ -490,9 +488,8 @@ static void set_usb3503_ref_clk(void) #endif /* CONFIG_BOARD_TYPES */ } -int board_usb_init(int index, enum usb_init_type init) +int exynos_usb_init(void) { -#ifdef CONFIG_CMD_USB struct udevice *dev; int ret; @@ -501,6 +498,7 @@ int board_usb_init(int index, enum usb_init_type init) /* Disconnect, Reset, Connect */ gpio_direction_output(EXYNOS4X12_GPIO_X34, 0); gpio_direction_output(EXYNOS4X12_GPIO_X35, 0); + sdelay(200000); gpio_direction_output(EXYNOS4X12_GPIO_X35, 1); gpio_direction_output(EXYNOS4X12_GPIO_X34, 1); @@ -530,7 +528,13 @@ int board_usb_init(int index, enum usb_init_type init) pr_err("Regulator %s value setting error: %d\n", dev->name, ret); return ret; } -#endif + + return 0; +} + +#ifdef CONFIG_USB_GADGET +int board_usb_init(int index, enum usb_init_type init) +{ debug("USB_udc_probe\n"); return dwc2_udc_probe(&s5pc210_otg_data); } diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index fabc662eb6..b0f7bd4936 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -31,6 +31,8 @@ struct exynos_ehci_platdata { struct gpio_desc vbus_gpio; }; +extern int exynos_usb_init(void); + /** * Contains pointers to register base addresses * for the usb controller. @@ -152,6 +154,11 @@ static void exynos4412_setup_usb_phy(struct exynos4412_usb_phy *usb) setbits_le32(&usb->usbphyrstcon, (RSTCON_HOSTPHY_SWRST | RSTCON_SWRST)); udelay(10); clrbits_le32(&usb->usbphyrstcon, (RSTCON_HOSTPHY_SWRST | RSTCON_SWRST)); + + /* + * "usb start" initialize the usb driver + */ + exynos_usb_init(); } static void setup_usb_phy(struct exynos_usb_phy *usb) From patchwork Mon Apr 1 11:52:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1072682 X-Patchwork-Delegate: lukma@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FVDvOFxs"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44XrMN2z4qz9sMQ for ; Mon, 1 Apr 2019 22:53:20 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id ED1CCC21E2C; Mon, 1 Apr 2019 11:53:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 798B3C21DA2; Mon, 1 Apr 2019 11:53:04 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 165C8C21E89; Mon, 1 Apr 2019 11:53:00 +0000 (UTC) Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by lists.denx.de (Postfix) with ESMTPS id 80D8EC21E44 for ; Mon, 1 Apr 2019 11:52:59 +0000 (UTC) Received: by mail-pf1-f182.google.com with SMTP id 188so4456561pfd.8 for ; Mon, 01 Apr 2019 04:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=G7C0VeGjpnQxweWEzHREO4/Gs7AGGAiz2XBnO10E9Oo=; b=FVDvOFxs6lQXO2A2OB4NBNxQJUMwliNgp2nbD7aFQ0Js6vfCmduc6yS+EdiTRlMUhS 9BfXV6XYUP5W7RrC5SAR08vbkW26klVt9LakwKnFez21KRKlfnyseesMvkif7G/7r3mH A/s9EvSxKDE5BU6ep3MpFBKkLN65aOaIHPyen+hJUWG6A3gdgWMn6pOlwqMJ0rKD5XbY CmNbm/DRzruU7JGFNR3xCOLjIGCAmsNnP0C1huWreSVQZNbw2fYDMZ4KrueT/sZdowCi 6uRIFFW8lyg/H9CK+QFcCPxk7sFRNk6ImHzjmFTBMFaQsr6NYpOvQ5CJttGrYGZ64u51 GGWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=G7C0VeGjpnQxweWEzHREO4/Gs7AGGAiz2XBnO10E9Oo=; b=Omaa9w7o4KZlLBxnUcc91vEnNmzT+KiI9Qz44jd468jIJRc4omGmsslX1wVHl/4cVm iJ4Tykw3ieNogwbHu8ByvGjzMONP1RJXAB0/b5jT7ngr3P1/vAa1qp2sgKS+r/ib+Ruv x4pKGdCgvz0eOZolcwXt6/lzF5N04KuBUgJzdPex6xzkDBB1W2KmdLdVb+fOwfIxibFe qI2CnW6z54ujeibn+LqZxaq5q53h8yotJo+rid1u0J5IX1tt1oO3RPhjhayb1vB1IL4B lySzIWY8IC/1bfUycGHkvDbVfkstTKzDAEB1VR0ZmM+o1FGgjBRyU39vAwWB8dMosC9C aJ6w== X-Gm-Message-State: APjAAAU1khN8GDMipnE1B2uAulz6u4Z/t1fBwizEQXOkQGIuIkQBQRXr K41fX+KdYgzRXmXz+w/m2ihOlazT X-Google-Smtp-Source: APXvYqzRlYySjo3eZlyZgY17duiVr0sutnAWadWjwSTPPhaAWN+l9qmYFbUGEPNy36EVuZMZg8GQag== X-Received: by 2002:a63:20f:: with SMTP id 15mr20772072pgc.90.1554119578220; Mon, 01 Apr 2019 04:52:58 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.132]) by smtp.gmail.com with ESMTPSA id d75sm26170524pga.66.2019.04.01.04.52.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 04:52:57 -0700 (PDT) From: Anand Moon To: Jaehoon Chung , Marek Vasut , Tobias Jakobi , Minkyu Kang , Lukasz Majewski , Simon Glass , Krzysztof Kozlowski Date: Mon, 1 Apr 2019 11:52:28 +0000 Message-Id: <20190401115232.453-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190401115232.453-1-linux.amoon@gmail.com> References: <20190401115232.453-1-linux.amoon@gmail.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [RFC 2/6] odroid: exynos: usb clean up for U3/X2 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Add board_usb_cleanup routine to cleanup after de-registering it usb devices. Also fixed the compilation error for other board. Signed-off-by: Anand Moon --- board/samsung/common/board.c | 4 ++-- board/samsung/odroid/odroid.c | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c index 9adbd1e2cf..c74aca9b0a 100644 --- a/board/samsung/common/board.c +++ b/board/samsung/common/board.c @@ -351,10 +351,10 @@ void reset_misc(void) } } +#ifdef CONFIG_USB_DWC3 int board_usb_cleanup(int index, enum usb_init_type init) { -#ifdef CONFIG_USB_DWC3 dwc3_uboot_exit(index); -#endif return 0; } +#endif diff --git a/board/samsung/odroid/odroid.c b/board/samsung/odroid/odroid.c index 79d14ead01..547ae698cf 100644 --- a/board/samsung/odroid/odroid.c +++ b/board/samsung/odroid/odroid.c @@ -538,4 +538,9 @@ int board_usb_init(int index, enum usb_init_type init) debug("USB_udc_probe\n"); return dwc2_udc_probe(&s5pc210_otg_data); } + +int board_usb_cleanup(int index, enum usb_init_type init) +{ + return s5pc210_phy_control(index); +} #endif From patchwork Mon Apr 1 11:52:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1072685 X-Patchwork-Delegate: lukma@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="DSNP8n8i"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44XrNp0twDz9sMQ for ; Mon, 1 Apr 2019 22:54:34 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id B70BEC21E4E; Mon, 1 Apr 2019 11:53:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 7A8D1C21E73; Mon, 1 Apr 2019 11:53:14 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E1D60C21DF9; Mon, 1 Apr 2019 11:53:03 +0000 (UTC) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by lists.denx.de (Postfix) with ESMTPS id A1A76C21E26 for ; Mon, 1 Apr 2019 11:53:02 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id 8so4462290pfr.4 for ; Mon, 01 Apr 2019 04:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z1xd4YcYKuCPhItqYjXsgWozxha5tIAEQ/IQtw14P6s=; b=DSNP8n8ixMzsHKMsv5bKof10FOYUw5qOjbe0BEkGV7YQ89DVSd79uSGaNMngjThSBU nob1UZsGRHq3L5Eciz1nMiXt8cGlCaKEHGLjLiq6gurwZ0UBSsu+rVQ1YHh40QfkWXij ZXFggfCbl/xUXfETgZEwzZ0LiedvdTzuPWKyiSG7FNpQ6A5LnliqHZgFTbC6Fj8OmtCe cGRR6EZ2qLpTySryVwf7FeEwsZ96r/IqhzTsv+uZ+Sn+Ug6MO+nO1WmYdBegIL0ixcb/ WHMGaBBHOKJoUYed+aJb3L2O4pXd7kDe61zMzcjKn2j0eW0ujZbH8/MtvzUW4kzqndRG RCOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=z1xd4YcYKuCPhItqYjXsgWozxha5tIAEQ/IQtw14P6s=; b=VsXfs8fTjOMSHz24ike9ABrswRmZStd9BdI1cgIdvIFNLuSHoiDooA/hD+gyQFgKwN XHQH7KZV2C/QOMt3qucc8zxiZjGagjeKSULPX+g750fV/bQkPmAB0PLDFrnjD0IzJ32a +kr0DmKfRvBpVLxkdWClxcmLCJw2govIP4baszvAzGdWQseILnG8E1Q16fUjpm+0tU/H p0/4j+oRKQh+P+WJl5GYfDR4wc6AEKnxXXhtHmpQMoFG0KU9/3z2tP2LTcMNtPY3BG0r IqZfAE46GdgiZ8orK+QHnI42JcQggGn2Ph8UHZG4uAmKVZ+Dd4g0csNOuoRYaYOS8O2n U44Q== X-Gm-Message-State: APjAAAW9DiE0A9wJiGMkWLZ4khORccOQ4Q5WdRfh1nJxFj137s3+JpJ5 95Hcel47y0bPgEq0TbiixsU= X-Google-Smtp-Source: APXvYqywx8s0myNqKDnjrpxYezPCJA8svoiuzU3AUjYGVrZLTYZ50wnqfGAlDlz+GMmJsdqCpZ/HxA== X-Received: by 2002:a63:465b:: with SMTP id v27mr42297246pgk.165.1554119581324; Mon, 01 Apr 2019 04:53:01 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.132]) by smtp.gmail.com with ESMTPSA id d75sm26170524pga.66.2019.04.01.04.52.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 04:53:00 -0700 (PDT) From: Anand Moon To: Jaehoon Chung , Marek Vasut , Tobias Jakobi , Minkyu Kang , Lukasz Majewski , Simon Glass , Krzysztof Kozlowski Date: Mon, 1 Apr 2019 11:52:29 +0000 Message-Id: <20190401115232.453-4-linux.amoon@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190401115232.453-1-linux.amoon@gmail.com> References: <20190401115232.453-1-linux.amoon@gmail.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [RFC 3/6] usb: exynos: add init_after_reset for usb reset X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Some host controllers need addidional re-initialization after ehci_reset() so we add .init_after_reset callback which is requires to reinit the phy after controller reset. Signed-off-by: Anand Moon --- drivers/usb/host/ehci-exynos.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index b0f7bd4936..e6a542e092 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -143,6 +143,23 @@ static void exynos5_setup_usb_phy(struct exynos_usb_phy *usb) EHCICTRL_ENAINCR16); } +static int ehci_exynos_init_after_reset(struct ehci_ctrl *ehcntl) +{ + if (cpu_is_exynos4()) { + if (proid_is_exynos4412()) { + /* + * "usb reset" cmd: restart re-initialize the usb driver + */ + exynos_usb_init(); + } + } + return 0; +} + +static const struct ehci_ops exynos_ehci_ops = { + .init_after_reset = ehci_exynos_init_after_reset, +}; + static void exynos4412_setup_usb_phy(struct exynos4412_usb_phy *usb) { writel(CLK_24MHZ, &usb->usbphyclk); @@ -234,7 +251,8 @@ static int ehci_usb_probe(struct udevice *dev) hcor = (struct ehci_hcor *)((uint32_t)ctx->hcd + HC_LENGTH(ehci_readl(&ctx->hcd->cr_capbase))); - return ehci_register(dev, ctx->hcd, hcor, NULL, 0, USB_INIT_HOST); + return ehci_register(dev, ctx->hcd, hcor, &exynos_ehci_ops, + 0, USB_INIT_HOST); } static int ehci_usb_remove(struct udevice *dev) From patchwork Mon Apr 1 11:52:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1072687 X-Patchwork-Delegate: lukma@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sTsKS6mf"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44XrPt07pVz9sMQ for ; Mon, 1 Apr 2019 22:55:29 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id B6E65C21E34; Mon, 1 Apr 2019 11:54:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A58C9C21E3A; Mon, 1 Apr 2019 11:53:43 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 70436C21D4A; Mon, 1 Apr 2019 11:53:09 +0000 (UTC) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by lists.denx.de (Postfix) with ESMTPS id 32E8EC21E7E for ; Mon, 1 Apr 2019 11:53:06 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id r15so4443493pfn.9 for ; Mon, 01 Apr 2019 04:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JIsPeE7tzxI8GUKiNNJCUpAGwqXFykriJCtsEfvD+EU=; b=sTsKS6mfF5v/PeiDTLKSsl3bKvTczBucInCFfnNCayR4/B8ks3zQ3Hhj0fwkptiN4C kxeHwB2oSz9aD0iuBevHAmkLsZCIFXyUi9kZKrqDXACfxU5SP9B5OWumzRXkfd5pS0xx xpon1qT9NVojYWUOtOqm0sT6nyuHpFYW0eZXQI/xEmTbfToX7toCJF8kxL6gQfdLVAz0 3hRLHmCtA69r1UowuFtX1X56AQEuk2x7x9EfaKpzZcWWPQGN0klf7rBI15fpPD2yEqgY Vni3oDFGXl/qBqAzVYQv3suJ7H/w6dXNraYW925686jaAddOm7c37YEjTGzLc8wWz784 bXHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JIsPeE7tzxI8GUKiNNJCUpAGwqXFykriJCtsEfvD+EU=; b=oMnWs1wGsBbgYiRTJBEsBfjxKTtj+drdqnb3Ok0F0+kiO9dKrsd9N9UOUrn9Emw1Y4 raVXl2erBOaW10Om+mmz/JP/tB7do6vOjBij4BfRTKmY9wXjlTJ06fnrA7ggs6OsCewu 1GiTSw/d8Va3VxrQiSAsyCFo4bvNfKjz/CKwTXkIoASi6+b3OtiXKRQf4IXICiDfy9Zt /FKnSsbwfPL+mu+GoZCKvm3YRFu0KcZc37cP3ZsRUDDdQ8MaglVK1BE6HokmiG9tPqJw eeZGqmJEzBeC8+exlt2hMJgm7YpnDAjTeYsJS90GRizgK/xQ3jDjgBmaTUtAmP3W7Us1 iX3A== X-Gm-Message-State: APjAAAW8xgqKZI+YGX3zy3G6yxA+WpKh0HOw/ujDNiSjcKlPoxyry8VC ywj03p7sdnv2sece0jmn1bapi/ES X-Google-Smtp-Source: APXvYqztyLltn9MeBTCogfYT4l10Avg7nMYyW+XkkB+wNdMQXwu4r0pM2YEsCpbj10Rw6Cyva0yMjg== X-Received: by 2002:a65:5acc:: with SMTP id d12mr60742513pgt.337.1554119584886; Mon, 01 Apr 2019 04:53:04 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.132]) by smtp.gmail.com with ESMTPSA id d75sm26170524pga.66.2019.04.01.04.53.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 04:53:04 -0700 (PDT) From: Anand Moon To: Jaehoon Chung , Marek Vasut , Tobias Jakobi , Minkyu Kang , Lukasz Majewski , Simon Glass , Krzysztof Kozlowski Date: Mon, 1 Apr 2019 11:52:30 +0000 Message-Id: <20190401115232.453-5-linux.amoon@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190401115232.453-1-linux.amoon@gmail.com> References: <20190401115232.453-1-linux.amoon@gmail.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [RFC 4/6] configs: exynos: Add new CONFIG_SYS_ODROID_USB config option X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Add new CONFIG_SYS_ODROID_USB flag to avoid compliation error on other development boards. Fix below compilation error: Error: You must add new CONFIG options using Kconfig The following new ad-hoc CONFIG options were detected: CONFIG_SYS_ODROID_USB Signed-off-by: Anand Moon --- board/samsung/odroid/Kconfig | 3 +++ drivers/usb/host/ehci-exynos.c | 6 ++++++ include/configs/odroid.h | 1 + 3 files changed, 10 insertions(+) diff --git a/board/samsung/odroid/Kconfig b/board/samsung/odroid/Kconfig index 8b52a0d589..c5fbffabad 100644 --- a/board/samsung/odroid/Kconfig +++ b/board/samsung/odroid/Kconfig @@ -9,4 +9,7 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "odroid" +config SYS_ODROID_USB + bool "Exynos4412 Odroid USB" + endif diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index e6a542e092..3f62eba486 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -31,7 +31,9 @@ struct exynos_ehci_platdata { struct gpio_desc vbus_gpio; }; +#ifdef CONFIG_SYS_ODROID_USB extern int exynos_usb_init(void); +#endif /** * Contains pointers to register base addresses @@ -145,6 +147,7 @@ static void exynos5_setup_usb_phy(struct exynos_usb_phy *usb) static int ehci_exynos_init_after_reset(struct ehci_ctrl *ehcntl) { +#ifdef CONFIG_SYS_ODROID_USB if (cpu_is_exynos4()) { if (proid_is_exynos4412()) { /* @@ -153,6 +156,7 @@ static int ehci_exynos_init_after_reset(struct ehci_ctrl *ehcntl) exynos_usb_init(); } } +#endif return 0; } @@ -172,10 +176,12 @@ static void exynos4412_setup_usb_phy(struct exynos4412_usb_phy *usb) udelay(10); clrbits_le32(&usb->usbphyrstcon, (RSTCON_HOSTPHY_SWRST | RSTCON_SWRST)); +#ifdef CONFIG_SYS_ODROID_USB /* * "usb start" initialize the usb driver */ exynos_usb_init(); +#endif } static void setup_usb_phy(struct exynos_usb_phy *usb) diff --git a/include/configs/odroid.h b/include/configs/odroid.h index 9f2d43e3fa..d8d30c0f62 100644 --- a/include/configs/odroid.h +++ b/include/configs/odroid.h @@ -32,6 +32,7 @@ #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x5E00000) #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x3E00000) +#define CONFIG_SYS_ODROID_USB #include From patchwork Mon Apr 1 11:52:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1072688 X-Patchwork-Delegate: lukma@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qzZ6fJjl"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44XrPy2vBlz9sMQ for ; Mon, 1 Apr 2019 22:55:34 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 0EDFDC21DD4; Mon, 1 Apr 2019 11:54:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 6AA31C21DD4; Mon, 1 Apr 2019 11:53:47 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AFDDCC21E73; Mon, 1 Apr 2019 11:53:12 +0000 (UTC) Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by lists.denx.de (Postfix) with ESMTPS id 499BEC21DF9 for ; Mon, 1 Apr 2019 11:53:09 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id b3so4464300pfd.1 for ; Mon, 01 Apr 2019 04:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TknWzs6HKb2sUJq6ylzpcw73fdBPmqwsVFj9SU/jaQs=; b=qzZ6fJjlwkqRLkdunt6gGogixREgOp3Mlm8u2K55rv2NziH0HYeBUE4aPKSK+0dNeW 59KWuJWuTlXj8TMsxdp7K8dpm7m+FxHT0Fb1tAyRPRKCw0dOYm35lt3O94XOTGTFFuP0 C2jPZQ+y2PiLZ1QwL/jpTayq4EwaemFTnQnEDeCKS0hp57xcJebbG8qBgHYvICVPR3bu wOcW8vVIu6PY86bITN2GPh1ZMWXoLOHBn556NNdPjehSyCuNa4sqgbreFYc5JQRhC8ud iB7U3AznqS+LV/ZL/ceXwDAaGgcoEK53ogjysbt3rVktq1f1D3jPmYu1lAmxzJil9nZ2 u7yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TknWzs6HKb2sUJq6ylzpcw73fdBPmqwsVFj9SU/jaQs=; b=KM7A/NwcjEvSY3yFIJjG8+7VFP9Pc7IHZUSQlbw2pettlcxlyAjhYaArfM0CtpYK0j AeJ9NlYqCHVlHGwaUx1I6MkYMsmCkhZ3odRDEJU3DJDgWbDs9utZ+LB3JhyVX3gHCBFH XSuOhqwOBmXhxTJYhuTPRRDlkxOvBBZ7U5g9lkHuBSN3rJC99pJbqDc9d80mHj1RnrEQ Ys+p/W7fcgRTzsA6mBjF5t9xdlesSP0NYd4ZVtKah75sGQuwuX/6jjuhGVsi85rPYKlX w8EALu8S6qNZS63zodtzIJfHHo7Q/CCyuDKsZmy3QfbOgO+UJbW9tq4Pcs4VRA276pio w9Uw== X-Gm-Message-State: APjAAAWdTtJkaO7eEm8pMs2CFFRqzw/AU3pShaMjFJUz9U+svRcG4/0r Jh9e6YcGJNeejJz9AEhTkgc= X-Google-Smtp-Source: APXvYqwhsVbVK7uK8LaYkMrPWAAFbwwZr3WpSWLGiVfazY+039vONIKQBz4Epad3LVUDXyaH7L+6IA== X-Received: by 2002:a65:5304:: with SMTP id m4mr15401710pgq.281.1554119587986; Mon, 01 Apr 2019 04:53:07 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.132]) by smtp.gmail.com with ESMTPSA id d75sm26170524pga.66.2019.04.01.04.53.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 04:53:07 -0700 (PDT) From: Anand Moon To: Jaehoon Chung , Marek Vasut , Tobias Jakobi , Minkyu Kang , Lukasz Majewski , Simon Glass , Krzysztof Kozlowski Date: Mon, 1 Apr 2019 11:52:31 +0000 Message-Id: <20190401115232.453-6-linux.amoon@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190401115232.453-1-linux.amoon@gmail.com> References: <20190401115232.453-1-linux.amoon@gmail.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [RFC 5/6] arm: exynos: odroid: fix the confict scripaddr extra env setting X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" fix the confict of scriptaddr address with ramdisk_addr_r also add missing pxefile_addr_r u-boot extras env setting. Signed-off-by: Anand Moon --- include/configs/odroid.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/odroid.h b/include/configs/odroid.h index d8d30c0f62..64819cf81c 100644 --- a/include/configs/odroid.h +++ b/include/configs/odroid.h @@ -169,9 +169,10 @@ "consoleoff=set console console=ram; save; reset\0" \ "initrdname=uInitrd\0" \ "ramdisk_addr_r=0x42000000\0" \ - "scriptaddr=0x42000000\0" \ "fdt_addr_r=0x40800000\0" \ "kernel_addr_r=0x41000000\0" \ + "scriptaddr=0x50000000\0" \ + "pxefile_addr_r=0x51000000\0" \ BOOTENV /* GPT */ From patchwork Mon Apr 1 11:52:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1072686 X-Patchwork-Delegate: lukma@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="S71N9feo"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44XrPM0sq3z9sMQ for ; Mon, 1 Apr 2019 22:55:02 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 85CFFC21E73; Mon, 1 Apr 2019 11:53:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id C5E72C21DA6; Mon, 1 Apr 2019 11:53:42 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 563C5C21DF9; Mon, 1 Apr 2019 11:53:16 +0000 (UTC) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by lists.denx.de (Postfix) with ESMTPS id 73D88C21E2C for ; Mon, 1 Apr 2019 11:53:12 +0000 (UTC) Received: by mail-pg1-f177.google.com with SMTP id k3so4649819pga.6 for ; Mon, 01 Apr 2019 04:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IR4MTjoyIJK8G8Po7ljitU//ChEU0HS3PWZq1l7/44k=; b=S71N9feoe59WH5HfjaSyS585atrqYLEyM3Z1bYr9xBbod/+CuSNSmN8QOAXDuS1TS3 TImdgOj6UKpT3W0KIKiX65P1IQ4gQB4IZzhZu3lBkQDYX0OpG3CzNJtgGaWtxUOQymod pBHcNblyxS4L88KusEOrUo5ygS67o5XyCy4ig5yyUrdKJWo3l1Mxr8Y754ER2kbHGE11 u1o0Yfllw6tLfcX9YkQyAMljnWIX9ZcMAivyYGHGrhfhKSrnJZ6TeMoN8EEqn92wl6Lf jNU+MfSFeEDFd3u8V06KIgu0hI2Ax+wYP9OAcm4weh33bRgLNa3LlCeJ1f7sgJDuQFP9 hxXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IR4MTjoyIJK8G8Po7ljitU//ChEU0HS3PWZq1l7/44k=; b=B60CtJlY/0SWYBrwcsspOvqcEJfk7cyl4ZwVXe6pYR/3ywAvqX8AEIEe+GMCLotc80 V7xSQ3YMkjf6eZjnPSSQnlR6s7Ns+vJWNLL5gLa/Rc+VFNs/znAaTNQmiqtWFsu7DU/X TY+KfD0wgSvq9jagr2KfLI3M+0S4yleydLuX8HeARJtZHBM2fxRsGYskRz3Om1jmPGfL wL0wUcqsK3YWXkBs2HcRTpRZM7gNBwDNP+iyDlNzAg98R418nP7CUUXkxLZlOeNISU+J pam7SMqbOtOqib9ENioDffpORqBGCSwesF4Us1U7pUyKxwz3hAvGGtWGNtcfGF0Ia/kr Cr1g== X-Gm-Message-State: APjAAAXrE7c9YuAhz8ajlpOe4nFLzGhP0IGoVlpcIA6eU00gnUi9NFaB hXKUNZ5udN17CHrQnqOVcHo= X-Google-Smtp-Source: APXvYqzMHoL7v4JINx+Y7KBsumCIzBnSTjv1piP4jv6WlkWr6Qh932PLN9Xf+RZ5I4mG5fRc8yeOBw== X-Received: by 2002:a62:3583:: with SMTP id c125mr20221082pfa.169.1554119591127; Mon, 01 Apr 2019 04:53:11 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.132]) by smtp.gmail.com with ESMTPSA id d75sm26170524pga.66.2019.04.01.04.53.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 04:53:10 -0700 (PDT) From: Anand Moon To: Jaehoon Chung , Marek Vasut , Tobias Jakobi , Minkyu Kang , Lukasz Majewski , Simon Glass , Krzysztof Kozlowski Date: Mon, 1 Apr 2019 11:52:32 +0000 Message-Id: <20190401115232.453-7-linux.amoon@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190401115232.453-1-linux.amoon@gmail.com> References: <20190401115232.453-1-linux.amoon@gmail.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [RFC 6/6] arm: exynos: add usbnet_devaddr setting to env X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Add usbnet_devaddr mac address to extra env setting to avoid failure of ethernet driver while usb start. Odroid # usb start starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found scanning usb for ethernet devices... Error: sms0 address not set. Warning: failed to set MAC address 1 Ethernet Device(s) found Signed-off-by: Anand Moon --- include/configs/odroid.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/odroid.h b/include/configs/odroid.h index 64819cf81c..b0402e8d49 100644 --- a/include/configs/odroid.h +++ b/include/configs/odroid.h @@ -33,6 +33,7 @@ #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x5E00000) #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x3E00000) #define CONFIG_SYS_ODROID_USB +#define CONFIG_USBNET_DEV_ADDR "02:DE:AD:BE:EF:FF" #include @@ -173,6 +174,7 @@ "kernel_addr_r=0x41000000\0" \ "scriptaddr=0x50000000\0" \ "pxefile_addr_r=0x51000000\0" \ + "usbethaddr=" __stringify(CONFIG_USBNET_DEV_ADDR) "\0" \ BOOTENV /* GPT */