From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 06 Dec 2021 08:55:45 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mu8qf-0006OR-J6 for lore@lore.pengutronix.de; Mon, 06 Dec 2021 08:55:45 +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 1mu8qf-0001Vw-AD; Mon, 06 Dec 2021 08:55:45 +0100 Received: from mail-am6eur05on2050.outbound.protection.outlook.com ([40.107.22.50] 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 1mu8pl-0000wl-68; Mon, 06 Dec 2021 08:54:49 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ak/WSwS8GgUEBEN5Nofq4W9tGA6NEf/26U8Zvz+Blsj6sq1GoOj3s1wzPOi/wB49OgvSUKFClaeenvInKChHbHTnzr39yKqw4VNZenS72OiNKkbPqjQo7QS/fdS8ow3qXu4qSz/VtJJTFu6tFk/jcov3zVIUi+HYsr8+Y9fim5pBmC527hC+UVgX+ZGTE4Q3mmH+Zv+mz3YgR/X+M+pP9lYBaJyH9nWdU9dOB+qCfaR3X1cBR2zINtUzXRlfC1c5Wbs4d5DbiDHeKkZ+LGAoid155ghiQJp1jeWTquXjWVrTu/ABSJfEJGXOZbGfg+BB5kTrXYCx9LxGpFpfuRtleA== 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=YE7yS3hx6fGzX/m0USFmPVCo27/rpmE51zWU6fLYhkq0zVVWJ9NxSGJdVhXILYLwwBJYNebNv7xBkpv3GrOHifyZmmsczcQdTC8G42SovI2o2a0KX3oOBs9sqW3jH3Nyn1SC19xkDh36jZQNzY9aBqTaay33FN7JCqYz+OgmsClYRztIv/XbfVGFTcaAxV8jVmiMlTe7bGS/KsHQNVEzEgmcfN/Bnms5uZs4OU8hf2UJ7FicU0B9KbNW0dK193xhD8290k4eYppBlCVceUIhH8QXG4TH9eI8OXtJj89gtKRRspPjKjb7C/gkjCb13QQyTDSNVfvlUMehcm2poLkjdQ== 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=QkBz/5y750Tz5O0Z3L9WVL9lwxFi346s/buZdjAhAZ7rxrIePBgEXJSPdiqH1Hz8AvaUp8CziX2O4y4hyTOwW59mFG41Llu8Xd9hyaxjqt8HOo3s0ORVex9fy/dx0gxp9FrBeut63aTLLeU42mGY7L5yHyOss5DOmYnRCEr5UJ4= 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 DB6PR0801MB2088.eurprd08.prod.outlook.com (2603:10a6:4:78::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.21; Mon, 6 Dec 2021 07:54:47 +0000 Received: from DBBPR08MB4523.eurprd08.prod.outlook.com ([fe80::81d1:d448:4016:1956]) by DBBPR08MB4523.eurprd08.prod.outlook.com ([fe80::81d1:d448:4016:1956%3]) with mapi id 15.20.4734.028; Mon, 6 Dec 2021 07:54:47 +0000 From: Michael Riesch To: ptxdist@pengutronix.de Date: Mon, 6 Dec 2021 08:54:30 +0100 Message-Id: <20211206075431.1238025-3-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211206075431.1238025-1-michael.riesch@wolfvision.net> References: <20211206075431.1238025-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZR0P278CA0014.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:16::24) 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 ZR0P278CA0014.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:16::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.20 via Frontend Transport; Mon, 6 Dec 2021 07:54:47 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e08c0615-dbb9-4deb-efb8-08d9b88dac6c X-MS-TrafficTypeDiagnostic: DB6PR0801MB2088: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: KpyL1WfxzPtjr7xrhRfMA9DOwbGqWoQ9Nhlu5eDneDxO7SqQ+TLgexRKYdQanUcBU6tiIWJYCEW0HKRyoXrhDuPOOfA82FAYPgnYG9GTgHNSjM5c9SFhIsdiq/tIGudCIR8UMuMGtXaIea/jicEaXAe2N+Z4XKxnVutGxE3Jowqz3P6O+KThQBbHvBKPJAaQatOcrJpR+ijk2lAClcqhf5Qf7InI12aEOUD6yMsWjMheixqddxUL/GuI4PowtCqybu5sCLou1q4++CTAW9cFtMdlD9uMdAs5reJMZkFB2x/+kkYfH8UyRSOkKSnXbAp75TXxJ4RZglTrUr2DZeKrtRQy6GF/nIvHc5dJpenMdIUBiRGDuBQ6s03ElCLY01wj1FdqvY14hkmz/T0D175Os9YS5DIpQb7eN7YX6KcODK8p6f7VtPmDFBi9XmFaloc5KZhbzLWBMUNqPlOq3ZmN9wOC6o8JWHXoijSC1iVE7ckYO5TKdG7e76T1H6q0wbJS9SoGu2BlN//f30qV/dl9jckZjiGErdHyFx8Z8iFI6FAPVyrteoGG5clvVPEj7SVgqlGrLlDQYs7y9/Nr0BLszXzC4tbb4fhDh67LLfjdUMrpVQgtVr+iJYj/8hzeUwuXtmjDSEn/u543HERMT9wmHlNReTJ96S4cXe4x7M4RElnKgVEFeD8KRU2UqNPyT8q9egt6o6Obzur1OFN2+cYPeOkIWTaGZdQamfjD5berUeE= 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)(346002)(376002)(136003)(396003)(366004)(39840400004)(6512007)(450100002)(966005)(66946007)(66476007)(508600001)(66556008)(1076003)(2906002)(2616005)(316002)(186003)(107886003)(6666004)(44832011)(83380400001)(6486002)(8936002)(5660300002)(86362001)(4326008)(52116002)(38100700002)(36756003)(6506007)(6916009)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?srAdx3to12IuiwK3EW+hkvNEHO1I0Nh/XLvtqi5hKduM5264EPDHbqbD3ZvS?= =?us-ascii?Q?/k7PnkzZO5jm0mhwAV66bwxQWI0rV81iflRhLVtD6Gneb77mdANNEub0PTNu?= =?us-ascii?Q?sTDoCb0m2Q5Vx2Zt/QKT5zBfNkP/cT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?Q?TD75SgayQ4FNIzrdGY+7JYO7ivpc9NA4QY/62xk1vTiGfhe5mX+DTFy2tIkX?= =?us-ascii?Q?qBccUzRloYslTH8kxyxFMia4FNbNc8YOuhRwnTBkAs3TyjvGTtfKBOD+q1Q3?= =?us-ascii?Q?I955aNM85EfjiXkX8PrZgkKB0cGipTf04Rn5tU8R2569KYX013bLNGzxU/5G?= =?us-ascii?Q?KiqY1VAPBv4r4sVuDB6f/4nqEIEp06LF+BWt7Uu+q56u+QEAQf6+/Bn2kJl8?= =?us-ascii?Q?ZA9BScXfqU5onB4Pv453JgsIC4eV/h8Bg5v8tkA8kLsQ8F3HdRfR52+Lssac?= =?us-ascii?Q?eCrefNlIvguMpHCwrVeaX/LNGlQXY/WPYuHWbdaNOZtLglEtidN5dl/P2IPf?= =?us-ascii?Q?9rzTfSWyGby+I6REDc2T8of+64vgtNdJLxqZUcC2embE50W4hgBpM5+G4hUM?= =?us-ascii?Q?qYUsQuilOcbzwhTIUNQaQILU2ox80sRQRERAIijXxl7w1bAIN96lRnLwM/IU?= =?us-ascii?Q?s4tAPnpr+66zsUSrC97fg/+EaqZg6jaVu+JjdGVCEwgIPBEO24co/nQsYLuj?= =?us-ascii?Q?4XA6kH1Yd6aNLHjUYjvTP1hOSS/okszN9O6Z0wndQHs+qtFVQSp7aKc0r0QS?= =?us-ascii?Q?WePOi3Eu67b1/Ta0pSC8gfEdJYzfxS3ipfKt6he1XWuTsGCxgSZPBLBizVUR?= =?us-ascii?Q?pnjaQiry3xDzj8HmPSpvGNTa9AB30JekFB8QzJsLwa84QFZNS6Qrq8x13brz?= =?us-ascii?Q?quK5ETVFOg=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: e08c0615-dbb9-4deb-efb8-08d9b88dac6c X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2021 07:54:47.3635 (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: mGlty2chTlRTC+O3+Eu/kJ+Oo017BGrDuate0TNCWjUape1bRsryH0ZQw1BlYCXfWyqcyhewIml1OhD3XEOyFy62TT23RcXJLL1YaMfqmHw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB2088 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 v2 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