Message ID | 20200922184544.2920969-1-sjg@chromium.org |
---|---|
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=Kd3qgemP; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bwqz31gZwz9sRf for <incoming@patchwork.ozlabs.org>; Wed, 23 Sep 2020 04:46:39 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BC883823ED; Tue, 22 Sep 2020 20:46:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Kd3qgemP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B447D823CF; Tue, 22 Sep 2020 20:46:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 528D88238F for <u-boot@lists.denx.de>; Tue, 22 Sep 2020 20:46:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x343.google.com with SMTP id n61so16570872ota.10 for <u-boot@lists.denx.de>; Tue, 22 Sep 2020 11:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DcqW6uJx3ngtwZ1tARe9WV9o5J1wpmfGMh5a23ASOcY=; b=Kd3qgemPOxdCXoOxqUPEk+xydqMPyPlMshDRVGBtYssUn671Y4YWUvXIFLlreM8whr GOkzGZWnDskj4AM9pQZJNFYQQZX/OHlMgiz8zcGdnatRjwnh9cozzg3oUV7TvsM2JfuO THlGSztnwhLO9+WRv2M4AR9M2XpzRq78RHAdc= 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:mime-version :content-transfer-encoding; bh=DcqW6uJx3ngtwZ1tARe9WV9o5J1wpmfGMh5a23ASOcY=; b=ecN41gjjxkSf63bHbH6oLpfZ5Z4+Dvq421bgvGC+pXcH6xl4hSve2+FlOELHuqJsw7 1pkUL2mpdBhRShHoB0AkrZLvJ7aktsGE5DmEi/KnPoPpA4wOXog4HLJM/NKqa5nJKt7n u0s6WQb9R70zQBOUe3FDZsW3pOpaQSPjeECwQO8xC1UanhqJHC+2UEwGLQBAtDVLx2hp SbQsgK0FpIos9zAWVL6w5MDQw48VAMOB07rmrguI6oek/9uVKUkqC3sJyF2DNCLOfkoL ZDHp3BDKbYIj1QyCMo5K9v6X4PwyJQAApSTXg2L+3EgyT29Het7BL0TSyqSi2JbUsX5U P47g== X-Gm-Message-State: AOAM532fPpy3O9c5FvvP8QxGclDiEzkyhoYIVAqrfqMK5vxyCKwrp4PX fSbbCopzNzIg2yDuboUI3vQt2PX6kqvhVDME X-Google-Smtp-Source: ABdhPJzPmBSEW8U+zOZKZRKJCB0Jz7ZFHE66XxnRlmRm3olpRczubqPEpXp0X7RMFLWwW/ekkvPWsQ== X-Received: by 2002:a9d:4c97:: with SMTP id m23mr3763340otf.218.1600800384289; Tue, 22 Sep 2020 11:46:24 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id q24sm7622663oij.19.2020.09.22.11.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 11:46:22 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Wolfgang Wallner <wolfgang.wallner@br-automation.com>, Bin Meng <bmeng.cn@gmail.com>, Bernhard Messerklinger <bernhard.messerklinger@br-automation.com>, Simon Glass <sjg@chromium.org>, Heiko Schocher <hs@denx.de>, Marek Vasut <marex@denx.de>, Pavel Herrmann <morpheus.ibis@gmail.com> Subject: [PATCH v4 00/59] dm: Add programatic generation of ACPI tables (part D) Date: Tue, 22 Sep 2020 12:44:45 -0600 Message-Id: <20200922184544.2920969-1-sjg@chromium.org> X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
dm: Add programatic generation of ACPI tables (part D)
|
expand
|
On Wed, Sep 23, 2020 at 2:46 AM Simon Glass <sjg@chromium.org> wrote: > > Note: This is part D of this effort. With this, Coral includes all > required ACPI tables. > > At present on x86 U-Boot supports creating ACPI (Advanced Configuration > and Power Interface) tables using the Intel ACPI Source Language (ASL) > compiler. > > This is good enough for basic operation but some devices need to add > their information dynamically at runtime. An example is a device that > needs to report its enable GPIO. This is described in the device tree, > so we want to add code in the driver to convert that device-tree > description into an ACPI description for use on Linux. > > This series adds support for generation of ACPI tables and fragments by > devices. The core support is built into driver model. > > Several files are brought over from coreboot to do the actual generation. > > As an example of using this new feature, chromebook_coral is updated to > write out a wide array of ACPI tables including DSDT and SSDT. > > This initial version of the series lays out the general approach. More > work is needed to figure out the difference between CONFIG_ACPIGEN and > CONFIG_GENERATE_ACPI_TABLE with respect to what is built. > > Changes in v4: > - Add Andy's documentation to struct acpi_gpio > - Add logging when writinge NHLT > - Add new patch to use I2cSerialBusV2() instead of I2cSerialBus() > - Change table version to 3 > - Correct DPTF enable property > - Correct comment for dm_test_acpi_write_prw() > - Correct compatible string for gma device > Drop extra acpi_align() in apl_acpi_hb_write_tables() v4 has been applied to u-boot-x86/next, thanks!