From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mx.groups.io with SMTP id smtpd.web12.4541.1611729914789327667 for ; Tue, 26 Jan 2021 22:45:14 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@puresoftware.com header.s=google header.b=NjWeNMLp; spf=pass (domain: puresoftware.com, ip: 209.85.214.169, mailfrom: vikas.singh@puresoftware.com) Received: by mail-pl1-f169.google.com with SMTP id b17so500770plz.6 for ; Tue, 26 Jan 2021 22:45:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puresoftware.com; s=google; h=from:to:cc:subject:date:message-id; bh=WoO/Za/Zde9xJm4jCBe8LI836u+kdzAMZr6FaYNVgPE=; b=NjWeNMLp6MVj1AhuFH53AaLN7nFq480fsTlM4gZuJY+sW8oyccfPr0YA/cBHlbocsf Z/cyUeXWrdjZ/D/GrdSOrJ89nAlcZPLZs2UWfDSZeMdzirz6CjiRuKU9J+tetLHvvORD qMBRPeV4U4QpPwRfxtapzCzp4w9ejS3yYLfkw= 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; bh=WoO/Za/Zde9xJm4jCBe8LI836u+kdzAMZr6FaYNVgPE=; b=McdXLiM7TNDzf0GvnOdtymgdZ3WWhhVWwuvArwsg15RJChwqKn5eMp+reGN3zNsVqm G4EUHFxT4fSGzNY0IbDUCp4BxMtedroGwu2q/uvGpUkqP6RZ8lX5YwlB6Rh+fIMuEFAZ D2kTz2loZocDOB+wq7zVF6npGgs2xgrgyZ1jOglp9cA+9692l7r988KxuDXvlF1rCvNG 7FiMGevdLYJ0yyQfYHFzuw2fzVUqKNEF/y1/UzE69A3k1F51+as6ytv4LSLWrFRa4BZz weyJI93SMmSNRBbWTFRfsnR/0Bgv/sGvmiyJOvmf5oAQBPChcVx5YA8JQODTg5fStDec 3Ppw== X-Gm-Message-State: AOAM5325yLyk02JLC52bz4Mg/H6SL6d05ftnF+IcHWqB7vc4cHlOmw2F 9WBydpO7PFCcX2JgMPDOJYXC8v+9+4BLvzd6 X-Google-Smtp-Source: ABdhPJyxzdEwloacrpHEK+5sEt7q4Uk7ZwaZ+Cn8cyVJbee/izl2icGVv1GTx6P8kETrzCm3ofeJqw== X-Received: by 2002:a17:90a:de11:: with SMTP id m17mr4133340pjv.54.1611729914055; Tue, 26 Jan 2021 22:45:14 -0800 (PST) Return-Path: Received: from embedded-PC.puresoft.int ([125.63.92.170]) by smtp.gmail.com with ESMTPSA id n12sm1120726pff.29.2021.01.26.22.45.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jan 2021 22:45:13 -0800 (PST) From: "Vikas Singh" To: devel@edk2.groups.io Cc: sami.mujawar@arm.com, leif@nuviainc.com, meenakshi.aggarwal@nxp.com, paul.yang@arm.com, augustine.philips@arm.com, samer.el-haj-mahmoud@arm.com, v.sethi@nxp.com, arokia.samy@puresoftware.com, kuldip.dwivedi@puresoftware.com, ard.biesheuvel@arm.com, vikas.singh@nxp.com Subject: [PATCH v2 0/2] Dynamic ACPI framework for fsl layerscape platforms Date: Wed, 27 Jan 2021 12:14:57 +0530 Message-Id: <1611729899-23741-1-git-send-email-vikas.singh@puresoftware.com> X-Mailer: git-send-email 2.7.4 This patch series sets the foundation of Dynamic ACPI framework for all fsl layerscape platforms. In order to achieve: - Configurable firmware builds. - Unify firmware build for similar platforms. - Minimize/eliminate human induced errors. - Validate and generate firmware that complies with relevant specifications. this change set will introduce following changes in below defined order under edk2-platforms/NXP for LX2160ARDB platform. (1) Introduced edk2-platforms/NXP/ConfigurationManager It creates the platform repositories dynamically during build time and initializes with platform specific information and serves all requestes coming from OEM/standard firmware table generators. Configuration Manager(CM) will be common for all fsl platforms. (2) Introduced edk2-platforms/NXP/LX2160ARDB/Include/Platform.h It has all the declarations and the definitions specified for the platforms. These definitions will be inturn consumed by Configuration Manager. Additionally the placement of this header under "Include" dir will make these macro's availale to other translation units of the platform built. (3) Introduced edk2-platforms/NXP/LX2160ARDB/AcpiTablesInclude This is a placeholder for - OEM specific firmware acpi table generators. This also includes IP specific - DSDT/SSDT generators for the OEM's platform. Currently Dsdt.asl is a place holder having only platform's clock related dsdt properties for LX2160ARDB but it is intended to extend this "Dsdt.asl" to hold other table as well in next patch series. (4) Introduced a new "DYNAMIC_ACPI_ENABLE" flag to control DACPI framework. Currently this flag is used for LX2160ARDB and by default it is enabled. This flag can also extend to other fsl layerscape platforms in future. Changes can be referred under: - LX2160ARDb.dsc - LX2160ARDB.fdf (5) Introduced a "build.sh" script under edk2-platforms/NXP/ to automate builds. And also mandatorily need to support Dynamic ACPI framework for all fsl platforms. It exports build environment variables and also invokes "Env.sh". Vikas Singh (2): Platform/NXP: Add Dynamic Acpi for layerscape platforms Platform/NXP: Add OEM specific DSDT generator .../ConfigurationManagerDxe/ConfigurationManager.c | 843 +++++++++++++++++++++ .../ConfigurationManagerDxe/ConfigurationManager.h | 153 ++++ .../ConfigurationManagerDxe.inf | 52 ++ .../ConfigurationManagerPkg.dec | 23 + .../Include/PlatformAcpiTableGenerator.h | 20 + Platform/NXP/Env.sh | 67 ++ .../LX2160aRdbPkg/AcpiTablesInclude/Dsdt/Clk.asl | 40 + .../LX2160aRdbPkg/AcpiTablesInclude/Dsdt/Dsdt.asl | 15 + .../AcpiTablesInclude/PlatformAcpiDsdtLib.inf | 39 + .../PlatformAcpiDsdtLib/RawDsdtGenerator.c | 146 ++++ .../AcpiTablesInclude/PlatformAcpiLib.h | 24 + Platform/NXP/LX2160aRdbPkg/Include/Platform.h | 246 ++++++ Platform/NXP/LX2160aRdbPkg/LX2160aRdbPkg.dec | 4 + Platform/NXP/LX2160aRdbPkg/LX2160aRdbPkg.dsc | 29 + Platform/NXP/LX2160aRdbPkg/LX2160aRdbPkg.fdf | 12 + Platform/NXP/Readme.md | 35 +- Platform/NXP/build.sh | 115 +++ Silicon/NXP/LX2160A/LX2160A.dsc.inc | 9 + 18 files changed, 1871 insertions(+), 1 deletion(-) create mode 100644 Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/ConfigurationManager.c create mode 100644 Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/ConfigurationManager.h create mode 100644 Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/ConfigurationManagerDxe.inf create mode 100644 Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerPkg.dec create mode 100644 Platform/NXP/ConfigurationManagerPkg/Include/PlatformAcpiTableGenerator.h create mode 100755 Platform/NXP/Env.sh create mode 100644 Platform/NXP/LX2160aRdbPkg/AcpiTablesInclude/Dsdt/Clk.asl create mode 100644 Platform/NXP/LX2160aRdbPkg/AcpiTablesInclude/Dsdt/Dsdt.asl create mode 100644 Platform/NXP/LX2160aRdbPkg/AcpiTablesInclude/PlatformAcpiDsdtLib.inf create mode 100644 Platform/NXP/LX2160aRdbPkg/AcpiTablesInclude/PlatformAcpiDsdtLib/RawDsdtGenerator.c create mode 100644 Platform/NXP/LX2160aRdbPkg/AcpiTablesInclude/PlatformAcpiLib.h create mode 100644 Platform/NXP/LX2160aRdbPkg/Include/Platform.h create mode 100755 Platform/NXP/build.sh -- 2.7.4