Message ID | 20210723063950.11326-2-oleksandr.suvorov@toradex.com |
---|---|
State | Accepted |
Commit | 46307ef01e083e3bbbad62f6b75107201e0c6184 |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=toradex.com header.i=@toradex.com header.a=rsa-sha256 header.s=selector2 header.b=KKgYaWqS; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GWKT545Pgz9sRR for <incoming@patchwork.ozlabs.org>; Fri, 23 Jul 2021 16:40:41 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 45B4F82C90; Fri, 23 Jul 2021 08:40:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=toradex.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=toradex.com header.i=@toradex.com header.b="KKgYaWqS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 75A5282C87; Fri, 23 Jul 2021 08:40:19 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on0706.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0d::706]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D1E1982C71 for <u-boot@lists.denx.de>; Fri, 23 Jul 2021 08:40:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=toradex.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=oleksandr.suvorov@toradex.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cWwh2/NFLQHwXjU4aSIQyXmCGfQTmT04/l0WK2jJK0P/P0iIGbWm4aTLER3nYEXnSy+0P1p52lv6OkqROb54kgJnVDb0oBiCSQ4dQg0DnKorur6Yzc13Wog1U5QxVBhu+RFyKpcvDF4LExhzHrQsKl0LbkptFCmkMllCv2kbCC5USVjRnKcYjw2lhzo5uE94jCQn4ANmR7kWm5ro9zlDhvp8NTLs6y5AzAuHACeBHNBUH7BEr5hyWbqsyr6tP224hmxYEM8h0hmvy1nYBBvyRF+4HZ91rsPivnhZzDj7T0g8A/LjgbrfJ9+SIxDqkv2NsYP9q3NYK6MZEx6NBw0Ifg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aOLnK0DXnyOHd58+Z2LOrJdpsdXkpgJtm/IPpC5VcSk=; b=gqPbEwbWFFLurYvU9c0FJXm5mNHwmalRzyiDsrS3Cl9IYvoUl4YTfLd/SMsxgEj6zltqx314s/kJU4SJ1dE3Tw19kqlHIJRGf4hOvajJfMkNmTH8c5SXrjvN8tZZamB4Xwnig7+qJiYbU23FYz3HHlMn4pz+RIvi3sN2d51nJkuRvwR6zMEemiTq6Qof/jix98Hd6qGPRji7Wone/zD8RdiechMRr0Xhgz6r5JwkQZ2ToGR/tuTTB0pQcs5qecAOl2GAb9avGfblv2wKg/HTxBq+192GwplflSfoqymRDzGvVgngNBeXDl4j2TrdCNMeeoH0TBw9UuKdzBhgteABMA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aOLnK0DXnyOHd58+Z2LOrJdpsdXkpgJtm/IPpC5VcSk=; b=KKgYaWqSNVhUh3JxpTpgap8s3vFaPCII8ERwEwlFwcK9ktVCg/9HkXvJ7Wga/fLiuZhMIOtLPVeF5cIKBB4g4tgfgpm9jdzCnDTMursZWwoBbajED4q1nxn7sBszIKujPE0cO5gml1nyDV6ZsZSOCtIxRfaQsDy2jmkG82jWats= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=toradex.com; Received: from PAXPR05MB8285.eurprd05.prod.outlook.com (2603:10a6:102:dd::24) by PAXPR05MB7951.eurprd05.prod.outlook.com (2603:10a6:102:157::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.31; Fri, 23 Jul 2021 06:40:10 +0000 Received: from PAXPR05MB8285.eurprd05.prod.outlook.com ([fe80::68c9:eb5c:2e08:f814]) by PAXPR05MB8285.eurprd05.prod.outlook.com ([fe80::68c9:eb5c:2e08:f814%6]) with mapi id 15.20.4352.028; Fri, 23 Jul 2021 06:40:10 +0000 From: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> To: u-boot@lists.denx.de Cc: Stefan Agner <stefan.agner@toradex.com>, Oleksandr Suvorov <oleksandr.suvorov@toradex.com>, Harald Seiler <hws@denx.de>, Igor Opaniuk <igor.opaniuk@gmail.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH v2 1/6] board: colibri_imx7: use SDP if USB serial downloader has been used Date: Fri, 23 Jul 2021 09:39:45 +0300 Message-Id: <20210723063950.11326-2-oleksandr.suvorov@toradex.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210723063950.11326-1-oleksandr.suvorov@toradex.com> References: <20210723063950.11326-1-oleksandr.suvorov@toradex.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: GV0P278CA0004.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:26::14) To PAXPR05MB8285.eurprd05.prod.outlook.com (2603:10a6:102:dd::24) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from cryobook.toradex.int (82.193.109.226) by GV0P278CA0004.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:26::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.25 via Frontend Transport; Fri, 23 Jul 2021 06:40:10 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eb917a51-85ed-4cc3-91b4-08d94da4b7db X-MS-TrafficTypeDiagnostic: PAXPR05MB7951: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <PAXPR05MB79515BA4FA5D8E076F4DEBE8F9E59@PAXPR05MB7951.eurprd05.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:3173; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Sb3ACoHhaCbaOWydX/IPQPXGb8aVdmHcxxwUlt76fBr1x2BaibBG5FY8BASiGqvx6qEvMvfkt0QtbU/0DJso7fXFaPWf4a1S0ylk23JttBuP0PNTxOZfRtDl5wZwCc6d2lAvCvPj99OutOCdoM28EdZ4NgTBWcChGlFf6C4ZszG65eZVuau7IiCHLWwSl1JXDK+9en5+/mkhMlKeAkYt5JLaXrZi4gNlCx2CrhSQPiA7nL03ZOtmM71p6jmWQ4q0vUqJ4ElkQG6MdGjL35ezDSv2lLm2y2+7FeHzfWL0+x4zJXPRpsdqGILWstf+4iwCqBlckQE00PiwATF2ze7ujoyvi5gGReJ5ejDSNQawSQkFdxWjUjIsztD/Ubbj/+HgCFQu3E97G+40PEMTjjs8L9rulH4ovKozHFy3J8M83RRJzWXLU0qps1EyyBJmiFtPkky6w/qYb6Je+tSumbIPd8a54gKYRC4F3pgvzwOcO+Zjty3B1yHLJBhQWAduw8cV+0TeaoZB0nJ9WYthJlXoESiIsNQVvaLhinxE1kKDG/1ElUxqeTAlvpZ/WaKsfWjo6c4Ef0r22jyhfdvW5MAIJYQIIfm1Pmtw8wirxqOQCa1UlGJHrPz/02ZYlqGKh0fhUzghwFg3R4tiMoae4fgqz4jM4lhqNqJlrxUBfBA8X5YzXsFS65QXGZ5uig0ThR4X4oR4ltx3x9VNRGxz7O+LjQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR05MB8285.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(39840400004)(396003)(136003)(366004)(376002)(36756003)(2906002)(6506007)(8676002)(83380400001)(44832011)(66946007)(55236004)(316002)(66556008)(6916009)(6512007)(86362001)(2616005)(5660300002)(54906003)(6486002)(478600001)(26005)(1076003)(956004)(66476007)(186003)(8936002)(38350700002)(6666004)(38100700002)(4326008)(52116002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: iI7C2zKIJ0nRnBGIIuqGph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fH1oCIzQQ/ljWCGIkS7vLtsaO3QqK+jXu2FO4wIUt46wQ4EViz1pfKEjftxz/Sb6Fd+6Ttzka6I1ECrmoHXUsdGPiSOGtBIY8+1PQH3LMCppSPOjZW4JJyW9RRgscvPEmTCX2RDEtaFq1f6q5ovMc67w2SJ2IavLIjnP6bL/atUlYuNDXOQf49mllHLrbYhKMYvPq9gVDDqf91Dm1GY731vJ/PIJdxkF3dqntzi02inSrYdPmBOC/dgIFN7EGnG1kRDSHCgfVcx X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: eb917a51-85ed-4cc3-91b4-08d94da4b7db X-MS-Exchange-CrossTenant-AuthSource: PAXPR05MB8285.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jul 2021 06:40:10.5864 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 7O8KKMSwLCv6I/b+cdHcjl1AS8R9YIcpNXSVnTio0iKhiN5oulPsoClHk61gZ8VkJA5JA/x+vVcuy11Ee6UismKf/KTgZxZdoj+HXugw25E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR05MB7951 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
Toradex boards' specific patches
|
expand
|
diff --git a/board/toradex/colibri_imx7/colibri_imx7.c b/board/toradex/colibri_imx7/colibri_imx7.c index 301b07d5b4..6822102d2c 100644 --- a/board/toradex/colibri_imx7/colibri_imx7.c +++ b/board/toradex/colibri_imx7/colibri_imx7.c @@ -355,12 +355,22 @@ int board_usb_phy_mode(int port) } } +#if defined(CONFIG_BOARD_LATE_INIT) int board_late_init(void) { #if defined(CONFIG_DM_VIDEO) setup_lcd(); #endif + +#if defined(CONFIG_CMD_USB_SDP) + if (is_boot_from_usb()) { + printf("Serial Downloader recovery mode, using sdp command\n"); + env_set("bootdelay", "0"); + env_set("bootcmd", "sdp 0"); + } +#endif return 0; } +#endif /* CONFIG_BOARD_LATE_INIT */ #endif