Message ID | 20210722154943.127775-3-oleksandr.suvorov@toradex.com |
---|---|
State | Changes Requested |
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=85.214.62.61; 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=g8KY+ekv; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4GVxkV61GJz9sXJ for <incoming@patchwork.ozlabs.org>; Fri, 23 Jul 2021 01:50:58 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8A3EC82C49; Thu, 22 Jul 2021 17:50:34 +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="g8KY+ekv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9DE6E82C55; Thu, 22 Jul 2021 17:50:22 +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 EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20713.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::713]) (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 EBA6182BDF for <u-boot@lists.denx.de>; Thu, 22 Jul 2021 17:50:15 +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=efCaOCdSc0YJDoJO06Rd+9VvAjrw+eRh1+PKBBXy1jRHn9TaO7uGZuXk128/caRDQFPHTu18LrxRPK9rmAbk2SxNaeTQENHnrJ+kNKcGaCCYGRQ2Zdi7qVVvY5SbUBFaD0qsyEvE7WefUZ3HDxJxg8CCMzPlwSc91HVeutkbrn7qsbQHbwfAHKkr5lcq8Kl+MrpesK2PvEFRuq6dRSQApv9N+6dlMGU4bnVfDhpwtz2gHUGLBfkhgSsghjNbDaPT8x2MzWhRpKM+rVh5UDiuyQ+ViPzhImCotzGHlLHcwyPfjwk3tamJZ8wZBWcAnvVwJGNrIryQ/sd62lAl2CZuOA== 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=LJtpk/rtKtlyGqONVH078fcl0Psuu8Bk+LnCyDq+TSc=; b=Mo7hDtl1N/kClM7vWgnAEMWtmsMAcBSZY0VWn5KBk4dXKT9a4HLv4l7+W7PJPSizVb3QBmUyx5SlPvtVgVFmEmbwYE2MqcWxG5eTy2rvaCs3Q3xdSvl46DTn2L1LBwXlLF2gGQ9iGDvFINHhnhgwwbo1ZgNbeNMG97fz1VFOnhONM1m6HKGxak37pga6cn0GV6gXdFbPT0i40y8Ikd9Q6aC6RJDJg6/zkKjutrsmYgrCl3JqZK+O2FiWkSTizdrKJZ3KJZhOJP30XgAKMgspTZvUpkRpK5URRzSJyV+ZzKb29XlQvwFXN71mGW3iOKOgtqiUemGAfcNxeXzAaHhlVw== 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=LJtpk/rtKtlyGqONVH078fcl0Psuu8Bk+LnCyDq+TSc=; b=g8KY+ekvPtKDGT3Jjl9DZDtY7cqYvFVlwUWTIdHpwOH2oEkWxMK+yDPfMp6wv7Y9kEwZqwv0HlgBKskytoy/I6HPY479p2poNnht0EBQQnzHN6DXJt32tmF3aTAmkvFdSr8xubwVxFzWImXrAXrV1JAmyT+cbaAHvew2ywP5wrI= 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 PAXPR05MB8560.eurprd05.prod.outlook.com (2603:10a6:102:1a7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.25; Thu, 22 Jul 2021 15:50:13 +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.025; Thu, 22 Jul 2021 15:50:13 +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 2/8] board: colibri_imx7: use SDP if USB serial downloader has been used Date: Thu, 22 Jul 2021 18:49:37 +0300 Message-Id: <20210722154943.127775-3-oleksandr.suvorov@toradex.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210722154943.127775-2-oleksandr.suvorov@toradex.com> References: <20210722154943.127775-1-oleksandr.suvorov@toradex.com> <20210722154943.127775-2-oleksandr.suvorov@toradex.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AM0PR02CA0221.eurprd02.prod.outlook.com (2603:10a6:20b:28f::28) 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 AM0PR02CA0221.eurprd02.prod.outlook.com (2603:10a6:20b:28f::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.26 via Frontend Transport; Thu, 22 Jul 2021 15:50:12 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 968e031d-c629-48ae-4e08-08d94d2864bd X-MS-TrafficTypeDiagnostic: PAXPR05MB8560: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <PAXPR05MB8560DB128B19D4AB691B0635F9E49@PAXPR05MB8560.eurprd05.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:913; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dQ552RXfkw76K6FyeyOM6H70RRbD+q2w5VE7cd83VKnTNhbO9kWrjwo/XkK7i112oBhLR4U12N4W2EpZ9Zw8EqPhO6lVIhSMB3Z4LvZX4dbRvFCEElte+5Jza43c3MWz+0yDHw/XbmCAhjh17AbTD6aX0IAuoiRQTNztumlhF5AlOmn/U9fXhPsAjZ76ta0A6udka4/grGc2c1dy1X6/+vh/FjT2w/24nmkNJnqJPI574mvfsfPE0juWbre1Qisd4IRSZzgtSdrrFfljdXyQrSZV/ZPB82MGU06jt/r63dOKABgqh6GSj889ppBnlMlN3nkBB4ODiFnBe58QOe6Z3DYFwtTfRM3wU2Y7VksD0DKsF0MLjEn5nUoe34w5AtpSmpT84yCrZBspLaVKkg3SPfnqFG4STDHK7hA7tJHQdzt2xhJ4SfJxi7CwBCLNm0/gRMHJaECsIHxJj6z6B9WB5yN3x0Sak6aMU1ti26OY1VHZFV9V69OAqMUimee3C3gjeE+536UbBX67IVg2vAwRIRwQC3rABsiDkXyR3MsS2PXtAaDkwYs+t0GAniBhlMljQCs/hAqk9vc/hHXYvKGkyYLGWu8gv1B6rmWJpGTiSAZeqHx5dqEdClhfp9711TGXvbGVTs/gDDt1MOlbY2gDCgL27HrOZPjJOVoY+FnSnA4RH9dhr+zl4QbEQ2CG/Ng5flvEU8Dz0bbBybOrM65qMQ== 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)(366004)(376002)(346002)(396003)(39840400004)(136003)(6512007)(6916009)(8936002)(83380400001)(316002)(44832011)(478600001)(6486002)(4326008)(8676002)(26005)(5660300002)(1076003)(6666004)(186003)(2906002)(54906003)(66946007)(2616005)(36756003)(38100700002)(38350700002)(66476007)(55236004)(66556008)(956004)(86362001)(6506007)(52116002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1f7ezUAhlT7c57oNkglGFovuFInwI9MbJkiFI6x4O7a97tiMG97H/crNq6kZeCNRZg64s34YW+5keDJ3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Iacetv45UQKCdDnezFGhhWV8BYxM22x15h9otU97pZeuqrlq6ky9+4uxW3wnFsk7OrTAHhPXp3lpibodQmlgh3forky/pe859CXk4vZUKKNYZdX5ZiEWgxtR/rNNJaH6ba2uM2YN/D+mWYavKgwP+PcculPejlVRZ1lPO3XH7V2SprZ/rYd9RAu8aY3o X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 968e031d-c629-48ae-4e08-08d94d2864bd X-MS-Exchange-CrossTenant-AuthSource: PAXPR05MB8285.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2021 15:50:13.5765 (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: AboR5sfXA/9ywkzcDykqPikkyChNG5Po8RyYuBCXTNwz4RD+flMNsDYcz1YF3SA94+vHoyz7n2ZesSlRWvimUtf5+3Ir3mw295xnGIczSw4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR05MB8560 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 |
Patches for Toradex boards
|
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