From patchwork Thu Jan 18 14:47:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Nelson X-Patchwork-Id: 862964 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="V0a1tbZw"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zMn1D5LXgz9s7f for ; Fri, 19 Jan 2018 01:49:52 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 5CE3BC21EBC; Thu, 18 Jan 2018 14:49:49 +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_H2, 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 0A932C21E73; Thu, 18 Jan 2018 14:49:46 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 49283C21E73; Thu, 18 Jan 2018 14:49:45 +0000 (UTC) Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by lists.denx.de (Postfix) with ESMTPS id 92B00C21C50 for ; Thu, 18 Jan 2018 14:49:44 +0000 (UTC) Received: by mail-pf0-f195.google.com with SMTP id i66so14744877pfd.7 for ; Thu, 18 Jan 2018 06:49:44 -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; bh=oUBfCtcfNZ7o1i2aN2bZgycOCoS+qYhqSERIHTlNFAE=; b=V0a1tbZwAeALOFywA0+DCj5y4oZjcpI7yNyH577OeuW5eDnzZ4KGNcwy32cDfRTzSo dJM5SA3ydGSXGEDEz3G7iSVhLHtNf7ljO6qS74sNwtiY4futgzV+pcf4ywmrXyvc2O8E i3nQ+M3gzlr0Z+xF7o4Bh3BxH3LOzU1hS0pJk= 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=oUBfCtcfNZ7o1i2aN2bZgycOCoS+qYhqSERIHTlNFAE=; b=ed/iUxbBGfxKxquoVH2hPRPWQMb3VM87+X0NXYrSPU8eXREVRrkIogVaYLfJB24KaK TwZeyrrB5bzl1r7dz2+B04Holz9XsE1WPIhwEw5ZBXDDJF1m6FisvV25y+JI+pJGI0XN URZcvYmKYcEvAACZR8hhumxwOw4MSc7QvGdTpQUbBNYpw6UhlZuMJmK7iHNo5L3EXKdn vTKZxrd11Sgy17jRW7aAQ32sjncvv7IaLrDg60yZQGBzwflN97uKc85HSpQrleKPXdaa YTag239qtWW1zt95Lmd2RIGE1ZvokWFfxJ/kVjDk+Gb6xw3+FagBkVM2jzIZ7cUdapwr cl1Q== X-Gm-Message-State: AKwxytcnIqmi5hepUoc8zMY+D+Xz126a2ultBmktJ3PwWdTy8qHsKpot dUTXquDjTgjlio6taF2Q2+YElw+O X-Google-Smtp-Source: ACJfBotIKEGgLEvkMHrm572jWY16gwBwXNZSicrGgo+y1xBDqGEf4H7FcIrf3oXdoirIkY7GS4Nu7g== X-Received: by 10.99.164.74 with SMTP id c10mr12125296pgp.18.1516286982703; Thu, 18 Jan 2018 06:49:42 -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.49.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 06:49:42 -0800 (PST) From: Eric Nelson To: u-boot@lists.denx.de Date: Thu, 18 Jan 2018 07:47:31 -0700 Message-Id: <1516286852-6132-1-git-send-email-eric@nelint.com> X-Mailer: git-send-email 2.7.4 Cc: fabio.estevam@nxp.com, stefan.agner@toradex.com Subject: [U-Boot] [PATCH 1/2] mx6memcal: launder through savedefconfig 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" This patch just changes the order of configuration items in mx6memcal_defconfig to match the Kconfig layout, making it easier to track changes made using menuconfig. Signed-off-by: Eric Nelson Reviewed-by: Fabio Estevam --- configs/mx6memcal_defconfig | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configs/mx6memcal_defconfig b/configs/mx6memcal_defconfig index 9a3bb83..b27330c 100644 --- a/configs/mx6memcal_defconfig +++ b/configs/mx6memcal_defconfig @@ -9,25 +9,24 @@ CONFIG_SPL_WATCHDOG_SUPPORT=y CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg,SPL,MX6QDL" CONFIG_SPL=y CONFIG_HUSH_PARSER=y -# CONFIG_MMC is not set # CONFIG_CMD_BOOTD is not set # CONFIG_CMD_BOOTM is not set # CONFIG_CMD_ELF is not set # CONFIG_CMD_IMI is not set -# CONFIG_CMD_IMLS is not set # CONFIG_CMD_XIMG is not set # CONFIG_CMD_EXPORTENV is not set # CONFIG_CMD_IMPORTENV is not set # CONFIG_CMD_EDITENV is not set # CONFIG_CMD_SAVEENV is not set # CONFIG_CMD_ENV_EXISTS is not set -CONFIG_CMD_MEMTEST=y CONFIG_CMD_MEMINFO=y -# CONFIG_CMD_LOADB is not set -# CONFIG_CMD_LOADS is not set +CONFIG_CMD_MEMTEST=y # CONFIG_CMD_FLASH is not set # CONFIG_CMD_FPGA is not set +# CONFIG_CMD_LOADB is not set +# CONFIG_CMD_LOADS is not set # CONFIG_CMD_NET is not set # CONFIG_CMD_NFS is not set CONFIG_CMD_CACHE=y +# CONFIG_MMC is not set CONFIG_REGEX=y 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 */