From patchwork Mon Jun 29 08:25:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Stephane Viau (OSS)" X-Patchwork-Id: 1318784 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-NXP1-onmicrosoft-com header.b=SgvXDOk8; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49wLxz0S7vz9sQt for ; Mon, 29 Jun 2020 18:58:47 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3A9CD88800; Mon, 29 Jun 2020 08:58:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9GTAzKLhPaU8; Mon, 29 Jun 2020 08:58:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 249E888801; Mon, 29 Jun 2020 08:58:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 3ED771BF2C0 for ; Mon, 29 Jun 2020 08:58:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3B64520794 for ; Mon, 29 Jun 2020 08:58:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hin8sL1WyI7w for ; Mon, 29 Jun 2020 08:58:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60067.outbound.protection.outlook.com [40.107.6.67]) by silver.osuosl.org (Postfix) with ESMTPS id 21ED8203D5 for ; Mon, 29 Jun 2020 08:58:42 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i6CzvbkbO1CMO5hUBmPKhJIk91I97uOtARnvt5eiLC0v+Cq/xXqRevpZa+RWh62yDGLANLz17g71uGs/BaOpR/AZlzAUglYUUv35+qEk06Ki4fstYx1a2XZzoh9BXa8bTVl7hxzgkc7lmgK8s5EMYtUR9D6X9dt4hMR00JUW4sUUyBAVvi9EHA25vzjvfpRzg639GGkz+zUUfpFd8YaHXqF+t0xmqwgBqhHaJOpzz/0tNcYR+qtPFvsRkQGvf5SOZZdWC5VY+/f+IUZDHMUUkmfzCZazeJ5K0jK19J0q1459y6iNHdWQT8s0Pdco+WeCvI3Ra2HMmcAACW3wpkRlXA== 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=AgOzHNeRXZHuwQZlhrA0/PcPeUiyeyPX5rUlqHQncxE=; b=Yk3TM9gMf72oVK4zgR1WetFJx6M3xEHmNdmMGLE5R/gPbsuvhXTdNmX0r1LMusV5o/bxHd94cKc8Ub76XdlG6kq4c8HPLAoeRNFqDChQYaLDA6AL+0g7SI05Y3zLxw9Im0NnTfNI+dGzVMPKiTAwsyjtba5NIwq62fbooGHOoLPpSct4JydomJnu4H70bgS7+9q/ICgfL3SwZ8En+qrHB1hlQqHwmR1qslGzOcBwqs0yXCxTcujqGgsQeuMHeFrCw+aGrWkHObsaKpUoFURdgnU7Ld/bhQtxHiNSk+ywYi2VWpUG+QNCvq8AatFwOpq3VM2pYdNqX4wTjjeDblv3yw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AgOzHNeRXZHuwQZlhrA0/PcPeUiyeyPX5rUlqHQncxE=; b=SgvXDOk861SFKKSFbo8vfM3Dm5X2IPQO4I3WvFpBzWODw1V+a8UiHIi8tJdK+lsbAwueZdobPE9TG9x16+SP0ujNVpk5Z5mMw+6q+srAmFyIGiZznemhwxgJbEdLRxzX4kDJ7zMlDQbt0NpWxJLChnAhsv6qlRTn49ig+MR+6do= Authentication-Results: buildroot.org; dkim=none (message not signed) header.d=none;buildroot.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) by AM0PR04MB6163.eurprd04.prod.outlook.com (2603:10a6:208:13f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.21; Mon, 29 Jun 2020 08:25:55 +0000 Received: from AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::a900:801:e20:3812]) by AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::a900:801:e20:3812%4]) with mapi id 15.20.3131.026; Mon, 29 Jun 2020 08:25:55 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Mon, 29 Jun 2020 10:25:46 +0200 Message-Id: <1593419148-26821-3-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1593419148-26821-1-git-send-email-stephane.viau@oss.nxp.com> References: <1593419148-26821-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: AM0PR10CA0030.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::40) To AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a01:e0a:43f:82f0:e5ce:dba0:335b:3910) by AM0PR10CA0030.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3131.21 via Frontend Transport; Mon, 29 Jun 2020 08:25:54 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [2a01:e0a:43f:82f0:e5ce:dba0:335b:3910] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 39a18292-c070-4e18-04c7-08d81c060ab1 X-MS-TrafficTypeDiagnostic: AM0PR04MB6163: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-Forefront-PRVS: 044968D9E1 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CslFFk9Cayw/1IZcCSOVw2qRNhoRtk520rjJudMDDo8kRzsFSsoGjnRofz7l6AQp8ZDY8Jq8Ld4gOXPrX/K7tz/TrqhbhFjeyi2E1y4c94NZxXL2bbRegtoX1zeSuSQxwiVYsEeRkpPfEGBUiNpwQ993LTYL8mS6mowMX9UoNTLbqIDPca2wOAySHC2J5cRBHDSZq5/DbBZC6TvqZ4CxW+i9QtigJ9YOMj9AYoFK0e4jwB9J2L7xxpmpdXiellLoC4WYaIo9AnffAOYz6ugZ4N741tBGKyNrq+WregZ0DkbiF3m6yXY5Dhqq7VVV9EM1su6F3rgDUTTt1I76UvyYDuiBYDbB09uhGK4UuOqA/j/ALtnEjoxIB3Oh0EoQM3gS6e5KfQWQN9yytTSLO+s+lgS1h7d4smxBly8QrduY2ZYkR0bborr1LRqA5YkqWnqyUnh25KcT+ZyZvvQKydMhtG6PAUwxTb1dBvHwYrZtpO7uT4DQAeqnUlnbsRzPkqzO X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB4786.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(346002)(376002)(366004)(136003)(396003)(52116002)(8936002)(6666004)(6512007)(6506007)(66476007)(66946007)(8676002)(4326008)(316002)(16526019)(54906003)(83380400001)(186003)(66556008)(69590400007)(86362001)(478600001)(2616005)(2906002)(44832011)(6916009)(966005)(5660300002)(6486002)(15866825006); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: /0IcEXKwJcbk6RZwGo+q3V3oz0lJOIsik8+UOwV/1qwyQvrqFasyraeqcP78r0CPuSWdQt4EhUVvhor/knQJdTq+lp54mkN4KQLO98pxGf/l2Rf43Yp/QX0axsWq0waHy1zFyfGoq2ku6pONz+YR2tsRbSIDxWrEE+6cxdoddpiaEAojrA6tNIfI4N6IKWYC5+DqqkZYkaNucwAOgy9P9XCaHKepyRTYody/CPN6va5s/sjrdLdW09xpAUWuTEcPB/IkaNUf08DRyylHKsBphqnosOxDzNJ3alyr0LN5GDcZSz8vBNHHGZEqttCYhxmWjYp0W+erK14LK6ajMDLn5SBLpxQ88tks8zAkER5I3tKGD46soU3TFKpCWvZbxvEE/kUNxi5ZaUI0S82oeVqlvRg+6a/rCWaMPhwjdZjAj/EjcI1QICaRlDsseNi5RU8yYRMFAbiPt5g4dLkbUjn7Bk4C7zDTSgW73X/x9nSwHaNMatlF/3BgbLPeW0E0AwUQbNFuZA+3900dwGhW+/z0VvesCx6xvMUuFQKvSaNDeFI= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39a18292-c070-4e18-04c7-08d81c060ab1 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB4786.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2020 08:25:54.9868 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Q9WePc9mYPMCjY2h07dYA/4QLB7SagKLfVNr3U6j/4C+tU2e2GF/+cqyrJ6zDK6h1JkAOj/oAc3FhTUF9Idmbw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6163 Subject: [Buildroot] [PATCH v2 2/4] package/freescale-imx/firmware-imx: Add option for all i.MX FW needs X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gary Bisson , Stephane Viau , Fabio Estevam , Refik Tuzakli , Thomas Petazzoni , "Yann E . MORIN" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Some SoC need a HDMI FW for their bootloader, some other require EPDC, SDMA and/or VPU. Instead of trying to "guess" what firmware images need to be installed in firmware-imx.mk, let the Config framework do the job and allow each SoC to pick what firmware they need. Note that this patch should also help introducing an eventual DP FW, as Gary mentioned in a separate thread [1]. [1] http://lists.busybox.net/pipermail/buildroot/2020-May/283181.html Suggested-by: Yann E. MORIN Suggested-by: Thomas Petazzoni Signed-off-by: Stephane Viau --- v2: - Do not embed VPU FW for i.MX 6S/6UL/7 (Fabio) - Name VPU FW after IP name (Fabio) - Rename symbols using the "_NEED_" in their name (Thomas) Signed-off-by: Stephane Viau --- package/freescale-imx/firmware-imx/Config.in | 43 +++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/package/freescale-imx/firmware-imx/Config.in b/package/freescale-imx/firmware-imx/Config.in index d6310e6..2ac5dfa 100644 --- a/package/freescale-imx/firmware-imx/Config.in +++ b/package/freescale-imx/firmware-imx/Config.in @@ -4,11 +4,52 @@ config BR2_PACKAGE_FIRMWARE_IMX help Firmware blobs for the Freescale i.MX SoCs. - It contains blobs for SDMA and VPU. + It contains blobs for SDMA, VPU, etc... This library is provided by Freescale as-is and doesn't have an upstream. +config BR2_PACKAGE_FIRMWARE_IMX_SDMA + bool + depends on BR2_PACKAGE_FIRMWARE_IMX + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX25_3STACK + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX27ADS + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX37_3STACK + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX50 + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX51 + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX53 + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6S + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6UL + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7 + +config BR2_PACKAGE_FIRMWARE_IMX_VPU_CODA + bool + depends on BR2_PACKAGE_FIRMWARE_IMX + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX27ADS + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX37_3STACK + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX50 + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX51 + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX53 + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q + +config BR2_PACKAGE_FIRMWARE_IMX_VPU_MALONE + bool + depends on BR2_PACKAGE_FIRMWARE_IMX + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X + +config BR2_PACKAGE_FIRMWARE_IMX_HDMI + bool + depends on BR2_PACKAGE_FIRMWARE_IMX + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M + +config BR2_PACKAGE_FIRMWARE_IMX_EPDC + bool + depends on BR2_PACKAGE_FIRMWARE_IMX + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6S + config BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW bool depends on BR2_PACKAGE_FIRMWARE_IMX