Message ID | 20221117120515.37807-9-ilpo.jarvinen@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp363151wrr; Thu, 17 Nov 2022 04:10:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf6eFUD8kWR4E8Z7C28CBAUTG/xYSMcXNbdEmRAALj3YnMGm0ovShogKLw91+7xcC1rXz96V X-Received: by 2002:aa7:dbc3:0:b0:461:6b61:81ae with SMTP id v3-20020aa7dbc3000000b004616b6181aemr1892665edt.62.1668687032652; Thu, 17 Nov 2022 04:10:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668687032; cv=none; d=google.com; s=arc-20160816; b=qnMApY3tMOMCqs3qNTXcy7ZGkruxkootE7VZoOLw5oZlcBb+mKsFd3r/8AO4VZpNdd 8B44kJm6vs8+orrdjRXB00ozZ1phkhuffyhYLnkPrCJTZOxaapag6r5AzGqru5NP+fdp zCIKw3EOtsqBH24IHAz9zUf8otOvAfOXPiKlycGhSQiiHvrmLWFvSxxG7lJ36M1Eqj/A TN8nBYTEk72rs2vv6wgieqsDg++qfSSxoKkhAt9IDI9jRVwofgMOdHAHAuRcer7zXkVY lB+xQ6/WRaakWUzkYCnbfj9eSrDsnmu7kUQPAQpUtibzDwYKnWS+Nc/8ibEOxf3Htc8X t6dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NZQdTu1KqVO25uVQwKckD5uPWUzvY8VHnwTaTVccCIg=; b=NGv3lJahlekTJgwFyadU3DwvZDxsaHYxwH/tgdcpsjrn8/2NBGmmpfZFqcMh4cfj+B jNNDLBU6hlL2GYfr0GumvKnCIpBSwvtgD1ssN8HwkvH8sMoRQgquvkSPnAyxxj1KHkJX q0EYfmZFAxWh3a1MXm2GIGAbvMFFGmEI3sloRip/r6VRc4i2NqOL9/CfDVvtgRC/ri6U EzX4/ROsZ+Xis1+1tJhm8TUmnV9y64Wham1OGFAxozKU8wV7SUeuMJ7+GFjLTcK5ahLj ktYznI+I5ZYEtqpWj71s5UCzJPdMXT0w3mjyJe6PkICA3aYtxtpnnSQD4jLXfSqltwW5 wiiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fnjizPpq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020a056402431000b00461e426dcb0si714805edc.609.2022.11.17.04.10.09; Thu, 17 Nov 2022 04:10:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fnjizPpq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240070AbiKQMJM (ORCPT <rfc822;a1648639935@gmail.com> + 99 others); Thu, 17 Nov 2022 07:09:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240082AbiKQMH6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 17 Nov 2022 07:07:58 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFB9F70A06; Thu, 17 Nov 2022 04:07:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668686878; x=1700222878; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=M5/55UXWk8amjuFXSeJET+jKpctM2rCu5oLSvWkwS1s=; b=fnjizPpqiZsPGUNQMD5ohVxwmo+vpHzI94NHXBxBekmZRZa2/1xxqUC6 GipNh4o37CrveuNZkvDR7GP6yW7Byd1c+FTq/ed8AJFrixKtjwupYslhS wwyC+1GOPeUFXYGeHvmG7Bv/d59ZWVQ4BsvoPBxVHtVGKiLBRsfXuW49g 5a30G1lkaeh6Z0LwJRQfgU7NndKJ8oRs33QIxL57P9ZTq4AqlD0ZCeqab JNNkxO8E820wsqHC59Udp2L3lGkAPQCNQkiUmzOK9TY3Rp8NsPtS8EiXu BpyFUdyrhnbl/W8o6Erq0Ea6wpN507YDeoVUsGcbcz1ByYIlmGsnoFPYB Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="313981464" X-IronPort-AV: E=Sophos;i="5.96,171,1665471600"; d="scan'208";a="313981464" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2022 04:07:30 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="968855838" X-IronPort-AV: E=Sophos;i="5.96,171,1665471600"; d="scan'208";a="968855838" Received: from kvehmane-mobl1.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.252.61.113]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2022 04:07:25 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> To: linux-fpga@vger.kernel.org, Xu Yilun <yilun.xu@intel.com>, Wu Hao <hao.wu@intel.com>, Tom Rix <trix@redhat.com>, Moritz Fischer <mdf@kernel.org>, Lee Jones <lee@kernel.org>, Matthew Gerlach <matthew.gerlach@linux.intel.com>, Russ Weight <russell.h.weight@intel.com>, Tianfei zhang <tianfei.zhang@intel.com>, Mark Brown <broonie@kernel.org>, Greg KH <gregkh@linuxfoundation.org>, Marco Pagani <marpagan@redhat.com>, linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Subject: [PATCH v2 08/11] intel-m10-bmc: Add regmap_indirect_cfg for Intel FPGA IPs Date: Thu, 17 Nov 2022 14:05:12 +0200 Message-Id: <20221117120515.37807-9-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221117120515.37807-1-ilpo.jarvinen@linux.intel.com> References: <20221117120515.37807-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749745173839528911?= X-GMAIL-MSGID: =?utf-8?q?1749745173839528911?= |
Series |
intel-m10-bmc: Split BMC to core and SPI parts & add PMCI+N6000 support
|
|
Commit Message
Ilpo Järvinen
Nov. 17, 2022, 12:05 p.m. UTC
Create the regmap_indirect_cfg with offsets and commands for Intel FPGA IPs indirect register access. Reviewed-by: Matthew Gerlach <matthew.gerlach@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> --- include/linux/mfd/intel-m10-bmc.h | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/include/linux/mfd/intel-m10-bmc.h b/include/linux/mfd/intel-m10-bmc.h index 200425b5b266..03ba92a68e01 100644 --- a/include/linux/mfd/intel-m10-bmc.h +++ b/include/linux/mfd/intel-m10-bmc.h @@ -9,6 +9,19 @@ #include <linux/regmap.h> +#define INTEL_M10_REGMAP_INDIRECT_CFG \ + .cmd_offset = 0, \ + .idle_cmd = 0, \ + .read_cmd = BIT(0), \ + .write_cmd = BIT(1), \ + .ack_offset = 0, \ + .ack_mask = BIT(2), \ + .addr_offset = 0x4, \ + .read_offset = 0x8, \ + .write_offset = 0xc, \ + .sleep_us = 1, \ + .timeout_us = 10000 + #define M10BMC_STAGING_SIZE 0x3800000 /* Doorbell register fields */