From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 09 Dec 2021 07:11:51 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mvCel-000lrD-Tv for lore@lore.pengutronix.de; Thu, 09 Dec 2021 07:11:51 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mvCel-0000Mt-BZ; Thu, 09 Dec 2021 07:11:51 +0100 Received: from mail-am6eur05on2087.outbound.protection.outlook.com ([40.107.22.87] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvCeE-00005c-RK; Thu, 09 Dec 2021 07:11:19 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZjK1uSSVlDT3FRkGH0TnojylTaAvclXi67DDG4lpauhV48yv2ojNm6VBXx8MExO7fI40cF1HLEhcr7QPKnosLZkAjiSNINlRyO9SuOnG0ytIdLo/pTCTutEC+Xi7bLveTBDyYRl1jiEZkiIDrGecfhBTJIuSlHDaMtYVRpjjUwUUYSXJgUpZtYo1T4dQ9W7aAgBNvgReuiXeZ1d8RL4FNy13oamQFTqge3SLyhx5xdS9ON9w7eKAY1i3V0lkzbR50lJwGaxwL3qGpNujbZz86/HIJpAe5OKGrhbd/goQYl57iUlh4Zn+XrQECfQ3j/EtyB6Al1PXFdkTkKlKeodwKQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Cl00e4yagcqg+kfD99WMAOmUEQtpnaP9Ljr2cS9RZjo=; b=mxUbyz8/0ugXcjaTk1vSq+w8fCxfu99Ch0VeWObeCwvld+IGQSg08yNYeiOZxzzC2mnysRJrW3YSl1YJFnN2D0BTHfZiEuDGhQZxblu6jza7JXMktRMhqAPWYhizzSR70ENjN4FUWsif3msbvF/ZW71pOqmzvO2bt61aLAwXcQVlSLWyGh6bHmdcLtSgj/6zs2s2Nw0ni4SImQZXC+NUa+F+c+KepX/xLW/kN8so5/vjiVBloLsNyiu820r8h7pb5uV/mJ9C84EoK0JUOQb/Gd7YJVkeOwVE3mwJkHfA/c85RcFrmujZqx/6A59TAO68I0BZN3tLnMdaU9+LfZgW7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Cl00e4yagcqg+kfD99WMAOmUEQtpnaP9Ljr2cS9RZjo=; b=TRS4DrCKmTksDSjnQkiEVtyCunwpCHMPwFaUF9TsZthD+sU9Z01ReIO9Mlg8EqbT5r3TVpeYpHMzUgWyWmKNB0ABVsGpy6019hsljYJCb1Rj+0fLfyMoMB3G4R9pxH8ssuBqS5oCZ6DAaJJEirBp2vc6/lbuustzRFYsRJ3jGsw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from DBBPR08MB4523.eurprd08.prod.outlook.com (2603:10a6:10:c8::19) by DBAPR08MB5688.eurprd08.prod.outlook.com (2603:10a6:10:1a0::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.16; Thu, 9 Dec 2021 06:11:04 +0000 Received: from DBBPR08MB4523.eurprd08.prod.outlook.com ([fe80::81d1:d448:4016:1956]) by DBBPR08MB4523.eurprd08.prod.outlook.com ([fe80::81d1:d448:4016:1956%4]) with mapi id 15.20.4755.022; Thu, 9 Dec 2021 06:11:04 +0000 From: Michael Riesch To: ptxdist@pengutronix.de Date: Thu, 9 Dec 2021 07:10:48 +0100 Message-Id: <20211209061049.2975739-3-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211209061049.2975739-1-michael.riesch@wolfvision.net> References: <20211209061049.2975739-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZR0P278CA0140.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:40::19) To DBBPR08MB4523.eurprd08.prod.outlook.com (2603:10a6:10:c8::19) MIME-Version: 1.0 Received: from charlie.fritz.box (2a05:1141:1c9:7c00:2971:328c:3026:3149) by ZR0P278CA0140.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:40::19) with Microsoft SMTP Server (version=TLS1_2, cipher=) via Frontend Transport; Thu, 9 Dec 2021 06:11:04 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 81a76a7f-75e8-4b96-c3c6-08d9badaaea6 X-MS-TrafficTypeDiagnostic: DBAPR08MB5688:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2IsdTHE4MuZJ75J3HCx9utWbgaAKCSM/0Vdjne3pvTB/zWIs3k2gQJI6JQh1kRGIKOt9m0Msh26Pi2k9wTT4P0sNiXRO7PoY1B/OeezDU/Sd3cHqsGIxozS2bBFh/VxDqaqIOw+WS4UXaiGrFPzrrWiYK8P/8PkdQ9N7Pk4ObDWjsmbED0J5j/xctPhPDwzagKYlGbORD0OBp8mIFlQfMhXxyIOOXFBqxIV9WSCiCeSiH+LzkrZkTA9BibEK5vXaXfzFpyd5MFxd9jtcuddNyoetd2nOuRNz6GwGd5tsfwAb0A+ul73v77RPCI5HAX35gCuN+0DcB51Utpk2Q6xPupYfp2b6XA30vs9PyhpvPHTJGQbDWKtmDhGssN7jLs0kTEVEzUxo6WHLD04eywXRPEdEH2CoNpJy/6nEkqXwNZKSpgQniEoKIw7+mLt+lPWiHG67p7BqnvgM4/gY7noZKzXD9r5rcCwa5nsZhBdRL6EwSMmKdKRqFMYVx1i/gzscvwDj/sIKDy9nAGhYdeD2oHD1+3O5nuMI2DBCwL4mxKN/Us7jT92ZWRxYvS94/OmhL8BAfjMhbx6j9ZOY2LLI5auFd9z3FKdyn58HWD/npfxzHpOwBJLoU4w2/0KpX6Pr4Drya66wDZItCCS+1zeqXNxD+LNpcCg42Cvqbsg3IBwtMqc1wLJXy+X9ox4DBIXX1ev0GZa7g+jmygl5I4zThlT6ethUfTITsUC31Cn4qy0= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR08MB4523.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(44832011)(66476007)(66556008)(8936002)(2616005)(52116002)(66946007)(6506007)(966005)(450100002)(508600001)(4326008)(6486002)(6916009)(38100700002)(6666004)(8676002)(36756003)(2906002)(107886003)(186003)(86362001)(6512007)(1076003)(316002)(5660300002)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?vo64U1IgHWKIX8UXXR870Eub+NoqxhrfeIy8kpCiMIgdqvZLct/J40feP1Bj?= =?us-ascii?Q?94uRTyphkm8CodM9l05RKPKgU5wVAZjM9QpIMwckvCSfX6KakHQ52KD6jjJt?= =?us-ascii?Q?8MkXgdwmwaUOW/wtDafJeDQEAwJczFpccoH6z6LLq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YQusNsvbZ3ojtNIhFprMDV1XV6Sa7/6Fb778OBR+9?= =?us-ascii?Q?oSPhsVgF33WRgSIoyM+VV6jSnPr9bmUgUzUjlR/l3xEC4WgplOBJVFajpb2L?= =?us-ascii?Q?IRRjgvz0/a0H/MwFCgH/8iXjbo/8ClRukKuZ7oJfd+P8LvJ+lG2lry8pTkl4?= =?us-ascii?Q?zaC6TAUuxgXseqtjDnCBvACGMwvkohJ75ikHhvhNLv9xRkyXtxN8HfYFmkjy?= =?us-ascii?Q?82vdqNc7Gb8HCTmlUhckSyZwboCViZOrL3pE4pBgiIh7eXmdfsIzfGfEzajI?= =?us-ascii?Q?uMiDKYQZE9xaK/XbUmgWLzKHhVCe9xAd0IFHE7PNWKM7dG6LGptrIIc6FCYG?= =?us-ascii?Q?mnBrS5Wn3uRzpqQoaYYQF1wR9cIMEky01Z7A1dbLWuar2PR1yug8rBAdZI1j?= =?us-ascii?Q?w4Lvvm8NAC+w/EGFh57qXqPrc4ycnZzpP81ns2Q91xbW0OrV5/go7fHaWPqe?= =?us-ascii?Q?Z14OjJzHfNGFJN063rXrpr5r2AkpjYl/uwnCWLKUeF8mrTlCiaxbQ6mQcm0f?= =?us-ascii?Q?wS43Q9iQF10d0r+RbxQlEfW+Y7wFav8NQeGuMusv86q1mNfkHCJnI/zeoqXQ?= =?us-ascii?Q?xPsQUKPy3nrtJa43QjceSh5EqTK/ykEznBTA+NatW6VIWNqJu4bsq+PmE/Ft?= =?us-ascii?Q?B8v7VvcMXFA+B++hZRRpm2xrmK+vrn2V/JHU6A+IYUJTRGog4UHdkCgv9oO9?= =?us-ascii?Q?sfdYFHEJjg=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 81a76a7f-75e8-4b96-c3c6-08d9badaaea6 X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2021 06:11:04.6676 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: a+jJIGTo7B5CdtkLQCaKhEXIqZKBxR9yE3i9KLcWXTUMGsH/yPVrK4EFInfOHjX24cYPyUXh7AQGzz31JtFPTmwHAaG7o0FNJxYX6MGgV+o= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR08MB5688 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.2 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH v3 2/3] add package for rockchip firmware binaries X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: m.tretter@pengutronix.de, Michael Riesch Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Rockchip provides the SDRAM initialization as well as BL31/BL32 firmware for their SoCs in binary form. Add a package that downloads those binaries for further use in e.g., barebox. Signed-off-by: Michael Tretter [revised and extended Kconfig] Signed-off-by: Michael Riesch --- platforms/firmware-rockchip.in | 41 +++++++++++++++++++ rules/firmware-rockchip.make | 74 ++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 platforms/firmware-rockchip.in create mode 100644 rules/firmware-rockchip.make diff --git a/platforms/firmware-rockchip.in b/platforms/firmware-rockchip.in new file mode 100644 index 000000000..aa702416d --- /dev/null +++ b/platforms/firmware-rockchip.in @@ -0,0 +1,41 @@ +## SECTION=non_free_firmware + +menuconfig FIRMWARE_ROCKCHIP + bool + prompt "Rockchip firmware binaries " + help + Rockchip prebuilt SDRAM initialization and TF-A binaries. + +if FIRMWARE_ROCKCHIP + +config FIRMWARE_ROCKCHIP_RK3566_SDRAM + bool + prompt "RK3566 SDRAM init" + help + Rockchip RK3566 SDRAM initialization binary. + Compatible with e.g., the Pine64 Quartz64 Model A board. + +config FIRMWARE_ROCKCHIP_RK3568_SDRAM + bool + prompt "RK3568 SDRAM init" + help + Rockchip RK3568 SDRAM initialization binary. + Compatible with e.g., the Rockchip RK3568 EVB1 board. + +config FIRMWARE_ROCKCHIP_RK356x_BL31 + bool + prompt "RK356x BL31 binary" + help + Rockchip RK3566/RK3568 BL31 binary. + Compatible with e.g., the Pine64 Quartz64 Model A board + and the Rockchip RK3568 EVB1 board. + +config FIRMWARE_ROCKCHIP_RK356x_BL32 + bool + prompt "RK356x BL32 binary" + help + Rockchip RK3566/RK3568 BL32 binary. + Compatible with e.g., the Pine64 Quartz64 Model A board + and the Rockchip RK3568 EVB1 board. + +endif diff --git a/rules/firmware-rockchip.make b/rules/firmware-rockchip.make new file mode 100644 index 000000000..dd50c865a --- /dev/null +++ b/rules/firmware-rockchip.make @@ -0,0 +1,74 @@ +# -*-makefile-*- +# +# Copyright (C) 2021 by Michael Tretter +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_FIRMWARE_ROCKCHIP) += firmware-rockchip + +FIRMWARE_ROCKCHIP_VERSION := 2021-06-01-g7d631e0d +FIRMWARE_ROCKCHIP_MD5 := 4ca62f76ca75019dc708c4cb7cc31b0a +FIRMWARE_ROCKCHIP := firmware-rockchip-$(FIRMWARE_ROCKCHIP_VERSION) +FIRMWARE_ROCKCHIP_SUFFIX := zip +FIRMWARE_ROCKCHIP_URL := https://github.com/rockchip-linux/rkbin/archive/$(FIRMWARE_ROCKCHIP_VERSION).$(FIRMWARE_ROCKCHIP_SUFFIX) +FIRMWARE_ROCKCHIP_SOURCE := $(SRCDIR)/$(FIRMWARE_ROCKCHIP).$(FIRMWARE_ROCKCHIP_SUFFIX) +FIRMWARE_ROCKCHIP_DIR := $(BUILDDIR)/$(FIRMWARE_ROCKCHIP) +FIRMWARE_ROCKCHIP_LICENSE := proprietary + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +FIRMWARE_ROCKCHIP_CONF_TOOL := NO + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/firmware-rockchip.compile: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/firmware-rockchip.install: + @$(call targetinfo) + +ifdef PTXCONF_FIRMWARE_ROCKCHIP_RK3566_SDRAM + install -v -D -m644 $(FIRMWARE_ROCKCHIP_DIR)/bin/rk35/rk3566_ddr_1056MHz_v1.08.bin \ + $(FIRMWARE_ROCKCHIP_PKGDIR)/usr/lib/firmware/rk3566_ddr_1056MHz_v1.08.bin +endif + +ifdef PTXCONF_FIRMWARE_ROCKCHIP_RK3568_SDRAM + install -v -D -m644 $(FIRMWARE_ROCKCHIP_DIR)/bin/rk35/rk3568_ddr_1560MHz_v1.08.bin \ + $(FIRMWARE_ROCKCHIP_PKGDIR)/usr/lib/firmware/rk3568_ddr_1560MHz_v1.08.bin +endif + +ifdef PTXCONF_FIRMWARE_ROCKCHIP_RK356x_BL31 + install -v -D -m644 $(FIRMWARE_ROCKCHIP_DIR)/bin/rk35/rk3568_bl31_v1.24.elf \ + $(FIRMWARE_ROCKCHIP_PKGDIR)/usr/lib/firmware/rk3568_bl31_v1.24.elf +endif + +ifdef PTXCONF_FIRMWARE_ROCKCHIP_RK356x_BL32 + install -v -D -m644 $(FIRMWARE_ROCKCHIP_DIR)/bin/rk35/rk3568_bl32_v1.05.bin \ + $(FIRMWARE_ROCKCHIP_PKGDIR)/usr/lib/firmware/rk3568_bl32_v1.05.bin +endif + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/firmware-rockchip.targetinstall: + @$(call targetinfo) + @$(call touch) + +# vim: syntax=make -- 2.30.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de