From patchwork Sun Sep 6 21:43:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1358488 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: 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=) 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=dAzlzRT3; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bl4pZ2MSDz9sSn for ; Mon, 7 Sep 2020 07:50:30 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AFCA382483; Sun, 6 Sep 2020 23:45:17 +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="dAzlzRT3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AE19682436; Sun, 6 Sep 2020 23:44:51 +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=-2.0 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-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) (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 C317F82378 for ; Sun, 6 Sep 2020 23:44:47 +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-il1-x142.google.com with SMTP id l4so10923538ilq.2 for ; Sun, 06 Sep 2020 14:44:47 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=YWZmgy+KK7l4Dtymf+GsyKc6Fgn90isaalQn11vI3KA=; b=dAzlzRT38mlJHboWURGziy68mVGlKhfM1077+Tu0X9W8CCi4gA7vPLdi5fcBCgZgVg XvpWzD5TN8Tr03nnTR8OC7JZ4pMYi/mirxNQos6UdVenrRrkXhzU3vRIE/BrH44+/wgG K7QcAPlD2VZyGFeuA2tfb38wL8DTFkvCdO1Qs= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=YWZmgy+KK7l4Dtymf+GsyKc6Fgn90isaalQn11vI3KA=; b=TRgixr8wYl8sFabKYTdb+HhXrcNKvMicOuhAoP287sNTn+nP/cjKf6OguulvoXXf3v CFfszgLvvHsK/PrNQUocM9p5/iK40DtRFbIi5PuObu1O5YV8TpvKgPkgJ3EJyimsXzs+ eCpKqxW+OOoZQ0rC7GUgdY3nb3wr9Y3owJEMd+18RjZQvPN7m8kwydhgZuwyAKqDCkoy P+xuqjGoH96D3pvwaAoS2EOplzgzQAWotnRcS761fcIHceleSRdFtKUw7lsqfZxgQogL /s43UfpnVmH+QGEjJ7tnI+brDnjWOLLCYR79fcEkjOKLJvcvy8BUnn5CpRsF1lba33T3 BKCw== X-Gm-Message-State: AOAM533kNS2ZUPVRIA6tsP2oLQR8G9iPNnxWQ+8BOkNjEPNlOOOf7IAH R/UkukB5/k0AldCpOiUNCtfk8H9+OFeNHOlG X-Google-Smtp-Source: ABdhPJy9/CZ+zLE4tZ86pKJQQUtVTf7GsMqbpFI6VwHBdgYJ09tCrAC4Mdw/5MDq9llJsm76eubMOA== X-Received: by 2002:a92:985a:: with SMTP id l87mr16205385ili.2.1599428686552; Sun, 06 Sep 2020 14:44:46 -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 w13sm6232663iox.10.2020.09.06.14.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Sep 2020 14:44:46 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Wolfgang Wallner , Bin Meng , Bernhard Messerklinger , Andy Shevchenko , Simon Glass Subject: [PATCH v3 33/57] p2sb: Add some definitions used for ACPI Date: Sun, 6 Sep 2020 15:43:41 -0600 Message-Id: <20200906154340.v3.33.I1bec907198d64e445613010c4455b6f800f6b0a8@changeid> X-Mailer: git-send-email 2.28.0.526.ge36021eeef-goog In-Reply-To: <20200906214405.71632-1-sjg@chromium.org> References: <20200906214405.71632-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Allow this header to be included in ASL files by adding a header guard and a few definitions that are needed. Signed-off-by: Simon Glass --- (no changes since v1) include/p2sb.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/p2sb.h b/include/p2sb.h index 93e1155dca6..a25170e3d11 100644 --- a/include/p2sb.h +++ b/include/p2sb.h @@ -10,6 +10,12 @@ /* Port Id lives in bits 23:16 and register offset lives in 15:0 of address */ #define PCR_PORTID_SHIFT 16 +#if !defined(__ACPI__) + +/* These registers contain IOAPIC and HPET devfn */ +#define PCH_P2SB_IBDF 0x6c +#define PCH_P2SB_HBDF 0x70 + /** * struct p2sb_child_platdata - Information about each child of a p2sb device * @@ -164,4 +170,6 @@ int p2sb_get_port_id(struct udevice *dev); */ void *pcr_reg_address(struct udevice *dev, uint offset); +#endif /* !__ACPI__ */ + #endif