From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mx.groups.io with SMTP id smtpd.web09.5134.1613552626245426486 for ; Wed, 17 Feb 2021 01:03:46 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@puresoftware.com header.s=google header.b=m56+Bevq; spf=pass (domain: puresoftware.com, ip: 209.85.210.178, mailfrom: vikas.singh@puresoftware.com) Received: by mail-pf1-f178.google.com with SMTP id k13so7977983pfh.13 for ; Wed, 17 Feb 2021 01:03:46 -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=vVI+QJDGT48SPABiYJ4cFsCQyuRS6xwP4d2kruYJgtg=; b=m56+BevqOuSwbw+ldvM5FNk/HkSS/7yOtFDnslJRfjWL34JTDaTSur6DwylQMMdjZ9 A5+Spx1oekH9EE7A1m5V8MHib9bCo5r2/3Mfjs9/aoxwfWipfBm2sullExI9rVTy0nsn I90SFkR67eyeOkhjbZ1u4iJk/vsKfRXAqscG0= 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=vVI+QJDGT48SPABiYJ4cFsCQyuRS6xwP4d2kruYJgtg=; b=jec1ltnr6r/uzkjtY7dIpGZLCf0Qqum1lcdN415hEts8IJissphCqMosqtndzwy/yR ChkRJmFpbgE+czpR0ZWh9V6lgNMQmz4rZ/OTBpIqH/Ffozq05D9BtBYS3F0hBkpAzvC+ XrHAgwGM4/1qVQEuUl9oGuJ/8YZwhbKSIDDRIaGRQGvvXUzx8K/A844UpRR7RxiUjtHZ fGEGzebeYQVuzRe0CtW5sSzRSi0+EdTVJB+oZa3dth2AcSTtujYXa/2NnZa+BjCbCAy+ PkQ7tLgDa3eQk3Ll6DvGZcl6zmAbUdGwFjVuf/kFLo3t7kbTmYqvNuoG+QuGuUUlt3s1 CH1A== X-Gm-Message-State: AOAM531Q0CdJy7pmi5z9FtBKfgELDaXpADKNiNDGkxoKccXDNKu4p4R6 sTLRo23sQJtpWctJm5qjNuJiSSDmLShtTK5Z X-Google-Smtp-Source: ABdhPJzjOpB+kgJktVZLU43VvbwesLZNOvGCtE/uLVqsSNp1+FMQ771Bpw9MEUS4m1blOneFieUHqg== X-Received: by 2002:a63:e84f:: with SMTP id a15mr2668543pgk.249.1613552625666; Wed, 17 Feb 2021 01:03:45 -0800 (PST) Return-Path: Received: from embedded-PC.puresoft.int ([125.63.92.170]) by smtp.gmail.com with ESMTPSA id v9sm1493418pju.33.2021.02.17.01.03.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Feb 2021 01:03:45 -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 v3 0/2] Dynamic ACPI framework for fsl layerscape platforms Date: Wed, 17 Feb 2021 14:33:30 +0530 Message-Id: <1613552612-15642-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 Vikas Singh (2): Platform/NXP: Add Dynamic Acpi for layerscape platforms Platform/NXP: Add OEM specific DSDT generator Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/ConfigurationManager.c | 843 ++++++++++++++++++++ Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/ConfigurationManager.h | 153 ++++ Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/ConfigurationManagerDxe.inf | 52 ++ Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerPkg.dec | 23 + Platform/NXP/ConfigurationManagerPkg/Include/PlatformAcpiTableGenerator.h | 20 + Platform/NXP/LX2160aRdbPkg/AcpiTablesInclude/Dsdt/Clk.asl | 40 + Platform/NXP/LX2160aRdbPkg/AcpiTablesInclude/Dsdt/Dsdt.asl | 15 + Platform/NXP/LX2160aRdbPkg/AcpiTablesInclude/PlatformAcpiDsdtLib.inf | 39 + Platform/NXP/LX2160aRdbPkg/AcpiTablesInclude/PlatformAcpiDsdtLib/RawDsdtGenerator.c | 146 ++++ Platform/NXP/LX2160aRdbPkg/AcpiTablesInclude/PlatformAcpiLib.h | 23 + Platform/NXP/LX2160aRdbPkg/Include/Platform.h | 246 ++++++ Platform/NXP/LX2160aRdbPkg/LX2160aRdbPkg.dsc | 29 + Platform/NXP/LX2160aRdbPkg/LX2160aRdbPkg.fdf | 12 + Silicon/NXP/LX2160A/LX2160A.dsc.inc | 10 + 14 files changed, 1651 insertions(+) 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 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 -- 2.7.4