Message ID | 20210723063950.11326-3-oleksandr.suvorov@toradex.com |
---|---|
State | Accepted |
Commit | 421440f70de659789b4bec90fda48f1eddf67eed |
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=hlpOB0l7; 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) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GWKTL0VNTz9sRR for <incoming@patchwork.ozlabs.org>; Fri, 23 Jul 2021 16:40:54 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 471AA82C95; Fri, 23 Jul 2021 08:40:32 +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="hlpOB0l7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8F4E282C67; 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-he1eur04on0703.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0d::703]) (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 154ED82C5D for <u-boot@lists.denx.de>; Fri, 23 Jul 2021 08:40:13 +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=Oi8khIlSgcFp5lCw+E5RCs+/OEfQ2mZT+tyxQYESMI7adrpY6vg47UG87M8pvHHgNorQm9wjCYkNQNUMOhd2wg5oHWwdP75EafgqBz1RAOYLqUuhndg2qqXUwKo5vlTEyxQ3Cv1Z2zMjYdG8NdJofqpQqncFwm6W1c3hvt0bnZ8QA0sghxqNKphUvUk1Mjwa4l3STPqms+RMoe/Zz2j0oeUxdfjboOrx9EzaXOYgTHuaa237cjRNY712yQRZufnvjQbyhXRgRHkjTOY7kyNynVMAPSf59TLcgwDS7HjAXzQFIizt+XJ2/2UzeREG4eNdSVb8aut8chRgjx+BtrEHHA== 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=yQMwwWSr6ZonuLpUYb4+MsXvx7zn1DxmSbMwz1zfuv4=; b=X+5/Y+zziPRUpRXVNUZ3QEFbJHpMM9VASzI2rMw8EKdFw4/mo6JvLG6S8G3zlQezxfm6rSFiC4KEptyBCZ0yhWv9COqWtQFNYV++n0pZdGqV862JfPffhhuR+NV9eroMEiSqA6JsXcFu71JQT4G+qMkF9A2V1lJeVES6DRWBDNlHx/+D7Rqcl8nOnjXBscAnE6ctl/MQqd0uTggexG2rQeNNZUzh7lMCfZ211ZmilCwO82TFWFRtgWPgEYufgWxyhE0QKoGX9pHxFLTCALdeUePfhHjowryapDHEWhbmCfL6tU7ZG2/gUsgLVmZ76NQTOit+joGDAW1js8bg5RENtg== 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=yQMwwWSr6ZonuLpUYb4+MsXvx7zn1DxmSbMwz1zfuv4=; b=hlpOB0l7twams0ah1mspZ7kVMuVGjRlzQ8cKNRDD7WTdEBG7J+W0P+ygBhGxtXNVuCMejuoMs6gR0puQq1lUreYTC3JAo9XjnsUC2fyGMGdDEaGULO6aoHI2oG+tTkPkCEuShJpVgvE/8KwgsNx8/6MgSYxNcxgJu/h8LkrwJfE= 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 PA4PR05MB7646.eurprd05.prod.outlook.com (2603:10a6:102:f9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.28; Fri, 23 Jul 2021 06:40:11 +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:11 +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>, Igor Opaniuk <igor.opaniuk@gmail.com> Subject: [PATCH v2 2/6] board: toradex: make USB PID from config block optional Date: Fri, 23 Jul 2021 09:39:46 +0300 Message-Id: <20210723063950.11326-3-oleksandr.suvorov@toradex.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210723063950.11326-2-oleksandr.suvorov@toradex.com> References: <20210723063950.11326-1-oleksandr.suvorov@toradex.com> <20210723063950.11326-2-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: fa047d10-9c47-421a-3b3d-08d94da4b84b X-MS-TrafficTypeDiagnostic: PA4PR05MB7646: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <PA4PR05MB7646C31ED570C2F1DD20A4EEF9E59@PA4PR05MB7646.eurprd05.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1QVQ0XiylaVCnW7qI7oElK90t3aIKg8YorTTnDLfjH9xytPYLON2vv6M+tupZIXnc74ZZaIuneuHSxt2sI/J4Z3+0GyUOwznSmWIR4nHFGpYpMsTPL+PFszu4r0wXk1vdQvt/39zpkcWbQK3bGB3Y7+iIAsEEgE+H1bEqepLorN7i4deSvGluTF875eENGWmwUK6YL+Kg8LaIIhLK5NdqCqcz6roXe86T6xCRmot1TB/5ZLCBL0n/VXs4iq2NK3e8n5jsi8nJnVsnKMyC3Kgt1fvsZYFyZCWtAtXhCHTMjU9ZpuAAK2y5zLYJ5yhLXC6Qg34zLV4kYGvXm1v3QK3FvC8qv2h5a+x6nYT1unaFIAtANO+0WF6fsuJvoUyOFloneMaNc2F6h0I3nC7dAJE8Kw3jUjbKYheBK7HQ7howaksihk0A079ZaSBV3e0WNRKV6QCHxFiYDnwJeWvhmWuiecAR7HD4mTZYdf3Ooy9xZfIZG7gBfgdYOnffSko0B06wdelnGWOQwbTF5JANyYT+zmImUpDOH8QRRiwWBr/3P174gi/Zql5Ck7NTmj8EkmJDE4dsA6Z9kl8aoJw5hV5lISYpG9IdneFIFcsAz+LATl5+kJkUkoieCMJt0BNM3J9Py/H7lSfxMerO7Hw4PF5AIqKLM5BAC3V2PvMPCed5KtQYl9wQUTAqamTk6zo89VCWeVbUICxOymhs3gBkGNxKQ== 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)(136003)(366004)(346002)(39840400004)(376002)(396003)(8936002)(186003)(6512007)(38350700002)(26005)(83380400001)(8676002)(38100700002)(6486002)(66476007)(6506007)(66946007)(55236004)(66556008)(36756003)(54906003)(6916009)(316002)(52116002)(5660300002)(478600001)(6666004)(4326008)(1076003)(86362001)(2906002)(44832011)(2616005)(956004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ns41UKTIsJL2PgdZDldoxY+E2fx/r970knc6m+wzoNTRNHo+3z18FfTstO33KKJ8xGXzLe4dfbcRDa5YsIC27nzJ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sOJJIIg+QmcU4uW9xM4BCC+c4fvtmFAn5G4AvxPLE7YECZPr5aGr99PgQf5g0mlZbIsgzxsz8XoV6e9i6Tk70BUFsWck8C0ixWjIO7uHtvrtaUS8qXbNRZnNEIxJ+2oTJKdpUZvW/J9fl7AAW0IjCPfwnFvBhA6BfodlUPvkk6PZdnhdmcGgN X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa047d10-9c47-421a-3b3d-08d94da4b84b 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:11.2654 (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: MIMMMb64gtjbXKN3jIeEB+eiXFG3Gevr1tyrqHf78Dbgftmo09hx8JGcP37/Cdnj1HeXAzjDNS4IXfbgC5LsNtyxeWjmnvC0+CKZmsXHphw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR05MB7646 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/common/Kconfig b/board/toradex/common/Kconfig index 36068d2e3b..1f6a5e4db5 100644 --- a/board/toradex/common/Kconfig +++ b/board/toradex/common/Kconfig @@ -84,4 +84,14 @@ config TDX_CFG_BLOCK_EXTRA Enables fetching auxilary config blocks from carrier board/display adapter EEPROMs. +config TDX_CFG_BLOCK_USB_GADGET_PID + bool "Use config block product ID as USB product ID" + depends on USB_GADGET_DOWNLOAD + default y + help + Use the Toradex product ID learned from the config block as USB + product ID. An offset of 0x4000 is added to the product ID since + inside the Toradex vendor ID (0x1b67) the range starting from + offset 0x4000 is reserved for Colibri/Apalis modules. + endif diff --git a/board/toradex/common/tdx-common.c b/board/toradex/common/tdx-common.c index a3d287ed5e..061abf7537 100644 --- a/board/toradex/common/tdx-common.c +++ b/board/toradex/common/tdx-common.c @@ -147,7 +147,7 @@ int show_board_info(void) return 0; } -#ifdef CONFIG_USB_GADGET_DOWNLOAD +#ifdef CONFIG_TDX_CFG_BLOCK_USB_GADGET_PID int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name) { unsigned short usb_pid;