From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 24 Jan 2022 13:10:54 +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 1nByBS-00BsxB-5j for lore@lore.pengutronix.de; Mon, 24 Jan 2022 13:10:54 +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 1nByBQ-0007qq-M2; Mon, 24 Jan 2022 13:10:52 +0100 Received: from mail-eopbgr140081.outbound.protection.outlook.com ([40.107.14.81] helo=EUR01-VE1-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 1nByAa-0007IU-Q1; Mon, 24 Jan 2022 13:10:01 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IOxNisl1ms9hkBeY3uXc2DSVqIRxiIogZ16pEq6gfqneDcDqtkVzxoPNpD1Fs8Um94vWdcmbyZw9e4US0rsFU190FZCQv1fwb9rFrtLf/n4BNMezviKQR0GpUN/+0SwQSxgOt+iS+9T5vzXVi0ZMod6elBwkaR2UP93qSKjVWSrDfBXW801vkLUtI+mERtw/u+vmQFpNE+zknR9XuOvIr/55tjgaAhw6/mZI+O4R4Ot9u018QUuqW8v+PSXda6zxyCZcvtTO7keOlPYl3KCeXxkZBXXI9cv/tgembTVBtepPiXJ6VjT4RjwKWiOPqPiNGSuqEOJgeRCRUxtr1fJHyg== 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=T5q4Mfl0QI+hkPRU/KQragyxTBco/vNjvnp0pq2nK5cGu+CvI84dYANk7K+KMaHnfKI3IVAyqYx4E3KFeWNXu8V6cppTyrOLuffS1XN9JUlK3lPN7BD6AG1qBle82tfVqQhu73i870UyP8aEJ6yPvkOByxBK4+7DtJXSFu5sy8YLXLv+RrTfXJwLsT+cjjMT36kNklETWyYQSZ3BliV2M4OszNXBMuehEL/KXUr7sRWBQAzO/XZZYkYxj2VDmiMFa8ZNcza4DDgyyQLL/jMzOSvkmjpc5FbrAAku7d/eY5nfZ4bc+pru9nkzwcwDEVHHpgK6UR6KB4CqHAmVxKa7Vg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=ijTLfPTh6LjVTOhRKx+CIhb3qOON1o0rrfDVwsdNPXegvZa8mgrQam+em4qpjedJiRvyV/AFMQm6norDSNNKVTCWk3lPaEA7JnROMJqApTPLPIfdlz/3IC44CddENofXc8sFwT0RbVingfxzoUK4AKT26UfbsK5UZamJiFg7UO8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) by AS8PR08MB6962.eurprd08.prod.outlook.com (2603:10a6:20b:347::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.10; Mon, 24 Jan 2022 12:09:59 +0000 Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::e14f:197:5001:4c56]) by HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::e14f:197:5001:4c56%3]) with mapi id 15.20.4909.017; Mon, 24 Jan 2022 12:09:59 +0000 From: Michael Riesch To: ptxdist@pengutronix.de Date: Mon, 24 Jan 2022 13:09:39 +0100 Message-Id: <20220124120942.557161-3-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220124120942.557161-1-michael.riesch@wolfvision.net> References: <20220124120942.557161-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZR0P278CA0177.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:45::11) To HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d2f985a6-6cf1-4149-3a70-08d9df32717e X-MS-TrafficTypeDiagnostic: AS8PR08MB6962: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: oh0aYJM0dtonJD8MywCX9MVMTM8Aq3OJKzXoB63LOgXZK67eymdJ8D3pj+FuCwCFCVGnzFt5WOOsFn+cGLgk87Zp0zUIBG7o5aXWAbx9/Cc8HMOc0MUjy16e/PbPVfJyfmMzNgQWDzl25N2oGALfcF4TIBKkNJkQ0/EVkRxyb8xCmRJVASL9QcKleWbnWCjiIU0kkpRHd/ovg+Yuq15QtrGRP+qdN1ilKErImXPBb2dYR8wsN4cq+NfCSsxYFR0WEO3O5xGuOR6p7qTupa4/EEAar+4am/DdkMlWkPEZjNhst58ejRMnDxXD0oebJNciperNbVFLc9LS1Sw23fy8i8s/QZnXN1jQNTjm+IpAaAneE/uvlxQiyRq66RE/+WhPosrXjV50DkPFggU4f7WmgngDbmS6mXvHL6jpa2GxXGC7/4yaguXj7e3lwRqT14/fbyLogObc+KYe6E9vN9BvkAQwCOJNwXHHyy3GXGH+oExEapZvm01PH4J5hSI4Xm+ALaRuk5M/idlfmjXHtrVG8bvQoR7iL+EsDBwjRDoYhMXu2g/r2I82BMyaCkCLMioeqFli3Wb+4JxY7zVseJcnpqpyhkjephLzn3j6SoY3dC/bPVELBK8JKOAOKk3g4iXQaPitbHOVmFHSgAYvWJ1+ukzSuNuXkPDDQ+BSlqk4Qq0fop7anhHxnDCwkcBRfVheLO3idiDn/yrMFvbFZm14IiVtgZNo8bCqJ8FMZi3G8K0= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0802MB2426.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(44832011)(66476007)(8936002)(316002)(6666004)(6916009)(5660300002)(966005)(6506007)(8676002)(66556008)(83380400001)(107886003)(2906002)(1076003)(36756003)(4326008)(52116002)(508600001)(66946007)(2616005)(6486002)(6512007)(38100700002)(86362001)(186003)(450100002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?29htF9soFAbF5ks8UhGeq7usB6+NQnUUzK8LRhuQC/Rkhbf2pp5na/duBNSm?= =?us-ascii?Q?OarrVqfnLBvwrRxLAuJEA4QX6CN684r+YhmebHsnc1oIwndJoY7Fh0hLM0A5?= =?us-ascii?Q?oYXbpYWspdqK7mQIlEpYg9vbZdhE20xkZzaDR2mNvvwoV2vvcsXR2cHF/49L?= =?us-ascii?Q?HsbxZofRuE2DMuQYR1PjFMWDIadVPC1DEYapwzqMaYmHrsO/sOxZxQ6AoS3s?= =?us-ascii?Q?a4XE+CCWlo+4pfTgRB6rbWkxWswxd9+AMjtcIRsM2slD6coe3wrMKh3tCCFK?= =?us-ascii?Q?Gx9p/B4oNyEj3qUJCRK/csfm8LoCs0QarBre3RsuX4MeM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jIHZNPm67BLJCsm5IKL7nWTvoJ6uV7zhRKY34j3sI03?= =?us-ascii?Q?pBCwIHCu0kNBn2sMoW6dx4Aj09KB5VreEsw5dqrB3GhZLAgm3W1ltZGjberV?= =?us-ascii?Q?bhHGVP9JwmFbM7dfojjU93sXt5X/d0yft7uSGIplveP5nFwZDIsK7lrq4ZCj?= =?us-ascii?Q?J2FVvSrVeTP/n8maKSdgOqhCpzAN8TQFW+W47vtPCv0g0dRnYDJzaPNxPu3I?= =?us-ascii?Q?w92BoPsdL5BjRs55ow9gvQjtJ2WW23Z9qThV2Vq95PWzsIXW1zY6R/CuNyDR?= =?us-ascii?Q?JTj3DUJpW/sjup3+PriUaDTxite+ZkEsrDRys3bvm1qSEifCpY9b9aVcdJPA?= =?us-ascii?Q?oxBmar8fQgKVH+ZSELJbSigUf2TFf5LJAaZCThXzyhQLR/Xsgxed4onlFLgc?= =?us-ascii?Q?SFoTNbXJTPoElxvuDky4FmJvvFunIJJtqN5p90wMO3ZqknJ4WROlawdKWar7?= =?us-ascii?Q?D4k3r8e8FUXUQ6vDtw9yqPtIv5yPcNaEBtNagwojTSReeMl1eZpXXhUEF4/U?= =?us-ascii?Q?ZP48d7xIdw=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: d2f985a6-6cf1-4149-3a70-08d9df32717e X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2022 12:09:59.6277 (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: /vJ1zkxx8uI+DUT/klBVFGWwZhpB0LyRn1OezolO3vZbcoj93yYNUINgyRvaYWEtqxh3WJ6xFs4mI+VuxWIm3gl+x7E5okupBiXV8d4lXmQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6962 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.3 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 v5 2/5] 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