From patchwork Wed Jul 31 12:04:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1139706 X-Patchwork-Delegate: twarren@nvidia.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=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="qmNRjQgC"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45zBvf2ysKz9s3l for ; Wed, 31 Jul 2019 22:05:34 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id DF530C21DAF; Wed, 31 Jul 2019 12:05: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.0 required=5.0 tests=FREEMAIL_FROM, 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 59ECDC21E12; Wed, 31 Jul 2019 12:05:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 57129C21C3F; Wed, 31 Jul 2019 12:05:05 +0000 (UTC) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by lists.denx.de (Postfix) with ESMTPS id 03684C21C38 for ; Wed, 31 Jul 2019 12:05:05 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id 31so69424092wrm.1 for ; Wed, 31 Jul 2019 05:05:05 -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; bh=f6GP5E0BQ0DhUoy/gw0qQSyyVxOkUc9pjl/ZRAUvTH8=; b=qmNRjQgCvTpq2cipzA8cba0ytr+y4ePMeZ3kjvZDdDz5N+AN4xwZi9PR/bllu0G1Wd naZJkFsGUe/Ofj0U0YvqNjsErVb/BXY/kaBci4NyQV/jb3uQB0VQwcL2FG04gg8PlyJl s9M1AP8CwcYXOZCTU7mvKeeyh6ziWitd+nuOQ/EHLR79Jfv4T31OoUJG8RSCvz3hkXoS reDd2bH6tDEZMeTQOWzGt6XyW+Wbvq+yIzcJGctiPoXuaTlSewGxIxC3rk2T1s2ecem2 SBm77ogPwSDWH+E98IABWotttijH+QvVADwkPkkk9cNsK/OvDbdsRufZdSYCNepMYFwS z93Q== 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=f6GP5E0BQ0DhUoy/gw0qQSyyVxOkUc9pjl/ZRAUvTH8=; b=gQ1q4U8Lxme/MJJu1iab1IGEleSAuPW1XqCE3eeZ2h+gB9dzAYklg7hwP+Jq3TdKEd 5FumdL7EG0a1m8pmhLXZcigoRYlzDrp8Sikc9jqZVwkStg+f7dm8bqOYQ4IzcHICNA7/ 5LFZUWZFidScvJ3cdXghWoMoM/kdl52NbjtlgXxA2cO/KqLlZyKNNWrs/9gculDA9FTc VrtXi0P4rNydmVD+aI4YZKtGvpdutViS4bzMNHbikuQ6q2BlBoqmHAq30ab0BroAI+cm BiaKsjLkx5D+re8fYq8ryAYP1zeWm68/KnEb3kBQwLjSq5msWLIlW6PmmS945HdH6UbW jP5w== X-Gm-Message-State: APjAAAUDwHD+lGjnNb/xOBNuWKK6a0xPsujGavqQzmh5n2yEi+CVk1xG LEtKpRsWjhEPHYEt419qHs4gp3fl X-Google-Smtp-Source: APXvYqxAycpaOt6s43hqWs/r8k3MZi2aYMMJTDlVqJX36Oe0Z7w0dQB8bYl9lhJrFsWBhAFVjQCqcw== X-Received: by 2002:a5d:4e8a:: with SMTP id e10mr54127892wru.26.1564574704234; Wed, 31 Jul 2019 05:05:04 -0700 (PDT) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id c11sm115242429wrq.45.2019.07.31.05.05.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2019 05:05:03 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Date: Wed, 31 Jul 2019 15:04:37 +0300 Message-Id: <20190731120445.2459-2-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190731120445.2459-1-igor.opaniuk@gmail.com> References: <20190731120445.2459-1-igor.opaniuk@gmail.com> Cc: Marcel Ziswiler , Igor Opaniuk , Dominik Sliwa Subject: [U-Boot] [PATCH v1 1/9] apalis-tk1: do not explicitly release reset_moci# 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: Marcel Ziswiler By keeping RESET_MOCI_CTRL low we avoid explicitly releasing RESET_MOCI#. Please note that module hardware versions up to V1.1A will already release RESET_MOCI# in hardware coming out of reset. Please further note that with this change the USB hub on the Apalis Evaluation board is kept in reset in U-Boot and therefore none of its ports are operational in U-Boot. Signed-off-by: Marcel Ziswiler Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov --- board/toradex/apalis-tk1/pinmux-config-apalis-tk1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/toradex/apalis-tk1/pinmux-config-apalis-tk1.h b/board/toradex/apalis-tk1/pinmux-config-apalis-tk1.h index 1584d9b2d3..d2d24c4391 100644 --- a/board/toradex/apalis-tk1/pinmux-config-apalis-tk1.h +++ b/board/toradex/apalis-tk1/pinmux-config-apalis-tk1.h @@ -39,7 +39,7 @@ static const struct tegra_gpio_config apalis_tk1_gpio_inits[] = { GPIO_INIT(R, 1, OUT0), /* Shift_CTRL_Dir_In[1] */ GPIO_INIT(R, 2, OUT0), /* Shift_CTRL_OE[3] */ GPIO_INIT(S, 3, OUT0), /* Shift_CTRL_Dir_In[2] */ - GPIO_INIT(U, 4, OUT1), + GPIO_INIT(U, 4, OUT0), /* RESET_MOCI_CTRL */ GPIO_INIT(W, 3, IN), GPIO_INIT(W, 5, IN), GPIO_INIT(BB, 0, IN), From patchwork Wed Jul 31 12:04:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1139709 X-Patchwork-Delegate: twarren@nvidia.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=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="Vwr0rFp0"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45zBxw5g2sz9sMr for ; Wed, 31 Jul 2019 22:07:32 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 82BABC21DA6; Wed, 31 Jul 2019 12:05:25 +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=FREEMAIL_FROM, 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 CA76FC21DE8; Wed, 31 Jul 2019 12:05:11 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 072EDC21DEC; Wed, 31 Jul 2019 12:05:07 +0000 (UTC) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by lists.denx.de (Postfix) with ESMTPS id 229B2C21DA6 for ; Wed, 31 Jul 2019 12:05:06 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id x1so19486524wrr.9 for ; Wed, 31 Jul 2019 05:05: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; bh=5F1vKc1+/eTzJtklL2gLyDxVA3N3/SWpzOOy4Ynqu2s=; b=Vwr0rFp0diNbCgsmrwFAK6SHJIPu6gdA8/UkWapNRrJQ2NvrHvdAfakPSf17un2Bmp H4NwvioBvVU1Ypptm3COkUnTuSTebGlVljd5aXTcFQOMV0EmEidkGSVWL18/J/BlatGj z3DtpHblQvVh+eWICVusTrO6B6eVrtDRM11ebY6ZQp70N9S5yZzBXrVG2lI0wRsubkPd C67Sz6vCti5NSuFdPdoNmPbddemLfczNXj/IJP4uA/LHjxDdXJ2KwPYFr7onI3NrVHn4 QTn5OFP94tHIoM11tPQrBDHuuQbrlfTccm6cxenItrFtq/L9a8F4t3bUn0hl1Vn1sK6P IRUA== 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=5F1vKc1+/eTzJtklL2gLyDxVA3N3/SWpzOOy4Ynqu2s=; b=KXIoVCWRT4qX7idVn3B9/11XSq/EeiVe5bdDckpHJRRYLAw8c0t6BAX7KCnCHPVobI DBvwyOrwLX4P1O3GK9/Ar/gaxqU/+ceOWCghoaMbkq28bgYa868kYIdR456NYO1BqcKQ HB5gqFIhsfNcMKsSZsZx9mDdK2ppa9+kioxuKxbwu/pz+lA/4L6eIQTY8BeOfn08aqae jVf1pU5pVJckhEA+aT6v1VgAe5vhmHafutfA+RcObPSIs8cFMXqM7amtL7ljfl1uWW0Y NnJy05jTbrxWGo7H8hhLn6rzxQ+q4GvYH5s9flmHtmRAlqGQlS2u/G+4GZEMupxMAYSF yBgw== X-Gm-Message-State: APjAAAViIzLOCB4QBGN4Vv7S2WIbppVuZU53KOenpeGIFhGra+M2+C/w AbsxbcgaBMCQq435RiP6aLM2gR81 X-Google-Smtp-Source: APXvYqyqAUVbcAO7YEvyoux9Yl6Zwf+V+CBAK4KQ1xEriRFYn4r6iNCydlqZ9HapDFdKxepnMukgcA== X-Received: by 2002:adf:9bcd:: with SMTP id e13mr31706037wrc.338.1564574705514; Wed, 31 Jul 2019 05:05:05 -0700 (PDT) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id g131sm49187719wmf.37.2019.07.31.05.05.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2019 05:05:05 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Date: Wed, 31 Jul 2019 15:04:38 +0300 Message-Id: <20190731120445.2459-3-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190731120445.2459-1-igor.opaniuk@gmail.com> References: <20190731120445.2459-1-igor.opaniuk@gmail.com> Cc: Marcel Ziswiler , Igor Opaniuk , Dominik Sliwa Subject: [U-Boot] [PATCH v1 2/9] apalis-tk1: set apalis gpio 8 aka fan_en 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: Igor Opaniuk Make sure the Apalis GPIO 8 aka FAN_EN is on when using Apalis TK1 modules. Signed-off-by: Igor Opaniuk Signed-off-by: Dominik Sliwa Reviewed-by: Oleksandr Suvorov --- board/toradex/apalis-tk1/apalis-tk1.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/board/toradex/apalis-tk1/apalis-tk1.c b/board/toradex/apalis-tk1/apalis-tk1.c index b87e9e7a3e..d57c5042dd 100644 --- a/board/toradex/apalis-tk1/apalis-tk1.c +++ b/board/toradex/apalis-tk1/apalis-tk1.c @@ -19,6 +19,7 @@ #define LAN_DEV_OFF_N TEGRA_GPIO(O, 6) #define LAN_RESET_N TEGRA_GPIO(S, 2) +#define FAN_EN TEGRA_GPIO(DD, 2) #define LAN_WAKE_N TEGRA_GPIO(O, 5) #ifdef CONFIG_APALIS_TK1_PCIE_EVALBOARD_INIT #define PEX_PERST_N TEGRA_GPIO(DD, 1) /* Apalis GPIO7 */ @@ -241,6 +242,15 @@ void tegra_pcie_board_port_reset(struct tegra_pcie_port *port) } #endif /* CONFIG_PCI_TEGRA */ +/* + * Enable/start PWM CPU fan + */ +void start_cpu_fan(void) +{ + gpio_request(FAN_EN, "FAN_EN"); + gpio_direction_output(FAN_EN, 1); +} + /* * Backlight off before OS handover */ From patchwork Wed Jul 31 12:04:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1139713 X-Patchwork-Delegate: twarren@nvidia.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=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="q3q6DaFU"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45zC005z3fz9s3l for ; Wed, 31 Jul 2019 22:09:20 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 6A5DCC21D74; Wed, 31 Jul 2019 12:06: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.0 required=5.0 tests=FREEMAIL_FROM, 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 21585C21E31; Wed, 31 Jul 2019 12:06:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1FD4AC21C3F; Wed, 31 Jul 2019 12:05:09 +0000 (UTC) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by lists.denx.de (Postfix) with ESMTPS id 4E50EC21DFB for ; Wed, 31 Jul 2019 12:05:07 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id p13so69363506wru.10 for ; Wed, 31 Jul 2019 05:05:07 -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; bh=2O95NdyD2bpeHJTwyEWFRqa9xKMpLXMFHjiAZIxiQBM=; b=q3q6DaFUnwCbw8vT5sM4tbbmwW666xhzfEVqMYZ8icuTxnKM33IcvKqCPi5+QkJp1I NnK584Ds/iC4rzp8oIj4Y0tAF65nYEqiQJ5Lh6hG1SdvJ2RZjmI4MgMuqB82nG1g63eX 1goD1DueyII6jGDnQMsnaUcEvI4lPoGQI9/jC6lgQz/7fiij4ZWaSFnQt5EXJ45q3lII 0z63oro0BJcH6zEp+kxh4JXDOLD9S4tpE+CI03bZlCEm94uVvd6zea3LynNVbW1kGDac BpEYcja/wxCIVt70TxMr3HIUxcWw98sjRPESG1TzrszU0K4rXR1nWbhTQtC/D5sb8hYJ r4rg== 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=2O95NdyD2bpeHJTwyEWFRqa9xKMpLXMFHjiAZIxiQBM=; b=sk/Mpmw9lMXWUKNf/bYqFCZMnisrXteZLS7L+itDXn2cwwhpNWtbiIYe84y+66peha oV64eacpkmx2ZA9mF33focOCkr1qHSxfjnNUQzpsflJX6xAIF3872mKpA+PkS10Kj++P hTAhJPFP2Ea6ZKgvS/k6vklHs7NcQvTdrlWQq3FLwQBnPtUhWXMN83NjU8+R1pxBbynl pvL7+/mHXu2SsKMRYRwSG8/H+fEQnon9iYk7Mhf5ppKnwpFUutbQaWarF9RN9Lor92/a ZgIenjrJdIIg5pD+p/64kl+/f+lS6uSndPE+IRT6XfLhZ1Xwaeuw3krodhZbg9bjIE0n F38g== X-Gm-Message-State: APjAAAWrnzdc52xZ7A8+vO63hS1PNMh9b4M6O1rPkGWy+zeWhItrBVuj mHxp3UCuqaqygzXh4ee9ZJ+TGzAW X-Google-Smtp-Source: APXvYqydX+d1CfRO+oTo1zRMJCBr17HxaQBtfQdJ3daGVQsoRbtZ08olwXYN1VdmvRxk4PyiQ1vxzQ== X-Received: by 2002:adf:e50c:: with SMTP id j12mr51350709wrm.117.1564574706746; Wed, 31 Jul 2019 05:05:06 -0700 (PDT) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id r4sm40614685wrq.82.2019.07.31.05.05.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2019 05:05:06 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Date: Wed, 31 Jul 2019 15:04:39 +0300 Message-Id: <20190731120445.2459-4-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190731120445.2459-1-igor.opaniuk@gmail.com> References: <20190731120445.2459-1-igor.opaniuk@gmail.com> Cc: Igor Opaniuk , Marcel Ziswiler , Max Krummenacher , Dominik Sliwa Subject: [U-Boot] [PATCH v1 3/9] apalis-tk1: provide proper USB vendor id 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: Igor Opaniuk Use unified values for USB Product/Vendor numbers when the config block is missing Signed-off-by: Max Krummenacher Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov --- configs/apalis-tk1_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/apalis-tk1_defconfig b/configs/apalis-tk1_defconfig index 41f3aff149..ceefe4e86a 100644 --- a/configs/apalis-tk1_defconfig +++ b/configs/apalis-tk1_defconfig @@ -56,7 +56,7 @@ CONFIG_USB_EHCI_TEGRA=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_MANUFACTURER="Toradex" CONFIG_USB_GADGET_VENDOR_NUM=0x1b67 -CONFIG_USB_GADGET_PRODUCT_NUM=0xffff +CONFIG_USB_GADGET_PRODUCT_NUM=0x4000 CONFIG_CI_UDC=y CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_OF_LIBFDT_OVERLAY=y From patchwork Wed Jul 31 12:04:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1139712 X-Patchwork-Delegate: twarren@nvidia.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=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="np2nAxLz"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45zBz46HVTz9s3l for ; Wed, 31 Jul 2019 22:08:32 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 73E7FC21E5B; Wed, 31 Jul 2019 12:06:26 +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=FREEMAIL_FROM, 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 63374C21DA2; Wed, 31 Jul 2019 12:06:00 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 10CBDC21C38; Wed, 31 Jul 2019 12:05:10 +0000 (UTC) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by lists.denx.de (Postfix) with ESMTPS id 76C6BC21E1A for ; Wed, 31 Jul 2019 12:05:08 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id n4so69470104wrs.3 for ; Wed, 31 Jul 2019 05:05:08 -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; bh=xn/ldTAUGNZ2oZ7Sz4higEgJLgvL+U3wA4AnOw/jwdY=; b=np2nAxLzui5jBDVpBWuQPLfso0coD5M8mKUzoPkYdIhemCKptnqp5GCdb9uy4A6ZzN 5Rg7FWCGozhClnS/j7q2D9qhDUToRy+3bRc1HiSl+BX86tlfpOzfkW8Pda3fmTOmu2dK J7tpy8Lh9QGQE1Pgzk5NoZf9ex2vkyBHabQwZkf+PENeHr94pWk4AdPUhRJbgaxY+kwJ +n1BRTJUDIFuAQeChq+i+XXKodODwzu2QbZAHNHDSfLZARLSCgW3sJ4XmCr0j6CU08Hj xB/Ecp5tlaa33T8yIt6fOKmPJ4z2miDW277qu4JYNTQn5EhNNB7+IGlGQepe7QE+FSzS uexA== 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=xn/ldTAUGNZ2oZ7Sz4higEgJLgvL+U3wA4AnOw/jwdY=; b=Y2GgsnNg5tMyC3yvmty2ll3RPUfcxmDZKZlCdIbs9+QUmrmpl/yi1mZX5P/FmbC2nm 4AvWxTIwjRY1KI0Ec5zf5TA/baOC6IOjdqqz0+e5LeJtWjVRt1h5I5sBz+n9ibVPZb1/ qTaOPTj1KDWdaSFbuVwjhKHXXXmC37Qz5JzGwEodT0KentuC0iAEWJ3zbIGWswaxWreW NJbFeQ324BnamUo9D9ntCs9usREKLHtreGN2CTfnSNlmuzZ7xhMr353xjsGlVpJ+d9Xj Q0OyWqrG6jVk1pywWhTYxoFxZEFIXpPjbLeQcx9gPCfKF62HprgSdXtyMDfXSvZkiS2N ogWQ== X-Gm-Message-State: APjAAAWW6VRWaoqRAlujFejPIXfQqFv8ZDr0spJb7OY+eFYJ4isdNfV1 X4n94ZWGRNsDNI/9QrkI0tpmBkqq X-Google-Smtp-Source: APXvYqy7P077VROMc+L1u+RZJKC/4gdO6tomPPmVG+MwxQlj+ZhS5LoaKGSKbD3d50QYb+Yn2b2aGg== X-Received: by 2002:adf:ef49:: with SMTP id c9mr6146604wrp.188.1564574707932; Wed, 31 Jul 2019 05:05:07 -0700 (PDT) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id b8sm88251802wmh.46.2019.07.31.05.05.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2019 05:05:07 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Date: Wed, 31 Jul 2019 15:04:40 +0300 Message-Id: <20190731120445.2459-5-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190731120445.2459-1-igor.opaniuk@gmail.com> References: <20190731120445.2459-1-igor.opaniuk@gmail.com> Cc: Igor Opaniuk , Stefan Agner , Marcel Ziswiler , Dominik Sliwa Subject: [U-Boot] [PATCH v1 4/9] apalis-tk1: enable user debug by default 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: Igor Opaniuk Let the kernel print some debug messages when a user program crashes due to an exception. Signed-off-by: Stefan Agner Signed-off-by: Igor Opaniuk --- include/configs/apalis-tk1.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/apalis-tk1.h b/include/configs/apalis-tk1.h index b4ddd1bdc6..efc52841d1 100644 --- a/include/configs/apalis-tk1.h +++ b/include/configs/apalis-tk1.h @@ -111,7 +111,8 @@ "boot_file=uImage\0" \ "console=ttyS0\0" \ "defargs=lp0_vec=2064@0xf46ff000 core_edp_mv=1150 core_edp_ma=4000 " \ - "usb_port_owner_info=2 lane_owner_info=6 emc_max_dvfs=0\0" \ + "usb_port_owner_info=2 lane_owner_info=6 emc_max_dvfs=0 " \ + "user_debug=30\0" \ "dfu_alt_info=" DFU_ALT_EMMC_INFO "\0" \ EMMC_BOOTCMD \ "fdt_board=eval\0" \ From patchwork Wed Jul 31 12:04:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1139707 X-Patchwork-Delegate: twarren@nvidia.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=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="rrFeOjC8"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45zBx62N32z9s3l for ; Wed, 31 Jul 2019 22:06:50 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id E75ECC21E26; Wed, 31 Jul 2019 12:05: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.0 required=5.0 tests=FREEMAIL_FROM, 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 5001FC21E18; Wed, 31 Jul 2019 12:05:25 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1D3D9C21DD4; Wed, 31 Jul 2019 12:05:11 +0000 (UTC) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by lists.denx.de (Postfix) with ESMTPS id AD504C21DB6 for ; Wed, 31 Jul 2019 12:05:09 +0000 (UTC) Received: by mail-wm1-f51.google.com with SMTP id x15so60566809wmj.3 for ; Wed, 31 Jul 2019 05:05: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; bh=9FpZBOi+6O23c8fVcd0R2kcubDmqzCEqK4JBXESDmx4=; b=rrFeOjC8WcqGc6vqyEFv2+uuIMCj1WIgAdblAZ5ihylOh5NxamhbTnZmG3PpeyxHZV gwtaDpoaZcdM3r7tvmUhuizNtGaCJuR80K2xZA/wbHTiC7uQk4wKAjnjSNWsBEM948us BQa+4tXSH4xl/NqKPTE8mSspRtdxftJ4DN0E5chA2r5WMQkH1hXib9ndWJudRi6FFDLI KQcZIOwJzIpmGDO1GErGJV+Y8Jv2zbNoARmS7QutMOLse6TP8+bpwYLd6NIRpa3LHhoO lm7wlUms4kVI7/U5LM/xB04UKpXXAGlVFHJotvhErERo10XNNJ3Gns2CNOzE6o5N3pvu 0o4w== 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=9FpZBOi+6O23c8fVcd0R2kcubDmqzCEqK4JBXESDmx4=; b=GZRj3kZo2XVOsUhAKCTzUPW3C8GTOXw7YMOUkTnt5Mvj8YTg7yDNOQWclP901FM6hL U07F50LMwU+Bd+RGU2A5Bf7gMBmj1yJWeTaNyk16aufW084I8zwMjtEji2NktTZZFvwd /LLDr9H1TYWOPDXp9Vc0BuYbs7NIrpnVd8X6E8jEVYWwLuyRZHsRdNtFcbtxZRBQoeqG gBGIKI4vzW8kVonisfhdG2y4hABksEMy158VviY8uYUAJkAFfRVBxrknyV8QaxgGU9kf KrQ3gySjEc48Cl+5trRj2Q8kuZrSzuz9NNRAV1TYi31+aNgkb3YYdRwtrZ8dB9KoXjbJ sf9g== X-Gm-Message-State: APjAAAVqqyuUSA84Z0XxNuNmYLBxDe+8VAyGHTY2qfeVsv9wXlN/nji0 LvY1k1U2skXmM13bJ9GkTfEupw+a X-Google-Smtp-Source: APXvYqyVtwxIRdBxOaY5iirURuet9B93pe8XD6+qC74oUbHMXiQAfc1bQMFiGm0h/LNm6IdTDK6ugQ== X-Received: by 2002:a1c:9a53:: with SMTP id c80mr50041634wme.173.1564574709131; Wed, 31 Jul 2019 05:05:09 -0700 (PDT) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id y6sm83006836wmd.16.2019.07.31.05.05.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2019 05:05:08 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Date: Wed, 31 Jul 2019 15:04:41 +0300 Message-Id: <20190731120445.2459-6-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190731120445.2459-1-igor.opaniuk@gmail.com> References: <20190731120445.2459-1-igor.opaniuk@gmail.com> Cc: Marcel Ziswiler , Igor Opaniuk , Dominik Sliwa Subject: [U-Boot] [PATCH v1 5/9] apalis-tk1: add pcie_aspm=off to defargs 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: Igor Opaniuk Disabling ASPM fixes incompatibilities with some PCIe cards Signed-off-by: Dominik Sliwa Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov --- include/configs/apalis-tk1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/apalis-tk1.h b/include/configs/apalis-tk1.h index efc52841d1..0bde1697bb 100644 --- a/include/configs/apalis-tk1.h +++ b/include/configs/apalis-tk1.h @@ -112,7 +112,7 @@ "console=ttyS0\0" \ "defargs=lp0_vec=2064@0xf46ff000 core_edp_mv=1150 core_edp_ma=4000 " \ "usb_port_owner_info=2 lane_owner_info=6 emc_max_dvfs=0 " \ - "user_debug=30\0" \ + "user_debug=30 pcie_aspm=off\0" \ "dfu_alt_info=" DFU_ALT_EMMC_INFO "\0" \ EMMC_BOOTCMD \ "fdt_board=eval\0" \ From patchwork Wed Jul 31 12:04:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1139710 X-Patchwork-Delegate: twarren@nvidia.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=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="GqyzXjdz"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45zBy65xj5z9s3l for ; Wed, 31 Jul 2019 22:07:42 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 812FEC21E36; Wed, 31 Jul 2019 12:06: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.0 required=5.0 tests=FREEMAIL_FROM, 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 A7913C21E26; Wed, 31 Jul 2019 12:05:51 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 043DCC21DEC; Wed, 31 Jul 2019 12:05:13 +0000 (UTC) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by lists.denx.de (Postfix) with ESMTPS id 21756C21DA6 for ; Wed, 31 Jul 2019 12:05:11 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id f9so69368984wre.12 for ; Wed, 31 Jul 2019 05:05:11 -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; bh=iMpo8rKKGqVcFWIwQgt5L/rCJYUL/W6q2sn177MhOnA=; b=GqyzXjdzXbFZ9VCpdUmryKpXHN6G7BArA7Coqtt2g/jQFQg9pdA8EI4pvi+IwtKyeQ epPkJKYYHVQEw+xX5FLZ6D029Zg1QnTr2QYg0y9+mLAIZop58aBdgR5ARxKPe3pboRrg HVaHG8gLtU/MrNSGFQTZvw+FQqzt13DUL3jfm2KG2wINMUtbjjq+gOQZ4afQQtOVW7Hg sAJxywibJWoSh/7urGiBIXqAUcE3RRpOLuhy6ZUtiETjzcDGYkaLjFr4xVhD0Ycb8foe 0nFJeRo5y1nUzRLNrg/Q4LgAgQOiAPbd12B16XyJJd7Zc89kQDfn/z4mbQqJvpw/ITBN pdUA== 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=iMpo8rKKGqVcFWIwQgt5L/rCJYUL/W6q2sn177MhOnA=; b=kF9UwoOChUz8yh0ZEoHK5GnUdTVv1gV/IU7QgXVFW6/2k49cgIgdJGLuIPeLPHYY1O BfMOFHZf7LnaoZ2waQuEtZURXooyFmEJKfNwLgIUrfFMD+G979sjQAGePeB3fNYFXMuL K8gEV9HLHj0KhLmxWBOfQ0kPXKy+AuiCJrFEw0Q/QnFql710SGh3fO3MHFb+tlFSSOlt MC2m/fJnitw4cWGR5XfgGUW8OA39KC96VJ02M41PIEDZvVQgUs4cjJ2iIuHj+JgJCkwy aPMeHpQZXaEMel+zP5dl+edpVsmLUBtuOftg0OTAzpBGTL5UAoq/KlOc1e1uoW8LOJLh f2nw== X-Gm-Message-State: APjAAAXb2EwzHUcUoHkjDUFbe7yBj20EHhL9lVLt+lMrSgg1n4EQj7Rw ZGrqTosM5lVHamToewEOdBD5tJzB X-Google-Smtp-Source: APXvYqweDXPYn1thT+p/a4kgEEG4HJrKTbtLeBGjg5Evlmj6LjknuMgAB4ii9UXgvZFin4VsWb31aA== X-Received: by 2002:adf:dc51:: with SMTP id m17mr3963117wrj.256.1564574710565; Wed, 31 Jul 2019 05:05:10 -0700 (PDT) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id f3sm50566324wrt.56.2019.07.31.05.05.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2019 05:05:10 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Date: Wed, 31 Jul 2019 15:04:42 +0300 Message-Id: <20190731120445.2459-7-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190731120445.2459-1-igor.opaniuk@gmail.com> References: <20190731120445.2459-1-igor.opaniuk@gmail.com> Cc: Igor Opaniuk , Bhuvanchandra DV , Marcel Ziswiler , Dominik Sliwa Subject: [U-Boot] [PATCH v1 6/9] apalis-tk1: switch to zImage 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: Igor Opaniuk Switch to the generic compressed Kernel image type (zImage) instead of the U-Boot specific uImage format. Signed-off-by: Bhuvanchandra DV Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov --- include/configs/apalis-tk1.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/configs/apalis-tk1.h b/include/configs/apalis-tk1.h index 0bde1697bb..10f2948c62 100644 --- a/include/configs/apalis-tk1.h +++ b/include/configs/apalis-tk1.h @@ -42,7 +42,7 @@ #define DFU_ALT_EMMC_INFO "apalis-tk1.img raw 0x0 0x500 mmcpart 1; " \ "boot part 0 1 mmcpart 0; " \ "rootfs part 0 2 mmcpart 0; " \ - "uImage fat 0 1 mmcpart 0; " \ + "zImage fat 0 1 mmcpart 0; " \ "tegra124-apalis-eval.dtb fat 0 1 mmcpart 0" #define EMMC_BOOTCMD \ @@ -54,7 +54,7 @@ "run emmcdtbload; " \ "load mmc ${emmcdev}:${emmcbootpart} ${kernel_addr_r} " \ "${boot_file} && run fdt_fixup && " \ - "bootm ${kernel_addr_r} - ${dtbparam}\0" \ + "bootz ${kernel_addr_r} - ${dtbparam}\0" \ "emmcbootpart=1\0" \ "emmcdev=0\0" \ "emmcdtbload=setenv dtbparam; load mmc ${emmcdev}:${emmcbootpart} " \ @@ -68,7 +68,7 @@ "nfsboot=pci enum; run setup; setenv bootargs ${defargs} ${nfsargs} " \ "${setupargs} ${vidargs}; echo Booting via DHCP/TFTP/NFS...; " \ "run nfsdtbload; dhcp ${kernel_addr_r} " \ - "&& run fdt_fixup && bootm ${kernel_addr_r} - ${dtbparam}\0" \ + "&& run fdt_fixup && bootz ${kernel_addr_r} - ${dtbparam}\0" \ "nfsdtbload=setenv dtbparam; tftp ${fdt_addr_r} " \ "${soc}-apalis-${fdt_board}.dtb " \ "&& setenv dtbparam ${fdt_addr_r}\0" @@ -81,7 +81,7 @@ "${vidargs}; echo Booting from SD card in 8bit slot...; " \ "run sddtbload; load mmc ${sddev}:${sdbootpart} " \ "${kernel_addr_r} ${boot_file} && run fdt_fixup && " \ - "bootm ${kernel_addr_r} - ${dtbparam}\0" \ + "bootz ${kernel_addr_r} - ${dtbparam}\0" \ "sdbootpart=1\0" \ "sddev=1\0" \ "sddtbload=setenv dtbparam; load mmc ${sddev}:${sdbootpart} " \ @@ -98,7 +98,7 @@ "${usbargs} ${vidargs}; echo Booting from USB stick...; " \ "run usbdtbload; load usb ${usbdev}:${usbbootpart} " \ "${kernel_addr_r} ${boot_file} && run fdt_fixup && " \ - "bootm ${kernel_addr_r} - ${dtbparam}\0" \ + "bootz ${kernel_addr_r} - ${dtbparam}\0" \ "usbbootpart=1\0" \ "usbdev=0\0" \ "usbdtbload=setenv dtbparam; load usb ${usbdev}:${usbbootpart} " \ @@ -108,7 +108,7 @@ "usbrootpart=2\0" #define BOARD_EXTRA_ENV_SETTINGS \ - "boot_file=uImage\0" \ + "boot_file=zImage\0" \ "console=ttyS0\0" \ "defargs=lp0_vec=2064@0xf46ff000 core_edp_mv=1150 core_edp_ma=4000 " \ "usb_port_owner_info=2 lane_owner_info=6 emc_max_dvfs=0 " \ From patchwork Wed Jul 31 12:04:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1139714 X-Patchwork-Delegate: twarren@nvidia.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=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="qc9IGebl"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45zC021gKgz9sN6 for ; Wed, 31 Jul 2019 22:09:22 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id EAB27C21E70; Wed, 31 Jul 2019 12:05:45 +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=FREEMAIL_FROM, 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 E7022C21E15; Wed, 31 Jul 2019 12:05:31 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1EA78C21C38; Wed, 31 Jul 2019 12:05:14 +0000 (UTC) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by lists.denx.de (Postfix) with ESMTPS id 81814C21E1A for ; Wed, 31 Jul 2019 12:05:12 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id 31so69424581wrm.1 for ; Wed, 31 Jul 2019 05:05: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; bh=oO8lJLiBxVGGCUZljkSlSqxyJUqXCnMsB4MqWl5Upgc=; b=qc9IGeblmJUqWqgM+HMzJ7DijW7GXm7ubyogvr/Vf8tg9I+9B6OAzA1+Iuw1WpfnGL sHyKxwwmBZR/v0cbx6s9i1rJIi50kXTgMU0Eo3fx6NbNqgz1nH4SdyAwXXya/s7GLt4y cRBRLdp6fBy1GqYYvFECvd/DkFt4TGJ31Q8tHbpQRAOuZJw1+oq0v4R847EJ/xU4xefq sYQF784pt9aqNCyDibHnppcUJNj9F8+TsFvOZqqXqyY6YMQcEYh9xYVx9K+zFquM7Z+o h9yQ87ftDH+syZDT9yWI+y6URvWv2Kbd8T+sop1S7D1phcnCHQshp3yTRgzEMXyxKDA5 yTtQ== 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=oO8lJLiBxVGGCUZljkSlSqxyJUqXCnMsB4MqWl5Upgc=; b=DFQPMFzKRUqV6NapuzS6H293mMc5d1Tk2Ju5Z+vE0hxB8NipaQF9OtPy7kMFbfsxOn euc48NEwKREHY81V7TFpeGBIngsFyVbvilK3mTrdQOAzKiRy3jkUxcKuVg7fMpasHmaf VcpQ/gPRV3tDj+8uy85w3V6Nw1y8E+EVEYqvVDJwr7kB3TJZAuP/5rI17amIYfjCfqX6 S8vxD/JuFTf4V5zGmeRdiJoslDwaR2qnpf/5NxYlDc5qYOnTPfnEX/yLR8ig7h5K1ByI 74XupaZdL30oaj4PE3if3WQDGArc+f/bl/+QTCZWt0m4r8ILsXEZC6mgaDxMK+g0KzZ9 nG/Q== X-Gm-Message-State: APjAAAW2yx+lQsnFmK3Ge/8+5VnKCJfuxmcHE66StcuJNSenxlDKoU4L IJWc2Wz8lH4m7z1ypqN7KC8PKVIi X-Google-Smtp-Source: APXvYqySN6f4vz4mBPC0G0amfE1wg6QcKV3YrDf51sjpgZlG9FrbGlqnodqtpmFtcz5SxusaveFxCw== X-Received: by 2002:adf:f2c4:: with SMTP id d4mr125023069wrp.3.1564574711821; Wed, 31 Jul 2019 05:05:11 -0700 (PDT) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id g19sm128228580wrb.52.2019.07.31.05.05.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2019 05:05:11 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Date: Wed, 31 Jul 2019 15:04:43 +0300 Message-Id: <20190731120445.2459-8-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190731120445.2459-1-igor.opaniuk@gmail.com> References: <20190731120445.2459-1-igor.opaniuk@gmail.com> Cc: Igor Opaniuk , Marcel Ziswiler , Tom Warren , Dominik Sliwa Subject: [U-Boot] [PATCH v1 7/9] apalis-tk1/t30: colibri_t30: display reset reason 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: Dominik Sliwa Display proper reset reason after the SoC info. Signed-off-by: Dominik Sliwa Signed-off-by: Igor Opaniuk --- arch/arm/mach-tegra/sys_info.c | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-tegra/sys_info.c b/arch/arm/mach-tegra/sys_info.c index 9975f33e0b..5dc998a52b 100644 --- a/arch/arm/mach-tegra/sys_info.c +++ b/arch/arm/mach-tegra/sys_info.c @@ -6,24 +6,36 @@ #include #include +#if defined(CONFIG_TEGRA124) || defined(CONFIG_TEGRA30) +#include -static void upstring(char *s) +static char *get_reset_cause(void) { - while (*s) { - *s = toupper(*s); - s++; + struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; + + switch (pmc->pmc_reset_status) { + case 0x00: + return "POR"; + case 0x01: + return "WATCHDOG"; + case 0x02: + return "SENSOR"; + case 0x03: + return "SW_MAIN"; + case 0x04: + return "LP0"; } + return "UNKNOWN"; } +#endif /* Print CPU information */ int print_cpuinfo(void) { - char soc_name[10]; - - strncpy(soc_name, CONFIG_SYS_SOC, 10); - upstring(soc_name); - puts(soc_name); - puts("\n"); + printf("SoC: %s\n", CONFIG_SYS_SOC); +#if defined(CONFIG_TEGRA124) || defined(CONFIG_TEGRA30) + printf("Reset cause: %s\n", get_reset_cause()); +#endif /* TBD: Add printf of major/minor rev info, stepping, etc. */ return 0; From patchwork Wed Jul 31 12:04:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1139708 X-Patchwork-Delegate: twarren@nvidia.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=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="Vw2ZfNrI"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45zBxh5hQ6z9sN6 for ; Wed, 31 Jul 2019 22:07:19 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id AD292C21C38; Wed, 31 Jul 2019 12:05:55 +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=FREEMAIL_FROM, 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 74411C21E02; Wed, 31 Jul 2019 12:05:40 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 23885C21DF9; Wed, 31 Jul 2019 12:05:15 +0000 (UTC) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by lists.denx.de (Postfix) with ESMTPS id 81BA7C21DB6 for ; Wed, 31 Jul 2019 12:05:13 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id n4so69470444wrs.3 for ; Wed, 31 Jul 2019 05:05:13 -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; bh=Fm5MuYC85JVAda1C4Ix0dFOMNetREBU1goujdY0n79o=; b=Vw2ZfNrImmcLLHxn3RiFprfdysdI8L/EeoSJRwTbfMoEL5yGsqxgGkd1ux0wg3yJf4 lCGst+Z4s3WlsopOEFcSDBxqi/PJI7X8DJ4/LGdSQ2bMh3Fj8+vo/gqsinrZKKU+ZAEb 0OxJDw8deNWeueNV5HS1Xu2wuD49JNevTAApmgis5ORkbfi1OO1rngklD6pfuS4GVbJk QYgcZqR/D0wpr/YpWPFR0uvoNjm8XFCHkgHJ5jdQciCbMl8DNpMwkfdg0HHm3Zgbm43g fy/7Ei4Sdecrut8d2NitTKnXe/FfXGx4nvBuCmfjpJ0gaq46ZJaCQiXp3pZfvNk0Dhu0 Bo+Q== 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=Fm5MuYC85JVAda1C4Ix0dFOMNetREBU1goujdY0n79o=; b=PeP6Go5/p7pRINlFlFW/4oGBauPX690JuWflCYg2XNQkWxJcGxOdgUeeu1T4hEZaNi c1MC6A1wYYMxJT4Uwh7ZtNKlEerumSR995kb9sp6dBzbc0PDvlihya7aJyBYwieG1I5w zGEOa4Qi0cmdD1+xK9JavnOVBk3rdO/sDdaf06kFDnPR2xjZMoCdtxeV2BMczK3qRvwC xUY9yj/Ue7DPluIgYnQonXBKEVuyKva/C0AzVBppXTdxTjYA91yV4xXXwLN/Mw1xDDtk Y2KI5I7aXtOAQ8x6jDH8yO/NTqOR2GcexHNLx1g8fc6FGSv3s8s1tZx8om/5t66Xv6SU xWWw== X-Gm-Message-State: APjAAAWC/fBE4RqAvG1sTmeQ33KZWU4mfhHbUDkun00WL/LnpjlYwVjb +1Ru9/6QZePnCLu0gzy09zgeUa20 X-Google-Smtp-Source: APXvYqycH/pkdE9RfIvtsIFpLOMaYx4JDFzSytzq0s4x8BSABR3WtRklfisqw5LCMfQSofzb5TadNQ== X-Received: by 2002:adf:f60a:: with SMTP id t10mr98172045wrp.258.1564574712973; Wed, 31 Jul 2019 05:05:12 -0700 (PDT) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id z5sm48464688wmf.48.2019.07.31.05.05.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2019 05:05:12 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Date: Wed, 31 Jul 2019 15:04:44 +0300 Message-Id: <20190731120445.2459-9-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190731120445.2459-1-igor.opaniuk@gmail.com> References: <20190731120445.2459-1-igor.opaniuk@gmail.com> Cc: Marcel Ziswiler , Igor Opaniuk , Dominik Sliwa Subject: [U-Boot] [PATCH v1 8/9] apalis-tk1: remove default vesa vga mode from vidargs 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: Marcel Ziswiler Remove video=tegrafb0:640x480-16@60 aka VESA VGA mode from vidargs in order for the panel specification in the device tree to be used. This causes the default to be the 10.1" LVDS display which will be available in the Toradex webshop shortly. Signed-off-by: Marcel Ziswiler Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov --- include/configs/apalis-tk1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/apalis-tk1.h b/include/configs/apalis-tk1.h index 10f2948c62..843e64e3cc 100644 --- a/include/configs/apalis-tk1.h +++ b/include/configs/apalis-tk1.h @@ -137,7 +137,7 @@ "load ${interface} ${drive}:1 ${loadaddr} flash_blk.img && " \ "source ${loadaddr}\0" \ USB_BOOTCMD \ - "vidargs=video=tegrafb0:640x480-16@60 fbcon=map:1\0" + "vidargs=fbcon=map:1\0" /* Increase console I/O buffer size */ #undef CONFIG_SYS_CBSIZE From patchwork Wed Jul 31 12:04:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1139711 X-Patchwork-Delegate: twarren@nvidia.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=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="t/Y8fyTI"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45zByt5cg1z9s3l for ; Wed, 31 Jul 2019 22:08:22 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 846F8C21E29; Wed, 31 Jul 2019 12:06:04 +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=2.3 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2,TVD_SUBJ_WIPE_DEBT,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 169B5C21E34; Wed, 31 Jul 2019 12:05:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A1986C21DAF; Wed, 31 Jul 2019 12:05:17 +0000 (UTC) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by lists.denx.de (Postfix) with ESMTPS id CAF15C21E0F for ; Wed, 31 Jul 2019 12:05:14 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id v15so60569151wml.0 for ; Wed, 31 Jul 2019 05:05:14 -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; bh=n28qNkDwHfLwMGHH6tbJ7KLY6aWnAgA7HShciApdhTQ=; b=t/Y8fyTIOr47PRNzwjU9412QHfjwZHkoNnA+SB7Af1B8965VZz7VtO33wRajP2LFtM D7eQNM7MGc56mTYV+C8BGyimOnFj3u39WBggsLzts0hfVbu578QT8j/6Vt41EtY5sZEq Rp4G/O7XgtbHVi+nMp4aHqzHaBsWRqM3GtJVrfiKo6kqX3Hy5Q1Pf7VxMMfbhBUwGMGI DGAGIa07wLoQlcSatgYKN/lcPyQDX5HPA7IQJTzXiPSsHe2xVa614/gTArNPUckHOwmR UxiwwPJvYz4u0TyRaxinte94aJfci3wjYG0NIWNhFKhdXX6pKbVWSEpM3bFH9Rhfv0/+ IFlg== 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=n28qNkDwHfLwMGHH6tbJ7KLY6aWnAgA7HShciApdhTQ=; b=FgQi1goOPrWT5aHEAjkxr65GiRcg+6sYgY3QHWTSeybVIM/QOVM9ntKLiNOpiPiHVm lePIxbI03zf3x0gAoGsiLoUBi/Cbb0Qj1eu4wCInrCPYlffLJDw0dYR7Kp+EkotxHSHK VGJ/17+hlmr1Emxj5uuSuXj+mR/YXhAwM8lZEIG/B5m74HlGsMpX/zRcQoN1t30ElFly O6Q1DmOlTR1gwROC6Lo5gqA30+KwKD+PLd0rmDEF8DnXczWkMeWsaZ9HKINNqUcpDG5H y6f3ERPt+UJZ+hdL4BlDGw9uwmaJaSfU60A15VmwEFcHuyriJ5DVcAzpmiA43dgk5Arc SoqQ== X-Gm-Message-State: APjAAAVaKLmlMTx5WMA0Q+Nlu5QbB0uduDYBxF/HUsS+Ooe01j5QpVKD Zrnp/n4Ad5RSEmV4hmmYctXmLKVY X-Google-Smtp-Source: APXvYqyI2lPvst3LEuNJFAoL39Tiw1YIxb9vWo5MKZmu02HSofmYY426GSgXya7x38zkSq2Ew/FpQA== X-Received: by 2002:a1c:e183:: with SMTP id y125mr57763378wmg.140.1564574714185; Wed, 31 Jul 2019 05:05:14 -0700 (PDT) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id c3sm74537721wrx.19.2019.07.31.05.05.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2019 05:05:13 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Date: Wed, 31 Jul 2019 15:04:45 +0300 Message-Id: <20190731120445.2459-10-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190731120445.2459-1-igor.opaniuk@gmail.com> References: <20190731120445.2459-1-igor.opaniuk@gmail.com> Cc: Igor Opaniuk , Marcel Ziswiler , Tom Warren , Dominik Sliwa Subject: [U-Boot] [PATCH v1 9/9] apalis-tk1: remove non-esential power rails on boot 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: Dominik Sliwa When mainline kernels reboot TK1 they use SW_RESET, that reset mode does not reset PMIC. Some rails need to be off for RAM Re-repair to work correctly. Signed-off-by: Dominik Sliwa Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov --- arch/arm/mach-tegra/tegra124/cpu.c | 45 ++++++++++++++++++++++++++ board/toradex/apalis-tk1/as3722_init.c | 23 +++++++++++++ 2 files changed, 68 insertions(+) diff --git a/arch/arm/mach-tegra/tegra124/cpu.c b/arch/arm/mach-tegra/tegra124/cpu.c index 992c0beb04..abc050c27b 100644 --- a/arch/arm/mach-tegra/tegra124/cpu.c +++ b/arch/arm/mach-tegra/tegra124/cpu.c @@ -238,6 +238,45 @@ static bool is_partition_powered(u32 partid) return !!(reg & (1 << partid)); } +static void unpower_partition(u32 partid) +{ + struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; + + debug("%s: part ID = %08X\n", __func__, partid); + /* Is the partition on? */ + if (is_partition_powered(partid)) { + /* Yes, toggle the partition power state (ON -> OFF) */ + debug("power_partition, toggling state\n"); + writel(START_CP | partid, &pmc->pmc_pwrgate_toggle); + + /* Wait for the power to come down */ + while (is_partition_powered(partid)) + ; + + /* Give I/O signals time to stabilize */ + udelay(IO_STABILIZATION_DELAY); + } +} + +void unpower_cpus(void) +{ + debug("%s entry: G cluster\n", __func__); + + /* Power down the fast cluster rail partition */ + debug("%s: CRAIL\n", __func__); + unpower_partition(CRAIL); + + /* Power down the fast cluster non-CPU partition */ + debug("%s: C0NC\n", __func__); + unpower_partition(C0NC); + + /* Power down the fast cluster CPU0 partition */ + debug("%s: CE0\n", __func__); + unpower_partition(CE0); + + debug("%s: done\n", __func__); +} + static void power_partition(u32 partid) { struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; @@ -284,6 +323,12 @@ void start_cpu(u32 reset_vector) debug("%s entry, reset_vector = %x\n", __func__, reset_vector); + /* + * High power clusters are on after software reset, + * it may interfere with tegra124_ram_repair. + * unpower them. + */ + unpower_cpus(); tegra124_init_clocks(); /* Set power-gating timer multiplier */ diff --git a/board/toradex/apalis-tk1/as3722_init.c b/board/toradex/apalis-tk1/as3722_init.c index bd754e5fcf..15f8dce2f1 100644 --- a/board/toradex/apalis-tk1/as3722_init.c +++ b/board/toradex/apalis-tk1/as3722_init.c @@ -43,6 +43,29 @@ void pmic_enable_cpu_vdd(void) udelay(10 * 1000); #endif + /* + * Make sure all non-fused regulators are down. + * That way we're in known state after software reboot from linux + */ + tegra_i2c_ll_write_addr(AS3722_I2C_ADDR, 2); + tegra_i2c_ll_write_data(0x0003, I2C_SEND_2_BYTES); + udelay(10 * 1000); + tegra_i2c_ll_write_addr(AS3722_I2C_ADDR, 2); + tegra_i2c_ll_write_data(0x0004, I2C_SEND_2_BYTES); + udelay(10 * 1000); + tegra_i2c_ll_write_addr(AS3722_I2C_ADDR, 2); + tegra_i2c_ll_write_data(0x001b, I2C_SEND_2_BYTES); + udelay(10 * 1000); + tegra_i2c_ll_write_addr(AS3722_I2C_ADDR, 2); + tegra_i2c_ll_write_data(0x0014, I2C_SEND_2_BYTES); + udelay(10 * 1000); + tegra_i2c_ll_write_addr(AS3722_I2C_ADDR, 2); + tegra_i2c_ll_write_data(0x001a, I2C_SEND_2_BYTES); + udelay(10 * 1000); + tegra_i2c_ll_write_addr(AS3722_I2C_ADDR, 2); + tegra_i2c_ll_write_data(0x0019, I2C_SEND_2_BYTES); + udelay(10 * 1000); + debug("%s: Setting VDD_CPU to 1.0V via AS3722 reg 0/4D\n", __func__); /* * Bring up VDD_CPU via the AS3722 PMIC on the PWR I2C bus.