[PATCH V6 3/4] mmc: sdhci: Add VDD2 definition for power control register

Victor Shih posted 4 patches 2 years, 6 months ago
[PATCH V6 3/4] mmc: sdhci: Add VDD2 definition for power control register
Posted by Victor Shih 2 years, 6 months ago
From: Victor Shih <victor.shih@genesyslogic.com.tw>

Add new definition for VDD2 - UHS2 or PCIe/NVMe.

Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw>
Signed-off-by: Victor Shih <victor.shih@genesyslogic.com.tw>
---
 drivers/mmc/host/sdhci.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
index f4f2085c274c..f219bdea8f28 100644
--- a/drivers/mmc/host/sdhci.h
+++ b/drivers/mmc/host/sdhci.h
@@ -99,6 +99,13 @@
 #define  SDHCI_POWER_180	0x0A
 #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
 
-- 
2.25.1
Re: [PATCH V6 3/4] mmc: sdhci: Add VDD2 definition for power control register
Posted by Victor Shih 2 years, 6 months ago
Hi, Ulf

      This patch has been acked by Adrian in patch v5, but I forgot to
add in this patch version, sorry.

Thanks, Victor Shih

On Fri, Jun 9, 2023 at 3:14 PM Victor Shih <victorshihgli@gmail.com> wrote:
>
> From: Victor Shih <victor.shih@genesyslogic.com.tw>
>
> Add new definition for VDD2 - UHS2 or PCIe/NVMe.
>
> Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw>
> Signed-off-by: Victor Shih <victor.shih@genesyslogic.com.tw>
> ---
>  drivers/mmc/host/sdhci.h | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
> index f4f2085c274c..f219bdea8f28 100644
> --- a/drivers/mmc/host/sdhci.h
> +++ b/drivers/mmc/host/sdhci.h
> @@ -99,6 +99,13 @@
>  #define  SDHCI_POWER_180       0x0A
>  #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
>
> --
> 2.25.1
>
Re: [PATCH V6 3/4] mmc: sdhci: Add VDD2 definition for power control register
Posted by Ulf Hansson 2 years, 6 months ago
On Fri, 9 Jun 2023 at 09:40, Victor Shih <victorshihgli@gmail.com> wrote:
>
> Hi, Ulf
>
>       This patch has been acked by Adrian in patch v5, but I forgot to
> add in this patch version, sorry.

Thanks for letting me know, I have added Adrian's ack.

[...]

Kind regards
Uffe