From patchwork Fri Aug 23 08:36:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suniel Mahesh X-Patchwork-Id: 1152031 X-Patchwork-Delegate: trini@ti.com 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=none (p=none dis=none) header.from=techveda.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=techveda-org.20150623.gappssmtp.com header.i=@techveda-org.20150623.gappssmtp.com header.b="XueuPDnm"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46FFBH5Nf2z9s3Z for ; Fri, 23 Aug 2019 18:36:55 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 5137FC22100; Fri, 23 Aug 2019 08:36:51 +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.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id DC926C21C38; Fri, 23 Aug 2019 08:36:50 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0E85BC21C29; Fri, 23 Aug 2019 08:36:48 +0000 (UTC) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by lists.denx.de (Postfix) with ESMTPS id 0203CC21C29 for ; Fri, 23 Aug 2019 08:36:48 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id g2so6009753pfq.0 for ; Fri, 23 Aug 2019 01:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=techveda-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=8h+U0Teiip45xz6M2DvHTnpxnu9NwZ5zmf7oE9KKsuc=; b=XueuPDnmJ9AbuVNpJ/lMnZwkh3c8mXXfcHBMorJMUovOcx7FJXtYDLdfMQ38soXqJ1 wp91iVKoiMVELW3Rqn2vko0h3I9eA796MeYp5erVSXAYhpHKQKPKDZk94dHwQAQS06I+ gcYXJd/eRGiFQ0j/iWzIHegNDdS1zz4PrV1U69a6GgPqFg7pp3P4VTWB3Hv84aaxWjhR Acvf526c+ErlO2tPPAXcTTjllnlqF2QXyPD2ak+3WqdfZh4/qOPfmtQKyvSJ/bl+ufXC N7oikpnBiqWrb4H0gR6OxbFvXoZcBgz/ACtYmu8/flxIEkTawegGv7rEP1ukDykzpTW7 2KvQ== 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; bh=8h+U0Teiip45xz6M2DvHTnpxnu9NwZ5zmf7oE9KKsuc=; b=AWnSpnC7wDDdRlfbB45WO2j0OcrDT8I2Q/SV4HT+Bq0OfL9snGktKLlVI/nN3Jqvey mIlDCVb37S286FeVhyh/IMawd/idfrZgTQiN3DlyP4LDzDtaJKr3J338jPx2eeurLYac N+8fDwhgcaxGwxO5W5S6+maXRWF632vpxsYYNRzf6xsNfb1VGFME6kZgVTcc60IjujOl dBss+LYP8T3/oREpxxkxnFuXl0loFNGOmiCde89z8Sj1GHjYlRdrkH1V41OPywnKFLJz a/T8ORI8uIjdhpUe3iOPN0uQ3j0Xz5uomTPVEieZRYtxIG4VGtr6T1eqCLHabIr3oSZB kgFg== X-Gm-Message-State: APjAAAU2TDYttReJ2kPkTnpGBzSDw7ohXx5+OFMByKraPkc7w1hoU0gp jrUy2DqiiCsiKsHT1fl5HNBzMw== X-Google-Smtp-Source: APXvYqwY6h0qtg42HtYin6973e5L6ZppHBdimux4tlAncpMyoUff4kNa5YapbrtgLmCj+p7kG/kmAw== X-Received: by 2002:a17:90a:8c0f:: with SMTP id a15mr3829941pjo.112.1566549406138; Fri, 23 Aug 2019 01:36:46 -0700 (PDT) Received: from localhost.localdomain ([123.201.165.62]) by smtp.gmail.com with ESMTPSA id n10sm3113496pgv.67.2019.08.23.01.36.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Aug 2019 01:36:45 -0700 (PDT) From: sunil.m@techveda.org To: lokeshvutla@ti.com, trini@konsulko.com Date: Fri, 23 Aug 2019 14:06:34 +0530 Message-Id: <1566549394-27538-1-git-send-email-sunil.m@techveda.org> X-Mailer: git-send-email 2.7.4 Cc: u-boot@lists.denx.de, Suniel Mahesh Subject: [U-Boot] [PATCH] board: ti: am43xx_evm_usbboot: Enable DM for USB, fix SPL build errors 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Suniel Mahesh To address the following warning message: ===================== WARNING ====================== This board does not use CONFIG_DM_USB. Please update the board to use CONFIG_DM_USB before the v2019.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/MIGRATION.txt for more info. ==================================================== CONFIG_DM_USB is enabled, this resulted in SPL build errors: drivers/built-in.o: In function 'xhci_dwc3_probe': u-boot/drivers/usb/host/xhci-dwc3.c:155: undefined reference to 'usb_get_dr_mode' scripts/Makefile.spl:404: recipe for target 'spl/u-boot-spl' failed make[1]: *** [spl/u-boot-spl] Error 1 Makefile:1721: recipe for target 'spl/u-boot-spl' failed make: *** [spl/u-boot-spl] Error 2 Enabling usb common library and usb ethernet drivers in SPL does the job. Target was compile tested, build was clean. Signed-off-by: Suniel Mahesh --- configs/am43xx_evm_usbhost_boot_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/am43xx_evm_usbhost_boot_defconfig b/configs/am43xx_evm_usbhost_boot_defconfig index dbc2fe1..bd012d3 100644 --- a/configs/am43xx_evm_usbhost_boot_defconfig +++ b/configs/am43xx_evm_usbhost_boot_defconfig @@ -14,6 +14,8 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y CONFIG_SPL_MTD_SUPPORT=y CONFIG_SPL_OS_BOOT=y +CONFIG_SPL_USB_GADGET=y +CONFIG_SPL_USB_ETHER=y CONFIG_SPL_USB_HOST_SUPPORT=y CONFIG_SPL_USB_STORAGE=y CONFIG_CMD_SPL=y @@ -61,6 +63,7 @@ CONFIG_TI_QSPI=y CONFIG_TIMER=y CONFIG_OMAP_TIMER=y CONFIG_USB=y +CONFIG_DM_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y