From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sat, 29 Jan 2022 08:04:42 +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 1nDhms-00GuA2-Ml for lore@lore.pengutronix.de; Sat, 29 Jan 2022 08:04:42 +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 1nDhmr-0006vF-Lc; Sat, 29 Jan 2022 08:04:41 +0100 Received: from mail-vi1eur05on2083.outbound.protection.outlook.com ([40.107.21.83] helo=EUR05-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 1nDhlz-0006fh-90; Sat, 29 Jan 2022 08:03:47 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Uqqc5n2vbELtS+LbW+6WJLxnNc+g+PBnaej/+JXnwRBPdq4CCOk34C0XtuhZmaAlM5HWHvafvtunxLGAVkpxbl0ZCbKy0GU418Cqtc1ueakaNOb5EtSro9uY0+3xKWLgKVS7TBye5OzWKSvQvT2q3Ffck5oId5YRBGhCf1/9J0YgP/FGmaGhx32ITOwGiAq80F7IbyU/zYnzlqsqEEc+YsmUbB6t0G+pX0ifM0kdfELKEUrDAXt0KQyQICrcb1vQN1fjpgt3woeRfzlsFiQ2Iq0vjbbfivSRwuHqSifhvnqtvLeM2NEAcGHjCjBFUJLi1rizkJYSIoQitoxI7dQWJA== 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=a+5nhoHm+xJSfLrwV9hpcUjx0myrXEXCW74pJ3wV0QD3G/2bMy6xsNs5DAtpbHtZ0eUeZ8KhzGEyVy3LBndmgQR6jptTn3sBKkxju+JV7R+bEp5QrimQiX7ut0PyzNZHkHAvgdaZauabKf9l8wcr0viPQyyuqGTTetYYiIhwDWOZ0ZWsJEE1LhxpFxuMI8NRLtSBameeabwrAQnbZr3hCje38nh138tTSthYk/4X0sChAj2+14AUq1g4Bm/ghwijiMw4QUb4FLa9+lH1ItkhAyf9U5mmNDk02YmL82zNZZv5gHChEoA2EEkQc+koNSWkv9wTKcdWk38x8ui/rknewg== 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=b1A0A+Bkg3+k8fVwwUf8px5bWuzkJQFJ6AxMNbh92oGBR9dJWU/R5bcU8ktKaGPA6S4QthyfpAwqR34rpt2jzOv9E3e0KRJPmo/SJ43KWdN7Tljw0sZct+5pZdyDkHw8eHFotFpssD1GkxbNnuxKQDIxBRZ33WO8asqRFl67pkI= 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 VI1PR08MB3837.eurprd08.prod.outlook.com (2603:10a6:803:ba::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.17; Sat, 29 Jan 2022 07:03:44 +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.4930.020; Sat, 29 Jan 2022 07:03:44 +0000 From: Michael Riesch To: ptxdist@pengutronix.de Date: Sat, 29 Jan 2022 08:03:27 +0100 Message-Id: <20220129070330.2601433-3-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220129070330.2601433-1-michael.riesch@wolfvision.net> References: <20220129070330.2601433-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZR0P278CA0192.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::16) 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: 23dbbffb-8086-4ec2-6fa0-08d9e2f57cc6 X-MS-TrafficTypeDiagnostic: VI1PR08MB3837: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: RS2+2nYupwO7XvgK9sjrdIt4FmOoB81xisFGujX3eF/H1U2jr2K/BlCwlweF1R+VsFWysltuVejEmqmkvHS69bRxUh1G9Cn0hcEyYjSrB01NnD8H0nBjCID2yKqZU8eU6elk74mqMW0nYNT2xLRpLgL9xiPlIbNZdGsnZobbjzDgRe+3qG9uY0JWwiIK/KmlufkFUR9NAYkSgIFR8MJrFTNnfszhgjNS82A2cRKtTSiZjQCFpFLDHCOa3/d0tRpyG0kjqlWKRrwJWCMvy5Q3Vem6jhW+vrHB13pbb8+HPEDTdt5S7cVqcSpOmfla325FymcuDKbToObSr2RXdt4k1Q7Cv1qQfVgutNce8RG+Rh2XXMSBArlUsfXyGqdlsMbtfe+jE6Gzt+x+dfnXutDL1kWQc1Qfee+gQEiuHebAINfFY9AtSmsUf8ELCSLgZE0PbGvHuhOX05P7ZbgWk+H6ZL6YncKDtsy4tn13z4zo2/R/ySCISPDYNEd0zxLdERWofUgUh2W3i9SaamEVgEtog0hEupOy+1SQQhOGEx04rcoWbSx/CQW55UOSPGlcXhY/JI6Hc6Y0AiEn9wFji4++YotfovEcHm8mde5Y3St5eEvEtiPg5e/r/Q4I6D5Gqkk/hNg5PF/u+24+wsBfUo2AGlaa/yCVI6uP7Qh/86UzP2JxVBVnOYT/ZJNhOaauVOCVtQ8cscgKZbQFd0EB+arcp/RoKz0NVPxCG6Mwkb86lYY= 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:(13230001)(4636009)(366004)(36756003)(186003)(2616005)(6506007)(107886003)(52116002)(6512007)(6666004)(83380400001)(508600001)(2906002)(316002)(6916009)(1076003)(44832011)(8936002)(8676002)(4326008)(66556008)(66476007)(66946007)(966005)(86362001)(6486002)(5660300002)(450100002)(38100700002)(20210929001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?O7fs7ZElMHZNDOz61A71mrYE6LHq9C7yijtPcCthl18xWT2D4jN1H/VcZm+p?= =?us-ascii?Q?vzkYLcbyUeCtmJTccyhGtDWoG20irLs+KD7OiSmA/gxP0SgQmiIch3cbQClo?= =?us-ascii?Q?fAde1h/b5auYp7vpvvYOur35Bwf3WHvJPhRVjsRgYhAWLeZcLuzSPzZ0DAQo?= =?us-ascii?Q?Qk22D3D1lZnHpS7qFFV7Wei9T7YfpXI9D7+//cnNOvPEE3TnGyxdTjD3SA8n?= =?us-ascii?Q?LBGRnI1w7/ZMmDWll61QJ+uCkXUD5nHGe4GyiaJB1O4JOYCGQhhLeKN8AAZ1?= =?us-ascii?Q?sLDF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F4nBA1oUf0I?= =?us-ascii?Q?akaf3hX1agGIkeOO+gtBMZGUsVAKe+zW0x3MeWz1r4607CsZj7FGSQV4Qejd?= =?us-ascii?Q?VeU/5AFdQctt0Kv6dtzr8bSs7D3rlg7rWzdd1VvjjlcHhx6GWVlit/xNjfEN?= =?us-ascii?Q?dR3OG3ipibRETHBlwkgPIq8MrbTbQGAUhUaRwSAkYdBhsJRaTSdtcpDJvJRP?= =?us-ascii?Q?GkS3RrWedBpNWNkoxLrSDGYT0Lgj+Sff+Y4fFfcpmLdS+4WgLTFdnQl9APwU?= =?us-ascii?Q?B++GKcBGUy5apoyK3YeC6s1zOeDbRjf2CEtaFylVKUrKU/yKiKkjWW1Sbyk6?= =?us-ascii?Q?8oWb/MSzGWqql8L2SchBiT7n3vXyW+rJnQPc6Sy6D7B5AYSOhxECvIBBQH9y?= =?us-ascii?Q?wfuVdeG+uqtD2HnNkPBXg/01KJeD4ohXnoUp1H+jiwJlttyHzSwiFobQMRwh?= =?us-ascii?Q?WeEIwZfJo982JPwFwR8GsTBld1W30GLwaLBH/U42geNtGN/YNDWP9ko2tane?= =?us-ascii?Q?GTj1+soJLZlk9TtenUHA9tUXHQVrU7E1zzLbDDEHAg5FSXJRWtfo+Sj9lR8U?= =?us-ascii?Q?NbBpsy9N4pwteoWBnrKN1V6IAChAhjc=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 23dbbffb-8086-4ec2-6fa0-08d9e2f57cc6 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2022 07:03:43.9130 (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: 93qkWIlBp8BCwZjtjFmChYZO4FDJ7Gm+KWwgnjiHK4ueN3voLO/DEIrVO7hihaAppJXYeVc9T3KoljDzPSHBMkHOUpZYweQuXyoyK1j68p4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3837 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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH v6 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