From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 20 Dec 2021 13:10:04 +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 1mzHUS-00Cd5I-I3 for lore@lore.pengutronix.de; Mon, 20 Dec 2021 13:10:04 +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 1mzHUR-0004AA-N3; Mon, 20 Dec 2021 13:10:03 +0100 Received: from mail-eopbgr80050.outbound.protection.outlook.com ([40.107.8.50] helo=EUR04-VI1-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 1mzHTf-0003re-3U; Mon, 20 Dec 2021 13:09:17 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IFtxsNMvSdrnCyd0xMDpAyfoNXXtBxiRY/wswpd1DeeVeXhy06sgl6OvjjVK30l9uaIZSdyFhsBiT9Hlsl4UsFy1WTWxhY+y8onfFfJGJHfJTwhUD1Z3wYaVfumAJUZucvjWUQKpkyEcmrkCmRvKVNOihuvkuEbxSu4Jxs4fnPLxMA5eWBMJyqAwOMRg2u+MLCYfqTAaO4Y2qoVP2W1JenND0PpDsiix0oTPQORhj82+vb6Sbmxf5TDQnvNEuPXhJgEKgOTLH3Jmc7VVAg05Tifn5o1PENDKzGtzelrzGvihOxiPDcmveY8j2WcEcnZVKLwT8EM0D8TDkiRrhFBEFg== 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=boDVkU6zNIFiufhXVU8yf8ke7aCLmInnFemwxjktSFZrBSSQrpoiq9j3ep5fcce9ceQtq04pMcQJ05RGdDytd08ofTg3oELCvdaWWwGzdQ0X9AXMg3DFJy40/aMmuOe35y8+ostUbumccFBXpCRbDfEjmIu0OIfs0xyLWrgdCCnuKFY4JjUs9pzbX3g4d27eGWxn9HyNZGjUt+vp4J9IeurrW/m+Bw+o73+7oSll7hqyUN4g29srX3Wx3Hbsd3PdpbFQFQuyaNSkZA0lMY338HfQRSwGadiXQm5HW2KdyGnkX4pQdgg0UMco7XvZ7RLF5SBlNBMb1i+99ELBKxyJ/w== 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=lXA0JLQYQx5R2wJzxR1IGvX/gzs6G8lj+AhgE0PZKhhgDTosxULw1DzpgDBOuR6nwOyWWckYwDLBg+iNATejv0AUA4DCdp0XA+xgnaQbk44P6+OmregbuYEbOyJlUejN+ZDS83rtB8rFBNE/uqP5aekC61/HAjFb5x5ONHLsBKw= 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 DBBPR08MB5224.eurprd08.prod.outlook.com (2603:10a6:10:f1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.15; Mon, 20 Dec 2021 12:09:12 +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.4801.020; Mon, 20 Dec 2021 12:09:12 +0000 From: Michael Riesch To: ptxdist@pengutronix.de Date: Mon, 20 Dec 2021 13:08:55 +0100 Message-Id: <20211220120857.3672237-3-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211220120857.3672237-1-michael.riesch@wolfvision.net> References: <20211220120857.3672237-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZR0P278CA0022.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1c::9) To DBBPR08MB4523.eurprd08.prod.outlook.com (2603:10a6:10:c8::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ffca295d-bffe-48bc-21cc-08d9c3b18915 X-MS-TrafficTypeDiagnostic: DBBPR08MB5224: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: 6HKYDrcjBxzkFtcFIbAeiPZBK7FV6PpiB+YVjmXugNO3Adz0uqgtagXcN3e7FyYjFP3QRs0LpRITFKm8qlZQb8aoJTy2FFclOJ6tnhHXgb86TNqrzqcG6eIre4fUdj9ZWQV80sN+fR5p5g3/zD3Gjh1SbaD3fxSVOdy5yJ/iRbLyAczGFhoOqpLZFYFzAFKLXZXOJHtUJTSwCuqLyhVCUV4OOv5mamDDp4NJhGQnZyWUv9MMUzO7oH1A+roDoigSCXDT8F/piQ7ZSPR5Z2o/h9X2RWQf3uSvs/eZ2YFx3N7JmKQSESCO9pqODrFKgqFRkGnehLazf/1hsgSK2VY582Is7dUjdQthto3BOtH34Y9Bo35B8b526n6MuCJcJByDZZ7dl7AecZo5Wl2Sj1GNC4yzb/N/EVN3PZ8wlHG7IelKD5vBUb1c1SlXwnP2clDePEp3oBx9K+z2FYjnGg7rgMr0qVvr3TfX5ae+dRYi4TL9yAULFh3dvZD5ZGXOioxVDcQxJFaEHHjg0ZF80f1UXA64IgvCGXV8nyiyc0zTDB/sPopLHjHh0bjbgQV2jK9Qr8DAYcS/SXvLQT0uMWTqqhKqYUUrV7zfGAwlniRPSJcmWuhjS/PNSRtudx9kjIUQQU2WpFTabfr62G1xeQ8IpV/98HCdUCCy0mE/7iiVMpXCAGh7156vbkYaRGP4lWtZb86f22bx5Ay62CuThxmGrDusY7HmN4G1enPvzPD1g7k= 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)(39840400004)(376002)(136003)(346002)(366004)(396003)(8936002)(2616005)(83380400001)(966005)(52116002)(44832011)(6512007)(316002)(38100700002)(6666004)(508600001)(107886003)(2906002)(5660300002)(86362001)(6506007)(6486002)(8676002)(6916009)(66556008)(186003)(66476007)(36756003)(4326008)(1076003)(450100002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?8kt2Tt3dFQ9zmGgn5Q+tTEOApBt54ZEy5d+EH3D38AJH0GwLA5q8rT8lhKLn?= =?us-ascii?Q?crJYgfhamPKmzx4xjoBoxJkzlJQEUXeNreTQwfS9Pi90yjSHoVJiTwn8IxmE?= =?us-ascii?Q?k78s+IlzpzFctl3VA7qwOaWXrT764UsGhfBPLdpj9Rnb1DycuMzQDyprf5wx?= =?us-ascii?Q?vQbsLGRDOUbNMFyvnwsMUUh9hOZffrXpfQOXlKndnHx3q+LQ9NOVq6Jq2bqS?= =?us-ascii?Q?ZqdTt+oLB8u72AX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Agg?= =?us-ascii?Q?KAydH5cLT7jd33pg/PIq/W7p3BbWdbq+FrAby7ZKa7kEB+gCIPwuDET35QYl?= =?us-ascii?Q?HlUDrVtjzspXaOLf3dhXKkbPhugXVRsAU2auTFC3UhV+NehmCdF4NfUTKceJ?= =?us-ascii?Q?Ku2Doeu4I9FUOT6rAyuJrKWf3ZQ5DMHlsdGUfrJ1knXv6XS2JzOXYxoSZNAo?= =?us-ascii?Q?Tw/euMX0ZnwgSGHbro6J3ZFdGbzFJVUarqxY166kKQjFeyr9iHFNl0DPBSuh?= =?us-ascii?Q?nng1J/S6eadTTIYMWBmZu4otaX3bJw+opQJ1Xa+oNnAggP8UArU+ot8yGXUJ?= =?us-ascii?Q?Vp1Vyhgu9mtwJyV6EBCEuA9gR6jlj/dli2nziDtOG/5kecv8HeDepBdRKzx7?= =?us-ascii?Q?8wfB2ylQd3g/JPzBHhNlc87lw+1iekoOJLkHXaAgWVKk3/vEnCWCTIA+/tVa?= =?us-ascii?Q?iWr+uTmPsTvyFrb29jDpKWI4G/nLsSqd3bwAbRc90I7K2qeP60Ry9CUdpEOw?= =?us-ascii?Q?s1LBNhKRNLFp5C5lgJwMenxIeuKqUgT1H81WtIXt2cEWp9h7Ti5Ebu0JTYap?= =?us-ascii?Q?0j2lJ70JgCgkTz4pnMKSqbs74R9xCYjZ3gJF5vwdZm9wDPeq+c9t3LvswjhR?= =?us-ascii?Q?a9QupQ0oaA=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: ffca295d-bffe-48bc-21cc-08d9c3b18915 X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2021 12:09:12.7206 (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: ooQ87KAlpERUjnESJbnEJUUH0f1CVkrJcosFHBTmTBSB43J62ZnsnslXS8VX/XZ5vKHhEA8YtZiCGgaZEUB5tOgjMyDbj/VmtJjuYNwGDw8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB5224 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.4 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 v4 2/4] 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