From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=104.47.40.116; helo=nam03-co1-obe.outbound.protection.outlook.com; envelope-from=christopher.co@microsoft.com; receiver=edk2-devel@lists.01.org Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0116.outbound.protection.outlook.com [104.47.40.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4BEA02098C8C5 for ; Wed, 18 Jul 2018 21:11:28 -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=ZQoxQF/4xM+HYSr0xXgCgRg9HgUcmwcYi35VpB505qA=; b=Y8KwgiNZ+PjLncVY+zDvNY+4eRceatDQ+dROWgxd8IIk1WMBefZ8844KQmYBx83JYhqU4UHAAZulBLwmHrjIh6AYe38oFFpBZFh963cCyGOu/AL4SaUZsimtgKCvuyzvOzEMur57QGpwBQGCzW09+1f2jCa6EO139rxmuI4gVSw= Received: from DM5PR2101MB1128.namprd21.prod.outlook.com (52.132.133.20) by DM5PR2101MB0885.namprd21.prod.outlook.com (52.132.132.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.0; Thu, 19 Jul 2018 04:11:26 +0000 Received: from DM5PR2101MB1128.namprd21.prod.outlook.com ([fe80::b4d3:dabb:9372:9740]) by DM5PR2101MB1128.namprd21.prod.outlook.com ([fe80::b4d3:dabb:9372:9740%2]) with mapi id 15.20.0995.008; Thu, 19 Jul 2018 04:11:26 +0000 From: Chris Co To: "edk2-devel@lists.01.org" CC: Ard Biesheuvel , Leif Lindholm , Michael D Kinney Thread-Topic: [PATCH edk2-platforms 6/7] Silicon/NXP: Add iMXPlatformPkg dec Thread-Index: AQHUHxaPOID5lofj8U2rr/EswhyGNA== Date: Thu, 19 Jul 2018 04:11:26 +0000 Message-ID: <20180719041103.9072-7-christopher.co@microsoft.com> References: <20180719041103.9072-1-christopher.co@microsoft.com> In-Reply-To: <20180719041103.9072-1-christopher.co@microsoft.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BN6PR11CA0037.namprd11.prod.outlook.com (2603:10b6:404:4b::23) To DM5PR2101MB1128.namprd21.prod.outlook.com (2603:10b6:4:a8::20) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2001:4898:80e8:1:d144:e4c:c05:68bd] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DM5PR2101MB0885; 6:ndlc85ke5PTkIFSdwjkKTFIFiEPXgQkWHUnM33edGSM4rR2basBfuljEcB1q3sduHa8SEdaJP1h95QlpRcvVGF43TiENIXVu4iTLAuMsasoOYp+G3hrvR75Ktyg4GbAbqkgAv4q6JrSRbSE6J2gOOByGUTFkNlSAfi6Oxrk5aqnvg3YS5wieFj37EU31q5BcSdvXC4M6N8YZ5oup0JZgyqpMMC6lwA7pPJ9TuYU9Gf/kHx30mFQxOIO6X6MeaL2zIAJV1RqoWI4KcPQ02dQfYQbGhjFmw0o/4RE8S+b8FnpoE5cD3D6O60eszDntARuH+4iP19YFP+1mmM0Uy7+PbsYQElvipqDtDSNO0WdjZBu+Qjds93E+TVRJ2QeO0MKFjq3tfmPdlwtYIQ5XBKP8sGn6a1tPRbkNLkriPb4yKieawq8EMx/KQgxFPDtXkdbQFgoE2Y95auKsG0XpXOOMbg==; 5:hqiOmZyBb3CeIgmoOiPcRzcXWBBTXAk/K/cLqYfXZpfqHW/gY/KsrEW9NgRISL4S78GBq1DCJVtvOTconXqzxTrlU/f6C6xtv2yyE4DZ3fCFP6ASPb2XGOJo1L6B7emLsFks0oxOMXL0hhEiDFm2A+Kp5FKMZx4dvHSxEdO4vMk=; 7:Gra8DaJ30U4936sp/z/fS4r7gAnBS0k7mX4KwfYkC1mPdsGn4yJLHOnuHgLMNg8HWXROtXv31/orLPwsJCyrqWr3TmmaU2D387LGowfqSjp1qjRJa/sslLGAiyV8C1S0UcM5M8ZHrZv96cQfbIZMfx5nc1ulV0/XrF39kzNCXQR0GSgwaxFWWebw2MVR2xsgJOAbrZIpm8VHBlyBH3pwfP4fRuIwdRiYJT2sQ8fIny+BJltDHrYgwGWKVAjuSX/C x-ms-office365-filtering-correlation-id: dae427e7-dd65-43e3-91dd-08d5ed2db216 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:DM5PR2101MB0885; x-ms-traffictypediagnostic: DM5PR2101MB0885: 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)(10201501046)(3231311)(944501410)(52105095)(2018427008)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:DM5PR2101MB0885; BCL:0; PCL:0; RULEID:; SRVR:DM5PR2101MB0885; x-forefront-prvs: 0738AF4208 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(346002)(396003)(39860400002)(376002)(136003)(366004)(189003)(199004)(6486002)(476003)(6512007)(6306002)(8676002)(10290500003)(97736004)(54906003)(305945005)(6436002)(4326008)(68736007)(446003)(81166006)(186003)(256004)(5640700003)(14444005)(81156014)(25786009)(16799955002)(2900100001)(22452003)(102836004)(15188155005)(966005)(99286004)(86362001)(2501003)(5250100002)(5660300001)(1076002)(478600001)(52116002)(14454004)(6506007)(6116002)(76176011)(486006)(106356001)(105586002)(36756003)(2616005)(11346002)(8936002)(46003)(53376002)(86612001)(2351001)(386003)(6916009)(72206003)(575784001)(316002)(7736002)(2906002)(53936002)(10090500001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR2101MB0885; H:DM5PR2101MB1128.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: x4kll84r/Ypn0gB5xZhyqFNX1/eGl0Hb6RSI0MDub75NvoO8FCqmx3kqSnvsFke8rloKl/3KFVfE5cjEQV8WL5vK2CVl4GnRQZgC6TS6eW+DQ7CwXUA4pwsE9zRI+lhChl0hQ8ffXwbuOvcBq9MQXBVc/yP6m5mYI1giSKqnkEZMTV/8nbTyoxqKMwmbnlp5P1GxqjyVXbGo6qy+OmAFKa6huj7mhD1K8/yHeNFrYcZWSZTGvITce5Vuop5CkEF9v0TjOGsbQik1l1hjTO79Qbu34qs1PiauVnCf0OYGkJ7l80aMEGBLMzEjTQC81d7mnhMdFZmvUVan6podTp5eQ5v1sRlnkHx4iIhi5245ur0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: dae427e7-dd65-43e3-91dd-08d5ed2db216 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jul 2018 04:11:26.4928 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0885 Subject: [PATCH edk2-platforms 6/7] Silicon/NXP: Add iMXPlatformPkg 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: Thu, 19 Jul 2018 04:11:28 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable iMXPlatformPkg holds drivers, libraries, and include files that are common across the NXP i.MX line of SoCs. This commit defines iMXPlatform PCDs. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Christopher Co Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Michael D Kinney --- Silicon/NXP/iMXPlatformPkg/iMXPlatformPkg.dec | 117 ++++++++++++++++++++ 1 file changed, 117 insertions(+) diff --git a/Silicon/NXP/iMXPlatformPkg/iMXPlatformPkg.dec b/Silicon/NXP/iM= XPlatformPkg/iMXPlatformPkg.dec new file mode 100644 index 000000000000..fd71bcd82032 --- /dev/null +++ b/Silicon/NXP/iMXPlatformPkg/iMXPlatformPkg.dec @@ -0,0 +1,117 @@ +## @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 iMXPlatformPkg + 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 + +[LibraryClasses] + +[Guids.common] + giMXPlatformTokenSpaceGuid =3D { 0x24b09abe, 0x4e47, 0x481c, { 0xa9,= 0xad, 0xce, 0xf1, 0x2c, 0x39, 0x23, 0x27} } + +[PcdsFixedAtBuild.common] + # + # Default base address based that needs to be defined per platform + # + giMXPlatformTokenSpaceGuid.PcdSdhc1Base|0x02190000|UINT32|0x00 + giMXPlatformTokenSpaceGuid.PcdSdhc2Base|0x02194000|UINT32|0x01 + giMXPlatformTokenSpaceGuid.PcdSdhc3Base|0x02198000|UINT32|0x02 + giMXPlatformTokenSpaceGuid.PcdSdhc4Base|0x0219C000|UINT32|0x03 + + # + # Enabled uSDHCx will be registered as a BlockIo device + # + giMXPlatformTokenSpaceGuid.PcdSdhc1Enable|FALSE|BOOLEAN|0x04 + giMXPlatformTokenSpaceGuid.PcdSdhc2Enable|FALSE|BOOLEAN|0x05 + giMXPlatformTokenSpaceGuid.PcdSdhc3Enable|FALSE|BOOLEAN|0x06 + giMXPlatformTokenSpaceGuid.PcdSdhc4Enable|FALSE|BOOLEAN|0x07 + + # + # Slot CardDetect and WriteProtect signals source + # + # Legal values are as follows: + # + # [0x0000, 0xFEFF] + # Use a value in the range from 0x0 to 0xFEFF exclusive to indicate + # GPIO as signal source, use MSB byte as GPIO bank number, and LSB byte + # as IO number both in 1-based numbering fashion. e.g. 0x0201 means GPIO= 2_IO1 + # + # 0xFF00 -USDHC_SIGNAL_OVERRIDE_PIN_LOW + # Override signal source to always read LOW + # NOTE: CD_B=3D0 means card present, while WP=3D0 means write enabled + # + # 0xFF01 - USDHC_SIGNAL_OVERRIDE_PIN_HIGH + # Override signal source to always read HIGH + # NOTE: CD_B=3D1 means card not present, while WP=3D1 means write protec= ted + # + # 0xFFFF - USDHC_SIGNAL_INTERNAL_PIN + # Signal is connected directly to the SDHC block. Which means use th SDH= C + # internal FSM for interpreting card detect CD_B and write protect WP si= gnals + # from the slot + # + # Default signals to LOW to force card present and write enabled + # + giMXPlatformTokenSpaceGuid.PcdSdhc1CardDetectSignal|0xFF00|UINT16|0x08 + giMXPlatformTokenSpaceGuid.PcdSdhc1WriteProtectSignal|0xFF01|UINT16|0x09 + + giMXPlatformTokenSpaceGuid.PcdSdhc2CardDetectSignal|0xFF00|UINT16|0x0A + giMXPlatformTokenSpaceGuid.PcdSdhc2WriteProtectSignal|0xFF01|UINT16|0x0B + + giMXPlatformTokenSpaceGuid.PcdSdhc3CardDetectSignal|0xFF00|UINT16|0x0C + giMXPlatformTokenSpaceGuid.PcdSdhc3WriteProtectSignal|0xFF01|UINT16|0x0D + + giMXPlatformTokenSpaceGuid.PcdSdhc4CardDetectSignal|0xFF00|UINT16|0x0E + giMXPlatformTokenSpaceGuid.PcdSdhc4WriteProtectSignal|0xFF01|UINT16|0x0F + + # + # iMX UART configuration + # + # PcdSerialRegisterBase - Define a base address of UEFI console UART + # PcdKdUartInstance - UART instance that should be used for Windows + # Kernel debugger. 1, 2, 3, 4, or 5 + # + giMXPlatformTokenSpaceGuid.PcdSerialRegisterBase|0x00000000|UINT32|0x11 + giMXPlatformTokenSpaceGuid.PcdKdUartInstance|1|UINT32|0x12 + + # + # iMX GPIO configuration + # + # PcdGpioBankMemoryRange - The memory range for 1 GPIO bank register (de= fault 16KB) + # + giMXPlatformTokenSpaceGuid.PcdGpioBankMemoryRange|16384|UINT32|0x15 + + # + # Global data area + # The PcdGlobalDataBaseAddress and PcdGlobalDataSize have to be set by e= ach + # platform based on the memory layout. + # + giMXPlatformTokenSpaceGuid.PcdGlobalDataBaseAddress|0x00000000|UINT32|0x= 17 + giMXPlatformTokenSpaceGuid.PcdGlobalDataSize|0x1000|UINT32|0x18 + +[PcdsFeatureFlag.common] --=20 2.16.2.gvfs.1.33.gf5370f1