From patchwork Thu Jan 18 14:47:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Nelson X-Patchwork-Id: 862969 X-Patchwork-Delegate: sbabic@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; dkim=fail reason="key not found in DNS" (0-bit key; secure) header.d=nelint.com header.i=@nelint.com header.b="FNrQSyC+"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zMn8f22Cfz9s81 for ; Fri, 19 Jan 2018 01:56:17 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id ABC70C21EBD; Thu, 18 Jan 2018 14:56:12 +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_DNSWL_BLOCKED, 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 5D85EC21E5B; Thu, 18 Jan 2018 14:56:09 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 21973C21E5B; Thu, 18 Jan 2018 14:56:08 +0000 (UTC) Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by lists.denx.de (Postfix) with ESMTPS id 7C063C21C50 for ; Thu, 18 Jan 2018 14:56:07 +0000 (UTC) Received: by mail-pg0-f65.google.com with SMTP id n17so6832018pgf.10 for ; Thu, 18 Jan 2018 06:56:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nelint.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0BQiApluKyetJ3v7IAr+M0iwFAa9mthy4bTSzAshEHI=; b=FNrQSyC+0yCtcSulT0LLX1R1JUIliy1s3OTdikxO2/AAmP3+nWNkwQaxjODek2RsNk k9KPIuwVjIbXC3t/wbCTg0j5vf1Kc/yBbPFXM6zXmvw5VWjRlbLWc3/MsTjR9jCuTC0U Q7MtFMCv/bcrJAsw0Kju7UM+b0VPLXBQJC8no= 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; bh=0BQiApluKyetJ3v7IAr+M0iwFAa9mthy4bTSzAshEHI=; b=A2PfM5AKpngboYhquTR+0HEYix7xOZRQeQNetjB6Yt6IKbVFwgqHepM6a3Xbgbo392 431QQFPJaRhyHJfrNkKNKxUlQp+zgQK4mnYdKoCfLGT9jMuRUIqQw58uDxRsKz+CaTWf qWJbhNi03FpoP3TwDGqUuiJHJ/NJZhp3SAxeC88Y4yJjuFAb1Ap/mq0tNa049T57hXtf kCQfCLnSHUhR/595MKWXrtzurIFz75aYy0XiPYwxigrYhznGzKT5ywug326mVi+RognU vDfkwif9qqW7CRSVEwn1LGhVgN4rECINAxmxIW1fNLN+PoftNw4mIXnZgOrKcRM9Ox3j T13w== X-Gm-Message-State: AKwxytfPpdKv4tujAjPWdAGcepNahLGGYwmual5XJlNiY5v+rbfe3m3B q2PItp4+7pA6olRObZb/x3IwVAni X-Google-Smtp-Source: ACJfBotTsAJL0IvMxuZ7NkCVt4J+2ryPBt14WTnC8lNJtXznvqicWunSs4lQ+Pz/kNHV64G6LjLYPA== X-Received: by 10.98.86.19 with SMTP id k19mr23526640pfb.71.1516287365707; Thu, 18 Jan 2018 06:56:05 -0800 (PST) Received: from localhost.localdomain ([2600:8800:1301:f1a0:719f:762a:957b:9aef]) by smtp.gmail.com with ESMTPSA id s14sm11865635pgf.16.2018.01.18.06.56.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 06:56:05 -0800 (PST) From: Eric Nelson To: u-boot@lists.denx.de Date: Thu, 18 Jan 2018 07:47:32 -0700 Message-Id: <1516286852-6132-2-git-send-email-eric@nelint.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516286852-6132-1-git-send-email-eric@nelint.com> References: <1516286852-6132-1-git-send-email-eric@nelint.com> Cc: fabio.estevam@nxp.com, stefan.agner@toradex.com Subject: [U-Boot] [PATCH 2/2] mx6memcal: enable SDP support 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" The initial implementation of mx6memcal reset the CPU after running the memory calibration procedure because the generic board has no information about which boot devices are available. Now that we have SDP support in SPL, use it to allow a full U-Boot to be uploaded (i.e. to use "mtest"). Signed-off-by: Eric Nelson Reviewed-by: Fabio Estevam --- board/freescale/mx6memcal/spl.c | 1 - configs/mx6memcal_defconfig | 10 ++++++++++ include/configs/mx6memcal.h | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/board/freescale/mx6memcal/spl.c b/board/freescale/mx6memcal/spl.c index 8ee89ff..805fdab 100644 --- a/board/freescale/mx6memcal/spl.c +++ b/board/freescale/mx6memcal/spl.c @@ -452,5 +452,4 @@ void board_init_f(ulong dummy) display_calibration(&calibration); } } - reset_cpu(0); } diff --git a/configs/mx6memcal_defconfig b/configs/mx6memcal_defconfig index b27330c..d3720dc 100644 --- a/configs/mx6memcal_defconfig +++ b/configs/mx6memcal_defconfig @@ -8,6 +8,10 @@ CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_SPL_WATCHDOG_SUPPORT=y CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg,SPL,MX6QDL" CONFIG_SPL=y +CONFIG_SPL_USB_HOST_SUPPORT=y +CONFIG_SPL_USB_GADGET_SUPPORT=y +CONFIG_SPL_USBETH_SUPPORT=y +CONFIG_SPL_USB_SDP_SUPPORT=y CONFIG_HUSH_PARSER=y # CONFIG_CMD_BOOTD is not set # CONFIG_CMD_BOOTM is not set @@ -29,4 +33,10 @@ CONFIG_CMD_MEMTEST=y # CONFIG_CMD_NFS is not set CONFIG_CMD_CACHE=y # CONFIG_MMC is not set +CONFIG_USB=y +CONFIG_USB_GADGET=y +CONFIG_USB_GADGET_MANUFACTURER="FSL" +CONFIG_USB_GADGET_VENDOR_NUM=0x0525 +CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 +CONFIG_CI_UDC=y CONFIG_REGEX=y diff --git a/include/configs/mx6memcal.h b/include/configs/mx6memcal.h index f5238a5..28c67c4 100644 --- a/include/configs/mx6memcal.h +++ b/include/configs/mx6memcal.h @@ -56,4 +56,6 @@ #define CONFIG_ENV_SIZE (8 * 1024) +#define CONFIG_MXC_USB_PORTSC PORT_PTS_UTMI + #endif /* __CONFIG_H */