From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a01:111:f400:fe49::725; helo=nam03-dm3-obe.outbound.protection.outlook.com; envelope-from=christopher.co@microsoft.com; receiver=edk2-devel@lists.01.org Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0725.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe49::725]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D765A2098EAB8 for ; Thu, 19 Jul 2018 23:33:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OC3fq1IDdj5h75yamZA7DOlQqppkBzSijYnTqE8rNrs=; b=VQhL85cJtVMWuPu9xEe9M+QxFzV39lp0rjA1+leGORDFgooPPP9/zelg260r34QIPpj02z1vHF1d/bJ5cxkyVwxTCHvfWzFtxo5V76SXChgdHauQH/yWDwzjNuH+Vew3duvTLOamq5ZSZYo2re7AVmOZ1bfovY2S8rg2RB0DENo= Received: from SN6PR2101MB1136.namprd21.prod.outlook.com (52.132.114.25) by SN6PR2101MB1117.namprd21.prod.outlook.com (52.132.115.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.1; Fri, 20 Jul 2018 06:33:47 +0000 Received: from SN6PR2101MB1136.namprd21.prod.outlook.com ([fe80::78f8:214:33a:3c4]) by SN6PR2101MB1136.namprd21.prod.outlook.com ([fe80::78f8:214:33a:3c4%5]) with mapi id 15.20.0995.008; Fri, 20 Jul 2018 06:33:47 +0000 From: Chris Co To: "edk2-devel@lists.01.org" CC: Ard Biesheuvel , Leif Lindholm , Michael D Kinney Thread-Topic: [PATCH edk2-platforms 03/13] Silicon/NXP: Add iMX6Pkg dec Thread-Index: AQHUH/OcmJjFFH/KGE2PTqEREgv9+w== Date: Fri, 20 Jul 2018 06:33:47 +0000 Message-ID: <20180720063328.26856-4-christopher.co@microsoft.com> References: <20180720063328.26856-1-christopher.co@microsoft.com> In-Reply-To: <20180720063328.26856-1-christopher.co@microsoft.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: CY4PR18CA0029.namprd18.prod.outlook.com (2603:10b6:903:9a::15) To SN6PR2101MB1136.namprd21.prod.outlook.com (2603:10b6:805:4::25) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2001:4898:80e8:a:75ac:13c7:7dde:5215] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; SN6PR2101MB1117; 6:OVsZ3rYeV+5a1kfEczVxeXb0uHDH+fupeNzJ93DNK1DE2CK+qAhGWK7zJpehZOyhBjplV5du6xvnLK02VHcpj2GTD8wbXxyxc93y0kdXlT9YN2r8k06RX3/1//KP1s2lgkhbUsSkAMdxUh9DMPWCFjYFHPV+Mb/uu/+RWB/sVZMi/I/zO5+/rWnIXUYaN0buqZ5GwTpDLaS2exha6J0b/da7etzKLqDHI3EETJN/MjPvJnfZ5w7IgUrwJuHhBhTB1/m6cjYr8UXPkbFFKmlqPf/Tl6YK9pHjxCLDF3JsYrYUH76ocL+5kDxmM/p94+Y6yfmay+SvedSF+ECdzKn0uf3l8cNc9mMWOjBBhmztRnKLjvYIB6sUAygd/7j8TvlVo8ocNcMeztpcSoViTEOISCHiFW75wH92bHR1UaxoUm3vbsjEHRO6wRz20D5udMq+sKg34I7hmsEUh2lGJnLy+A==; 5:kJBoIF5cAVnLigp1jCf60UqQjVav4rofk0Tc+iBT9qJri2nTO3dszXUAP3dw30pJ6TZEsno8khjlU5UCJGjdM7a3UFz24/T3hs9Jal6Uuz5oyggMRSNayMCNnmb9oHt8rDe5pnwel9feDATTAQyuJqYiKVuyuy/1xDP/9OUtKDU=; 7:O8sSDGh7VmoVNc01H5BuRWmdSJy9GGLDoMARYuNbs3eT1IU2uZjbY3Xkxm/KOANalkF5ZouQYHFjqv3v8Rk4dnFLx/dqovh7AUbj74Q0ZxQs1BnxLsnAwltaxYamPnKHmd7bVj2O4UHjBjojxd6MMox31ZPPP9M6xFZRSF+alutOnA3dqT7F9PKa1AhLK0oPTsRCOcdJX+eFUq25TSqx3S+LkdU4viJiznrvPks+kNrBOYWcZhTGWPn8a5PTXXY/ x-ms-office365-filtering-correlation-id: 8f902a86-af51-45c6-76d1-08d5ee0abf0c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600067)(711020)(4618075)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7193020); SRVR:SN6PR2101MB1117; x-ms-traffictypediagnostic: SN6PR2101MB1117: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Christopher.Co@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231311)(944501410)(52105095)(2018427008)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:SN6PR2101MB1117; BCL:0; PCL:0; RULEID:; SRVR:SN6PR2101MB1117; x-forefront-prvs: 073966E86B x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(1496009)(396003)(39860400002)(366004)(346002)(376002)(136003)(199004)(189003)(52116002)(8676002)(81156014)(105586002)(2616005)(446003)(53376002)(256004)(99286004)(46003)(11346002)(22452003)(106356001)(97736004)(114624004)(6306002)(6436002)(6506007)(386003)(72206003)(86612001)(6116002)(5660300001)(76176011)(25786009)(966005)(102836004)(1076002)(53936002)(81166006)(2900100001)(6512007)(478600001)(476003)(10290500003)(6916009)(16799955002)(186003)(2351001)(14454004)(5250100002)(36756003)(19627235002)(6486002)(54906003)(2501003)(10090500001)(86362001)(4326008)(575784001)(8936002)(5640700003)(68736007)(2906002)(305945005)(15188155005)(486006)(7736002)(316002)(32563001); DIR:OUT; SFP:1102; SCL:1; SRVR:SN6PR2101MB1117; H:SN6PR2101MB1136.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: HM4XYzqPrf/4M9wZScT2aNCJ3hOJFkFnesA49IsEo93Yxv3i5uzCJiZHJBxDD7zPrOFCX4qDn00adhn/VKWQAUHHtgBymdxdePwVCD95KLKof+J7rC9HJqszLRrBsK7n3ZQwB75YJrf7V1qANqfsQX1zfZft9VFQeIdTDzDsV1nTBjsj8kJCHzQLCcMvfA9yM5t3MG+9weDf+uHENeoVr7EUUvxqU997Ws+pG83T4KDxYLN0+WV+BLNLxS6gYv6u3Au41uEZr6JG7QurnXQovvQYxZvjduecueErWyZ2kVzCMdYI+vRz20SS3e38PeWFsBV3MCW6XgbWZGMmeav80WxVRJ7qRxCEuwypZy8EtPk= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8f902a86-af51-45c6-76d1-08d5ee0abf0c X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2018 06:33:47.3110 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR2101MB1117 Subject: [PATCH edk2-platforms 03/13] Silicon/NXP: Add iMX6Pkg dec X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2018 06:33:50 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable This adds PCD declarations common across NXP i.MX6 SoCs Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Christopher Co Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Michael D Kinney --- Silicon/NXP/iMX6Pkg/iMX6Pkg.dec | 100 ++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/Silicon/NXP/iMX6Pkg/iMX6Pkg.dec b/Silicon/NXP/iMX6Pkg/iMX6Pkg.= dec new file mode 100644 index 000000000000..6fa09090772e --- /dev/null +++ b/Silicon/NXP/iMX6Pkg/iMX6Pkg.dec @@ -0,0 +1,100 @@ +## @file +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the B= SD License +# which accompanies this distribution. The full text of the license may = be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IM= PLIED. +# +## + +[Defines] + DEC_SPECIFICATION =3D 0x00010005 + PACKAGE_NAME =3D iMX6Pkg + PACKAGE_GUID =3D 6eba6648-d853-4eb3-9761-528b82d5ab04 + PACKAGE_VERSION =3D 0.1 + +##########################################################################= ###### +# +# Include Section - list of Include Paths that are provided by this packag= e. +# Comments are used for Keywords and Module Types. +# +# Supported Module Types: +# BASE SEC PEI_CORE PEIM DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_D= RIVER DXE_SAL_DRIVER UEFI_DRIVER UEFI_APPLICATION +# +##########################################################################= ###### +[Includes.common] + Include # Root include for the package + Silicon/NXP/iMXPlatformPkg/Include # Root include for the iMXPlatfo= rm package + +[LibraryClasses] + iMXIoMuxLib|Silicon/NXP/iMX6Pkg/Include/iMXIoMux.h + iMX6ClkPwrLib|Silicon/NXP/iMX6Pkg/Include/iMX6ClkPwr.h + iMX6UsbPhyLib|Silicon/NXP/iMX6Pkg/Include/iMX6UsbPhy.h + +[Protocols.common] + gEfiSdhcProtocolGuid =3D { 0x46055b0f, 0x992a, 0x4ad7, { 0x8f, 0x81, 0x1= 4, 0x81, 0x86, 0xff, 0xdf, 0x72 } } + +[Guids.common] + giMX6TokenSpaceGuid =3D { 0x24b09abe, 0x4e47, 0x481c, { 0xa9, 0xad, = 0xce, 0xf1, 0x2c, 0x39, 0x23, 0x27} } + +[PcdsFixedAtBuild.common] + # + # Frame buffer is set to the first addressable memory on the i.MX6 + # Sabre board for convenience. + # Keep in mind that this chunk of memory is the only one that remains fi= xed + # through the various boot stages (primary boot->UEFI->Windows. + # + giMX6TokenSpaceGuid.PcdFrameBufferBase|0x10000000|UINT32|0x0000000A + giMX6TokenSpaceGuid.PcdFrameBufferSize|0x00800000|UINT32|0x0000000B + + # + # Performance counter + # + gEmbeddedTokenSpaceGuid.PcdEmbeddedFdPerformanceCounterFrequencyInHz|100= 0000|UINT32 |0xC + gEmbeddedTokenSpaceGuid.PcdEmbeddedFdPerformanceCounterPeriodInNanosecon= ds|1000|UINT32 |0xD + + # + # USB EHCI Controller + # + giMX6TokenSpaceGuid.PcdEHCIBase|0x02184000|UINT32|0xE + giMX6TokenSpaceGuid.PcdEHCILength|0x4000|UINT32|0xF + giMX6TokenSpaceGuid.PcdIsUsbPortOTG|TRUE|BOOLEAN|0x10 + giMX6TokenSpaceGuid.PcdUSBOTGBase|0x02184000|UINT32|0x11 + + # + # ARM System Reset Controller (SRC) + # + giMX6TokenSpaceGuid.PcdSrcBase|0x020D8000|UINT32|0x2B + + # + # PCIE + # + # PCI Host config space is fixed at 0x01FFC000. The memory range from + # 0x01000000 - 0x01FFBFFF is assigned for PCIe. The memory layout define= d + # by the boot loader is as below + # + # PCIe Device Config Space : 0x01F00000 - 0x01F80000 + # PCIe IO (unsupported) : 0x01100000 - 0x011FFFFF + # PCIe Memory : 0x01200000 - 0x012FFFFF + # + giMX6TokenSpaceGuid.PcdPcieHostConfigBase|0x01FFC000|UINT32|0x2C + giMX6TokenSpaceGuid.PcdPcieDeviceConfigBase|0x01F00000|UINT32|0x2D + giMX6TokenSpaceGuid.PcdPcieDeviceConfigSize|0x00080000|UINT32|0x2E + giMX6TokenSpaceGuid.PcdPcieIOBase|0x00000000|UINT32|0x2F + giMX6TokenSpaceGuid.PcdPcieIOSize|0x00000000|UINT32|0x30 + giMX6TokenSpaceGuid.PcdPciMemoryBase|0x01100000|UINT32|0x31 + giMX6TokenSpaceGuid.PcdPciMemorySize|0x00D00000|UINT32|0x32 + giMX6TokenSpaceGuid.PcdPciPrefetchMemoryBase|0x00000000|UINT32|0x33 + giMX6TokenSpaceGuid.PcdPciPrefetchMemorySize|0x00000000|UINT32|0x34 + giMX6TokenSpaceGuid.PcdPcieResetGpio|FALSE|BOOLEAN|0x35 + giMX6TokenSpaceGuid.PcdPcieResetGpioBankNumber|0|UINT32|0x36 + giMX6TokenSpaceGuid.PcdPcieResetGpioIoNumber|0|UINT32|0x37 + +[PcdsFeatureFlag.common] + giMX6TokenSpaceGuid.PcdGpuEnable|FALSE|BOOLEAN|0x00001000 + giMX6TokenSpaceGuid.PcdLvdsEnable|FALSE|BOOLEAN|0x00001001 --=20 2.16.2.gvfs.1.33.gf5370f1