From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sat, 14 Mar 2020 14:34:57 -0600 Subject: [PATCH v2 30/39] acpi: Add functions to generate ACPI code In-Reply-To: References: <20200309034504.149659-1-sjg@chromium.org> <20200308214442.v2.30.Ie25c3492416531983761521cbc51e188052e18b4@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Wolfgang, On Fri, 13 Mar 2020 at 03:55, Wolfgang Wallner wrote: > > Hi Simon, > > -----"Simon Glass" schrieb: ----- > > > > Sometimes we need to generate ACPI code on the fly based on things only > > known at run time. Add a new 'acpigen' library to handle this. This code > > comes from coreboot and has been modified to support the acpi_ctx struct. > > > > Also add acpi_device.c to the build, since these files are co-dependent. > > > > Signed-off-by: Simon Glass > > --- > > > > Changes in v2: None > > > > include/acpigen.h | 482 +++++++++++++ > > include/dm/acpi.h | 7 + > > include/irq.h | 2 + > > lib/acpi/Makefile | 2 + > > lib/acpi/acpigen.c | 1683 ++++++++++++++++++++++++++++++++++++++++++++ > > 5 files changed, 2176 insertions(+) > > create mode 100644 include/acpigen.h > > create mode 100644 lib/acpi/acpigen.c > > What coreboot version is this based on? > I have compared it to the current master in coreboot and there are some > differences (ignoring the changes for acpi_ctx support). I don't think coreboot does releases very often. The commit is efa3084d63. Regards, Simon