Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp875359rwd; Wed, 31 May 2023 06:41:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7GFR6GAjPbsIdUoE3xm9ttmUa+U7xboULfofT/QNKulAL9STHNiY3EgyNhedWxVJLDNJWg X-Received: by 2002:a05:6a00:1581:b0:63d:45f3:9fc with SMTP id u1-20020a056a00158100b0063d45f309fcmr6323480pfk.5.1685540466236; Wed, 31 May 2023 06:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685540466; cv=none; d=google.com; s=arc-20160816; b=X7AMsyzYEF43y6rWNZVtfbQ8AygrOgXPud4BmpKCcqGC/sC3F2lyq5b2nvkd2xbkhS IvQ9cmzOslpywfmPhWaYxhoDbQWXg837TUfAjbfGbPhgUWOdFSuv9Plu3U5xPrRYtJj7 +fGzx949aD+KewPxDym39jVi2uHSXi5mfan1UEpDTfr9PsjcgU0MJZEkA9BmVbSmrq+k 7v8WjVfsXKMgPpRtatUmoz9wfQ0i4CGMHsJbdl4wPCnJrdpWh7d78OS2P3OZSjTUFz3Q +cnSjwRz2pAKewB3vl00uK7EW/KTptCWUphKvixe5BSxqdP4fWz/6qciXV4DjL7llux0 b54Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=UNYDgyXpOWQccghpWiisfmzez4tlOIVN5ikjCd6mXDc=; b=oMY0ToAQOYsmlao6/b1KF4a1+qvWVQq7t7F0Evv3UgRujbowkP/gGWre7KJ4aglKHp 5bdsY92mL7jNJGP3P60rBITw7R87sVDZtgLkt6pzkY6veVRPvY1hom/od2Z8BK1EcXgE Bmi/ITLMUMqrXE4XfbNgnlb/9D5HfzxUm+i8VDIXOKW/1ui4ckshzDbn/w48ZLDMK9+e +G0h7OiGFCVIcUJLRkU0qhsfIUStG8D0pkMBhaNQ1jW4Vcc6iuR4B0G506KSGzl0H4Yf pjzJoBNJwui9yLjfj69AsT/Oi+reJhBbEiWkOlDD3BLnL/JxqeNg/nwtUTL66jyW09xz 8E+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aDcarQDq; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g7-20020aa796a7000000b0064580409a12si3612921pfk.320.2023.05.31.06.40.51; Wed, 31 May 2023 06:41:06 -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=@intel.com header.s=Intel header.b=aDcarQDq; 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 S236094AbjEaN1t (ORCPT + 99 others); Wed, 31 May 2023 09:27:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235358AbjEaN1r (ORCPT ); Wed, 31 May 2023 09:27:47 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73407101; Wed, 31 May 2023 06:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685539665; x=1717075665; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=1co+eppkGb8x74kJdaxM0fCWfFP+SSp5abng4FgxhwQ=; b=aDcarQDqQIuxEWQb9iyxM3+DzA/RQf7wX0tRUdF/w1eDXf+9BFlaiLxA 5hZ8NjrXTRQ8IVknays4/ubhA87jtvYwJogjJA9Pqv1nJV70I0LhygKFS GQB2r1HmFUITNLUg+lQcCBltnnazcxwDV3QYM+ExtdajqoSYyKgSYFsck 33hYHGLgJitsP9Jj902GzziBEp4j9lEQXW5WJKRY4zvFNCpcuh11sI/ub lVO8Xi2IjBrZTeu4lbn6+0oL7Js0Du4WDJZLCt9JsX7SKSAzCANifbqyD SXC30knp5ZaNB6Zc5k4b+quDJzYCy0jgxxIybKh3yujZh9tB3DtRYxMVX w==; X-IronPort-AV: E=McAfee;i="6600,9927,10727"; a="344746130" X-IronPort-AV: E=Sophos;i="6.00,207,1681196400"; d="scan'208";a="344746130" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2023 06:27:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10727"; a="953639662" X-IronPort-AV: E=Sophos;i="6.00,207,1681196400"; d="scan'208";a="953639662" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.251.208.175]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2023 06:27:31 -0700 Message-ID: <55a83234-afa9-12de-d366-961b6909efaf@intel.com> Date: Wed, 31 May 2023 16:27:26 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.11.0 Subject: Re: [PATCH V4 3/4] mmc: sdhci: Add VDD2 definition for power control register Content-Language: en-US To: Victor Shih , ulf.hansson@linaro.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, benchuanggli@gmail.com, HL.Liu@genesyslogic.com.tw, Greg.tu@genesyslogic.com.tw, Ben Chuang , Victor Shih References: <20230531111518.396868-1-victorshihgli@gmail.com> <20230531111518.396868-4-victorshihgli@gmail.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <20230531111518.396868-4-victorshihgli@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 31/05/23 14:15, Victor Shih wrote: > 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 They should really align with SDHCI_POWER_330 etc above as they are all from SDHCI_POWER_CONTROL > + > #define SDHCI_BLOCK_GAP_CONTROL 0x2A > > #define SDHCI_WAKE_UP_CONTROL 0x2B