From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 03 Dec 2021 17:55:51 +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 1mtBqh-0006Ay-Kj for lore@lore.pengutronix.de; Fri, 03 Dec 2021 17:55: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 1mtBqg-0000WD-Uf; Fri, 03 Dec 2021 17:55:50 +0100 Received: from mail-am6eur05on20623.outbound.protection.outlook.com ([2a01:111:f400:7e1b::623] 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 1mtBpq-0008ML-Ey for ptxdist@pengutronix.de; Fri, 03 Dec 2021 17:54:59 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ii2W/6TqV5RYBitc8LuyS7fjgA/7SsGYjlNxO2Mq9CKQniwxZjC3WS9PgWJ8geTZMmAZO1eK1NgeicS3h5+GCl5/IvzSWsi0mqqe/x09MrJQgkUeMLBQN7o+Hj+8rJ+molCh00Q5cVmdojdsYX+egdI54NJ50wmcXxDDCqUOsZI741h37w9lDlCRbyqzaulbDiecMyAPRgQAnGV+ErsZL1xy/AXKEqE/XRBZ7maXV7/eume0B5kCSModbGO9itoeXpbwxu5WJwlKSG7+zIj/ccADKD77oIInnCh+HHobQKWtsXlAQmjO5BH4xdaXgNi5cHxGk9SHPmFtUVSwfK7d+w== 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=bOPB2CMUQFVSyV5VXfrMDr4WrCdahSqPl//lYBT+XCs=; b=FMC9G0FJlHDS3+wLTpcs2a8bYbrTQ0q/fS6+WetyOXiJIRMGgwGO/mH1wCKSs0+FCkAAgzKgI7I22zVya2VPlQdqSU9xVkNQU1x5LoSqrmsk1zodvhHO53dPha8uCVNzb714xHGO60tSkok5H5TdnpqZyHQp3LkAmp6jGom4g1qWrf5LnMs5YKBwwlXT0NUnrwgNztCVGvma0L00e7fNkD4JuS+Qe3vGfNdISEDOh+tunTvrxwzBdPoAoBRYrkJX67PMxER8sLPbznnre/K6fiSTT1/Va0dnXfGs3gNU+1U8VeDdiwOsdcWBCAl/iopR8F3z4qBw7jXPHXwFBbH7XA== 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=bOPB2CMUQFVSyV5VXfrMDr4WrCdahSqPl//lYBT+XCs=; b=vRb5A4gmfZ4KDJfaikw2kigOcoayKAm2iBj4q4rS9gHwHThpWRTpSil4r1uNgEbi1yFrkhgpxjURHEWov55lSddFA78xehNIa1c9lzHFcIGuI1EukyzbhMawpKCfwd0hEHznq5lpVcxLmeuyQiDk++GGPVR9rlRomwa5YCdvsfo= 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 DBAPR08MB5703.eurprd08.prod.outlook.com (2603:10a6:10:1ad::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.24; Fri, 3 Dec 2021 16:54:57 +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; Fri, 3 Dec 2021 16:54:58 +0000 From: Michael Riesch To: ptxdist@pengutronix.de Date: Fri, 3 Dec 2021 17:54:39 +0100 Message-Id: <20211203165440.1180588-3-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211203165440.1180588-1-michael.riesch@wolfvision.net> References: <20211203165440.1180588-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZRAP278CA0007.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:10::17) 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 ZRAP278CA0007.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:10::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.14 via Frontend Transport; Fri, 3 Dec 2021 16:54:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 80a4de69-4213-44c6-c084-08d9b67da360 X-MS-TrafficTypeDiagnostic: DBAPR08MB5703: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cWKo4m5FOum6ZST0mIeeYymw16sHP4aqY3/rGfFByHwSV7rM2ldkjhLDQvqg+NHHIs1AuLOk43QCwszzGk7yFfYfYIPE1nk41lEw6t7HYa/5i9Qvk2Kpdw+Wboiux+lc4FfDAgrYra5h0JP8j71dFKMWKIjDK3BYkgJBTN99Q4fhqrPNJygM6W4zkUpNbmwvEfJo3BJunmAgHcU7GSo51ZgZ25cXXW/t0+s9sE0cPCWMzW32LL8a65dSFReeQGN+J3MQB2ECkaw5NtZKdQYjmt1vyDoYC8bgp3C0ui3IxPyNmTV1k7/NQmT7Mb5H2haQD+gafQ3W309rt6QMbSFHReL1N/yh6MPEPBempMPaISpyKNwoNVifxLho2dYriNPXjIIjtzcv29uZZzgo6X185ttBlk7BcmbztmvFy51G6sjgzl0xfB2vydTVBKm80asfnAwFYFw8Z7g5/N10cFDjnjL7ABqRO7ak/V3vUQnxQPCpunJjwH+Dxu67jXuVSzRL/Cb0f1BWakNOQDFY+Bari1nWNRwPTwbePFm4ydVyc8ogCZfeePFLMqDeoQEbxqPlwILxlhPZ8plW3814QS/o1UTCMZGMjMmsCD5NH9k3AAgHe46IdT/3hjRlODUsX2S2HNXGMvf7N912fkuIl45UHQ== 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)(39840400004)(396003)(376002)(366004)(136003)(6486002)(36756003)(52116002)(5660300002)(44832011)(83380400001)(6666004)(66946007)(66476007)(38100700002)(66556008)(508600001)(8936002)(4326008)(6916009)(316002)(2616005)(6512007)(86362001)(107886003)(450100002)(6506007)(8676002)(1076003)(2906002)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?cINXHH2/Loe6bUHODdsr8VnfW1lKDFjCbXKYMlZYaZsqpSHpPzRCDsfj2ofT?= =?us-ascii?Q?O1qBslID6+ktSn+G4FmgUmFr1H80+6+2R8rMfrvq108NilVMenR2fK/6mQkf?= =?us-ascii?Q?0ojBbn+5Cksckj3/mwWPSC82Bq6n98CCmzYJb1hmqpIA3Jld2gLscUr+Os+4?= =?us-ascii?Q?jm2TpnnwLakRc9ANIa8qyWr/pVN2C4iQMBe2MWbSfr3Ku42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/rABfa7n4B9q39aBSKOoBu8a56S?= =?us-ascii?Q?AApbiwD1gnDRjz1jGPwu7ROPciJvXRflp8+Lg0wf3hrH8B+O3BULCh70iQvy?= =?us-ascii?Q?nSjYEJbKhngQVJlHTFQrAcSOVT4YFhpC0ZowcBE0qO6jCo78c0YFmOwpQWO2?= =?us-ascii?Q?P6RlyXqIMsiUKT8lA0ziWCl7zb1x2NyBcOeqHgH4Z2dKeYADFOF0sVwW4GTr?= =?us-ascii?Q?vnaKhRnpr/c7NDk7WyLmSaJvXA95RYJAIwwqQ9hndWVEQZppYXrd/H4zmaL5?= =?us-ascii?Q?G6cOF58fmPafw39aQmcUlI1z2RhYQbM9O3YHR0AxbXlzQiFxf9pPwrShSqY8?= =?us-ascii?Q?THaDRaQ+cnao6rw5AZe4E3CI/F6m2u6dngDmB/rIvzvNObpbV3yyvm1I8U85?= =?us-ascii?Q?ro031F6098I3MJlQ1FLV9qijeDU43H/JhmhgUds4ZwICX4jPDAmK8WfUWY2U?= =?us-ascii?Q?QMC/C8uNcCHj7kSOQO/ybqBSXZlc4zS2w7QpkT/n0TQEzoY6IjOJAe7/d0wq?= =?us-ascii?Q?qnQkIcmpp8UUq+bTaqtlr7+etODOIUTA+lMVqq3t/CZWtcgwwmEpXbpMIkxJ?= =?us-ascii?Q?gskODEcXrcHJMLyA8hL7HDHOmwrqJuiDIf56P57LaZWHgQkCUrvsxVmmZ5t/?= =?us-ascii?Q?aiaH9+Ol9A=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 80a4de69-4213-44c6-c084-08d9b67da360 X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2021 16:54:57.9119 (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: SgItyaVjvP4Cbf0IBTb0j4Ac6Sk6yc4e2dd0ek2bwhxIXKvE9SFTuMscbp+woNkjDa5Nx+m6ReFT4oP/1n3tdzK0h3H43SaszCe0TRb6egA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR08MB5703 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,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH 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: michael.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 from. 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 | 35 ++++++++++++++++ rules/firmware-rockchip.make | 75 ++++++++++++++++++++++++++++++++++ 2 files changed, 110 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..3b7c996bb --- /dev/null +++ b/platforms/firmware-rockchip.in @@ -0,0 +1,35 @@ +## 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. + +config FIRMWARE_ROCKCHIP_RK3568_SDRAM + bool + prompt "RK3568 SDRAM init" + help + Rockchip RK3568 SDRAM initialization binary. + +config FIRMWARE_ROCKCHIP_RK356x_BL31 + bool + prompt "RK356x BL31 binary" + help + Rockchip RK3566/RK3568 BL31 binary. + +config FIRMWARE_ROCKCHIP_RK356x_BL32 + bool + prompt "RK356x BL32 binary" + help + Rockchip RK3566/RK3568 BL32 binary. + +endif diff --git a/rules/firmware-rockchip.make b/rules/firmware-rockchip.make new file mode 100644 index 000000000..54a0b7493 --- /dev/null +++ b/rules/firmware-rockchip.make @@ -0,0 +1,75 @@ +# -*-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 := bfb7b9601b88784e263c2cc6baa5da9f +FIRMWARE_ROCKCHIP := firmware-rockchip-$(FIRMWARE_ROCKCHIP_VERSION) +FIRMWARE_ROCKCHIP_SUFFIX := tar.xz +FIRMWARE_ROCKCHIP_URL := \ + git://github.com/rockchip-linux/rkbin;tag=$(FIRMWARE_ROCKCHIP_VERSION) +FIRMWARE_ROCKCHIP_SOURCE := $(SRCDIR)/$(FIRMWARE_ROCKCHIP).$(FIRMWARE_ROCKCHIP_SUFFIX) +FIRMWARE_ROCKCHIP_DIR := $(BUILDDIR)/$(FIRMWARE_ROCKCHIP) +FIRMWARE_ROCKCHIP_LICENSE := unknown + +# ---------------------------------------------------------------------------- +# 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