From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by mx.groups.io with SMTP id smtpd.web09.6385.1573747679432280361 for ; Thu, 14 Nov 2019 08:07:59 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@akeo-ie.20150623.gappssmtp.com header.s=20150623 header.b=Z00qz/Uz; spf=none, err=permanent DNS error (domain: akeo.ie, ip: 209.85.221.65, mailfrom: pete@akeo.ie) Received: by mail-wr1-f65.google.com with SMTP id w9so7139258wrr.0 for ; Thu, 14 Nov 2019 08:07:59 -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=nrtNXCFYLCgzWLTzzC9/A/lBhtNIqxKe5w/rQAwsMUM=; b=Z00qz/Uzuj8VJLk+b8DN9yRK/VjD2pRtAYAK3yiCCwd+rbEK/NC6wRsnlG3j5+QTL3 +Ce6ebDSj64EQbWanctqaE7ONyeAZ9GTsjtvhwbjIKi8Oh6tZQQVIy3/U+zdQfZgSZ06 okMLxu7VTyhim1rSMBWkgQgVtFhdj1v78YEPCDuguxkSImujU4tcKhrkaDJkRORtgMQG VPWqKmztDtpa0wfF6+dNDG0+OPnIdypuSfG2r3vU+a2HVldIwd1aOizHh3lEj017Ctym MEv5gG/aFY3bzI2eORDwY1FouDvL+a+v6Oj5NVAaf8By8fwq5v9U0Ye1vjAEp38Fnpp3 3kPQ== 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=nrtNXCFYLCgzWLTzzC9/A/lBhtNIqxKe5w/rQAwsMUM=; b=LdyEb4v+lpKfb6gcWitLdj7xBebrFYRXBcOvcwL88iK0QHwKG2lnCoASFAHZppmH3L z8ft3ThpxX7F7roHJihS8IDX3vfHNytFUpygDYs8ACjZM2hjVvp/4ZiNwASlQcIyyy+W pVsbZ9NYqZGGjyoLuIrhBVGj1ChFmydRtCk+T7st/9iofBiSImjG9ZiQIRtxVqSc8bci kIPyE2NWGfbdplOR3Vgdp7SjbGhn6Yu514rqRjFk85uXYFaoRZllPOQ67ddLp2ensVO+ fIU7t7StWk8lZf40aR+YxqLsR+gfMeafwiY5/xkOmrAHYnk2T7dce3kPxJtiIubosgME 2myg== X-Gm-Message-State: APjAAAWgpa1l3TsUzFhYY4CcXbCo2AqLXCMlxU+fPA0foB0szaAxNNBJ qaWcslikjDJQwZXClcbC7/w9U9MD6Uk= X-Google-Smtp-Source: APXvYqydwPNw/BgsVUqrDniHlgxCRR+AVyPqOGoVFZJj3ROYDxQ/tR+8YUJ5FXoA8oG6gj5xB8UU8g== X-Received: by 2002:a5d:4403:: with SMTP id z3mr8503828wrq.44.1573747676692; Thu, 14 Nov 2019 08:07:56 -0800 (PST) Return-Path: Received: from localhost.localdomain ([84.203.67.47]) by smtp.gmail.com with ESMTPSA id a16sm6793088wmd.11.2019.11.14.08.07.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Nov 2019 08:07:56 -0800 (PST) From: "Pete Batard" To: devel@edk2.groups.io Cc: ard.biesheuvel@linaro.org, leif.lindholm@linaro.org, philmd@redhat.com Subject: [edk2-platforms][PATCH 3/8] Silicon/Broadcom: Add Bcm2711 header Date: Thu, 14 Nov 2019 16:07:35 +0000 Message-Id: <20191114160740.10072-4-pete@akeo.ie> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20191114160740.10072-1-pete@akeo.ie> References: <20191114160740.10072-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 --- 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..389667714214 --- /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