From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by mx.groups.io with SMTP id smtpd.web11.19759.1574163511758959975 for ; Tue, 19 Nov 2019 03:38:32 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@akeo-ie.20150623.gappssmtp.com header.s=20150623 header.b=ehA64ePB; spf=none, err=permanent DNS error (domain: akeo.ie, ip: 209.85.221.68, mailfrom: pete@akeo.ie) Received: by mail-wr1-f68.google.com with SMTP id q15so10609771wrw.7 for ; Tue, 19 Nov 2019 03:38:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akeo-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kKzo+vVHjnQF/LOeKzvIiGzwkT+S7jxRZ3ynJPKX3eo=; b=ehA64ePB9rtj7Y15km/ezuUwN/GYA7n91EBPcHa6GFcJJYnD52uwjdCXt7zBDN0bSr AqZq9S2+K8Koss1b0eKo9M4C5yCOzr7z7FOdMCmGsI+qvuVeV/XWfm1LY5jVgMFFcii/ eN1sQ4AZoH91OxNbn4egJZbFmb5Gsb3CHafZs48PQ67G+I9/Heq8Samnkkr+fAq3eC3x zLqLJJZVdDqGgFMp6O2TsywI4C+9v5D3OnZQapGOCsHEYiuUsmlkAK0lx7XCpw0iThJa Al9j+I0bAUQVOHAW9W8HO6XkjFfbzoFaQe7BnRDDhxPyQEdFpDMzM3DKp892KTQaVKve apvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kKzo+vVHjnQF/LOeKzvIiGzwkT+S7jxRZ3ynJPKX3eo=; b=X/ELfuCA0WAcfG4TjyqGmF/Oxx4ipm584DH4lcatOPKG343LRh7cGwyIwOtVQ6NwP2 V4f2jnzgZ+Q+EtN5qFSKc3d/62f+24HCamM9yGdNDWkBPrA6T6rp4AW5GOrRPq/cde3G lutzqneRxctOV7FvUyx5aK3uHDlodh+kPIAMHmb0fqplIfMkeJCzjDlbNU/cKoXL+bYc jXVLCA5aH0FE3dSm0EWiH7LLN0BbFjtAZ7wL2kgJv1XVL82VGuChPa/E89/Ra8cv4tk/ cPBNei1yBfSa6m+qa2K6e0Zpf85Ce+TRNGq89kILLAPcsBYfMjfjZ33tDuuUiBFpKkdJ fXsg== X-Gm-Message-State: APjAAAXLtQBOlqhEqSMTRo6yWIavW+Xrdhu+6FbkbOjZgcGtAWPuXihW irKSDsXDmLLu6WXNYNTjToshc8Mp8Zs= X-Google-Smtp-Source: APXvYqwcw1U0Yb8yS7zCrGvucVLTQOGIXLU98+gGOpgBbvdtEoBlj6+3EbQQLutSrH9A5MTnCWypLw== X-Received: by 2002:adf:f18c:: with SMTP id h12mr17385866wro.122.1574163509980; Tue, 19 Nov 2019 03:38:29 -0800 (PST) Return-Path: Received: from localhost.localdomain ([84.203.67.47]) by smtp.gmail.com with ESMTPSA id j66sm2608273wma.19.2019.11.19.03.38.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Nov 2019 03:38:29 -0800 (PST) From: "Pete Batard" To: devel@edk2.groups.io Cc: ard.biesheuvel@linaro.org, leif.lindholm@linaro.org, philmd@redhat.com, samer.el-haj-mahmoud@arm.com Subject: [edk2-platforms][PATCH v2 5/7] Silicon/Broadcom: Add Bcm2711 header Date: Tue, 19 Nov 2019 11:38:07 +0000 Message-Id: <20191119113809.2472-6-pete@akeo.ie> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20191119113809.2472-1-pete@akeo.ie> References: <20191119113809.2472-1-pete@akeo.ie> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Bcm2711 is the SoC used by the Raspberry Pi 4. For the most part it is backward compatible with the Bcm283x SoC used by older models but some new Bcm2711 registers have been introduced such as the ones for PCIe. We therefore introduce a new Bcm27xx module, which contains only the base address for the new registers for now (set from a PCD as is the case for Bcm283x) but which should get populated further as we add support for the Raspberry Pi 4. Signed-off-by: Pete Batard Reviewed-by: Leif Lindholm --- Silicon/Broadcom/Bcm27xx/Bcm27xx.dec | 22 ++++++++++++++++++++ Silicon/Broadcom/Bcm27xx/Include/IndustryStandard/Bcm2711.h | 15 +++++++++++++ 2 files changed, 37 insertions(+) diff --git a/Silicon/Broadcom/Bcm27xx/Bcm27xx.dec b/Silicon/Broadcom/Bcm27xx/Bcm27xx.dec new file mode 100644 index 000000000000..815302f6d209 --- /dev/null +++ b/Silicon/Broadcom/Bcm27xx/Bcm27xx.dec @@ -0,0 +1,22 @@ +## @file +# +# Copyright (c) 2019, Pete Batard +# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + DEC_SPECIFICATION = 0x0001001A + PACKAGE_NAME = Bcm27xxPkg + PACKAGE_GUID = D4B585C5-EBCA-4779-B974-05A3CF2F10C4 + PACKAGE_VERSION = 1.0 + +[Includes] + Include + +[Guids] + gBcm27xxTokenSpaceGuid = {0x44045e56, 0x7056, 0x4be6, {0x88, 0xc0, 0x49, 0x0c, 0x67, 0x90, 0x2f, 0xba}} + +[PcdsFixedAtBuild.common] + gBcm27xxTokenSpaceGuid.PcdBcm27xxRegistersAddress|0x0|UINT32|0x00000001 diff --git a/Silicon/Broadcom/Bcm27xx/Include/IndustryStandard/Bcm2711.h b/Silicon/Broadcom/Bcm27xx/Include/IndustryStandard/Bcm2711.h new file mode 100644 index 000000000000..356458024e84 --- /dev/null +++ b/Silicon/Broadcom/Bcm27xx/Include/IndustryStandard/Bcm2711.h @@ -0,0 +1,15 @@ +/** @file + * + * Copyright (c) 2019, Pete Batard . + * + * SPDX-License-Identifier: BSD-2-Clause-Patent + * + **/ + +#ifndef BCM2711_H__ +#define BCM2711_H__ + +#define BCM2711_SOC_REGISTERS (FixedPcdGet64 (PcdBcm27xxRegistersAddress)) +#define BCM2711_SOC_REGISTER_LENGTH 0x02000000 + +#endif /* BCM2711_H__ */ -- 2.21.0.windows.1