From patchwork Tue Sep 22 18:45:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1369203 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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=jsUxf/QI; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4Bwr6y43Tkz9sTS for ; Wed, 23 Sep 2020 04:53:30 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B6A078266F; Tue, 22 Sep 2020 20:48:32 +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="jsUxf/QI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1F5FE825E4; Tue, 22 Sep 2020 20:47:10 +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-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) (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 6E119825D7 for ; Tue, 22 Sep 2020 20:46:58 +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-x344.google.com with SMTP id u25so16599643otq.6 for ; Tue, 22 Sep 2020 11:46:58 -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=k1YAzTVsf6U2f7ED+VmuineWu1BQFz9XwPr43fFti64=; b=jsUxf/QIep5GFMWboiXhumoW4Yr5WcwR0bVTuTa9Sz2wValiBXCGeyhdPmfY25WS+3 FkxK7JiWZK12LgpQ2oCgLyvi1NXT2PM6joVGBkmrLtXTJwPyVKAqIY4GkD1bwO+R+Pb3 zZ/LvmPlLqaNnGFxXHwQIEgjGswiUeI8kzmOY= 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=k1YAzTVsf6U2f7ED+VmuineWu1BQFz9XwPr43fFti64=; b=Z/Sn+HnPxn4RbA7/CQR6HUr/HsKWaU8FMWfXW88RaTyJNAzcQKqCR24dlkVZ/hmei1 oIoKz5m3ZN7f0vjfVYWTr3FW9CXvVrbtSKX7nF414ZVhYtsl3OtGfse2pq+RH282Fhfi 4t5CXfrwZgVf7H8CmJRDdZOGyP5124GcMWO8xIijQqiE5cTSb0Knfy3B7zwZciHN/Ruu 30DEoyjWS2zLuyI79Oh4VOqBgqa7gfFFJoQAWLop1Q771HmcY0fvf3TehCNnAkj+6Wcz +rwezOIBB7aNl7BkNk7pz/gu/njBITaewmxWmluIg78Ud7zaQdXcuHc1BFluhhB9SyST vmKw== X-Gm-Message-State: AOAM533sDSq8DwNzb/Uxppc1ocQfuzyjuDxUWz1Rhh/Wr0TfhUy4Skl/ vuQaDsxmOCkHuX2K+fYK7S98fn/eYoDdvNpq X-Google-Smtp-Source: ABdhPJz2XAdHOp4aWJV81MH8ed+qQDcdjttrobR4OeW7di07CuimyMqlbWd99+2xuAWANv/axH1OQQ== X-Received: by 2002:a05:6830:551:: with SMTP id l17mr3945157otb.61.1600800417036; Tue, 22 Sep 2020 11:46:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 11:46:56 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Andy Shevchenko , Wolfgang Wallner , Bin Meng , Bernhard Messerklinger , Simon Glass Subject: [PATCH v4 33/59] p2sb: Add some definitions used for ACPI Date: Tue, 22 Sep 2020 12:45:18 -0600 Message-Id: <20200922124521.v4.33.I1bec907198d64e445613010c4455b6f800f6b0a8@changeid> X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog In-Reply-To: <20200922184544.2920969-1-sjg@chromium.org> References: <20200922184544.2920969-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