Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp706522rwd; Wed, 31 May 2023 04:27:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7QQLLRJ/TUyPMmgCjavR82g6MPT/PPLmjUx4OBFy6nucozuXSfDh+TomybaT7+RdOcd+QW X-Received: by 2002:a05:6a00:1706:b0:63b:7a55:ae89 with SMTP id h6-20020a056a00170600b0063b7a55ae89mr5538516pfc.27.1685532434700; Wed, 31 May 2023 04:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685532434; cv=none; d=google.com; s=arc-20160816; b=Jwte/tBV9BRx/ODqLSH5lwv6kIR3g9hY/MhRE2J+oXHa1dHO062QnfKH0DRb7i/w59 svkzCtQzw7dt7HiaXH3Xh7eby53yx0VRVJRtRME4TXKPA6cCS6DIEmMf3wYfKsfqBsfd uFSGcx0h/62/ymEsO3O7vE6vjaCl/G/4slG/TJ5Sov89UiGu0LzEVsWIjcVTq9dNrC34 JYJBmV8A8IrNgU6FsEAuOblYka+IYY6TiAp8+A3VtoZz6MnFxjhnXHlXkBvTt5nE60ZJ rDAQB0Zucd/7/tdbLDMB0beua91g/bFtExRhmXTYPnLRr8ndmManx5Fpvbj+tz6x9xjp rCiQ== 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=pqCO0zG8sg4sud8a/zg7+AbJ/Mka1xuDjw890KKydlg=; b=N+xI3ovuRm6URfAykWJS4VxpW9L3MUz0ZWVc1CSOX0wEZZFk9zNSDbjShCWicJbbKV QtEnRY8K0BbvZg32zEaJ3OnmrfNo4ogEzToAPGIXtOwcT9F9tRbYnZ31xLQDCHKRNJLW 4MABm0P1E7eTdQQnioeITXhmNsNgzxL7ssTNOSf161FiDJOr7SzJaBRA184W49g6sl5C zxmdp1U47U7p8s7u8NwSEGGMpEVB/JHZ6g3ZmChl5Pbzc77u/qxcWc97pJz3vXmUKsCD ylLeoRhoIGD4wec2g4IXBi6ueEjlZGtNghWiBdQaIN9sIV8bCHGibPbH8VoizojNYPSi tRVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=nsMryPQV; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3-20020aa79903000000b0065002559fc4si2137534pff.10.2023.05.31.04.27.02; Wed, 31 May 2023 04:27:14 -0700 (PDT) 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=@gmail.com header.s=20221208 header.b=nsMryPQV; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235533AbjEaLRl (ORCPT + 99 others); Wed, 31 May 2023 07:17:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235505AbjEaLRe (ORCPT ); Wed, 31 May 2023 07:17:34 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B435F135; Wed, 31 May 2023 04:17:32 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-64d247a023aso3843991b3a.2; Wed, 31 May 2023 04:17:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685531852; x=1688123852; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pqCO0zG8sg4sud8a/zg7+AbJ/Mka1xuDjw890KKydlg=; b=nsMryPQVRfzMORrX9K4nt7H70UHnEGHTCwD9vBp0dciYv3aDQ5yxxhtJB/kQ8S2AQ6 YOR9tjOAvlqsxagRCX4ms102lNe4NBjEpKQX2RN/wxnbdo10tLne9a6yVDGVyxMqHaTD CuBnmZehhGuXe0UtThrjZq7qLomnNvCFaVWq741C9nRKGQi2lpepBlBmrNIqmdkb59i+ 8g88cYZp6E3GypvSEuXzzL9fbOwCJc6IFMYqRRihzTFlRlHfegyy6hwArLdxCS8jOJJD hT9wYjZp+uBLgxsSv2ACSapIdkI2Hm3I/wkbPKUrUS1SnkFJYAvnn71nfkxzjt1mRRvf HWFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685531852; x=1688123852; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pqCO0zG8sg4sud8a/zg7+AbJ/Mka1xuDjw890KKydlg=; b=PTLtFabC0TKHcoloKQ3MgYYTqteyFRfnBwfSkO1QU23KaV935URCp1qjxiBTDg8HUT LrXXPJw6i9ZUhntZnwI7JasJuQ0XJwnIeEBUSco37cRFmy3Tfg2B93ibPHvrUQArT0cP rALuV40DtmAk6a++BMDXtuHdMHAZzCKMXcR+v4SMVoT3zv68L5w+REeWxXeJWW18Iz57 O/TCTPzKhYg9nfrrmD7O54FuuQL+CWiwZcyvYRNnG+cFDJFaizHT0+zHVGI2AG1n52dT IR9W5cI7TltKrUA+FDmPMsH3A7L3VphAwe7k5sQ468+DbqTKJVbRY+Cirrl7wQ1IPPZF oFlQ== X-Gm-Message-State: AC+VfDxmrTna48yRDY5j8YII8bkf2NpZy8/HU8YBgA6P02TpIuBylyfR JALNQt0wc/IpwABDmhZCvmo= X-Received: by 2002:a17:902:f54b:b0:1b0:5425:2165 with SMTP id h11-20020a170902f54b00b001b054252165mr4891687plf.29.1685531852102; Wed, 31 May 2023 04:17:32 -0700 (PDT) Received: from localhost.localdomain (111-82-252-250.emome-ip.hinet.net. [111.82.252.250]) by smtp.gmail.com with ESMTPSA id d17-20020a170903231100b001b0aec3ed59sm1076588plh.256.2023.05.31.04.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 04:17:31 -0700 (PDT) From: Victor Shih To: ulf.hansson@linaro.org, adrian.hunter@intel.com Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, benchuanggli@gmail.com, HL.Liu@genesyslogic.com.tw, Greg.tu@genesyslogic.com.tw, Victor Shih , Ben Chuang , Victor Shih Subject: [PATCH V4 3/4] mmc: sdhci: Add VDD2 definition for power control register Date: Wed, 31 May 2023 19:15:17 +0800 Message-Id: <20230531111518.396868-4-victorshihgli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230531111518.396868-1-victorshihgli@gmail.com> References: <20230531111518.396868-1-victorshihgli@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Victor Shih Add new definition for VDD2 - UHS2 or PCIe/NVMe. Signed-off-by: Ben Chuang Signed-off-by: Victor Shih --- drivers/mmc/host/sdhci.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index f4f2085c274c..140a0c20d4f2 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -100,6 +100,14 @@ #define SDHCI_POWER_300 0x0C #define SDHCI_POWER_330 0x0E +/* + * VDD2 - UHS2 or PCIe/NVMe + * VDD2 power on/off and voltage select + */ +#define SDHCI_VDD2_POWER_ON 0x10 +#define SDHCI_VDD2_POWER_120 0x80 +#define SDHCI_VDD2_POWER_180 0xA0 + #define SDHCI_BLOCK_GAP_CONTROL 0x2A #define SDHCI_WAKE_UP_CONTROL 0x2B -- 2.25.1