Skip to contentSkip to conversation

mmc: core: add the property for hs200

PATCH In review Jaehoon Chung 2 participants 4 messages Feb 3, 2014 – Feb 17, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/8 mmc: core: add the property for hs200

mmc-hs200-1.8v and mmc-hs200-1.2v can be used to the general capability.

---
Changelog V3:
- Use the "len" instead of "NULL"
Changelog V2:
- Rename the mmc-hs200-1_8v/1_2v instead of "_caps2_"
- Add the properties into Documentation/devicetree/bindings/mmc/mmc.txt

 Documentation/devicetree/bindings/mmc/mmc.txt |    2 ++
 drivers/mmc/core/host.c                       |    4 ++++
 2 files changed, 6 insertions(+)
Documentation/devicetree/bindings/mmc/mmc.txt +2 -0
index 458b57f..4bb3894 100644
@@ -29,6 +29,8 @@ Optional properties:
 - cap-power-off-card: powering off the card is safe
 - cap-sdio-irq: enable SDIO IRQ signalling on this interface
 - full-pwr-cycle: full power cycle of the card is supported
+- mmc-hs200-1_8v: HS200 mode(1.8V I/O) is supported
+- mmc-hs200-1_2v: HS200 mode(1.2V I/O) is supported
 
 *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line
 polarity properties, we have to fix the meaning of the "normal" and "inverted"
drivers/mmc/core/host.c +4 -0
index 49bc403..4b81c93 100644
@@ -429,6 +429,10 @@ int mmc_of_parse(struct mmc_host *host)
 		host->pm_caps |= MMC_PM_KEEP_POWER;
 	if (of_find_property(np, "enable-sdio-wakeup", &len))
 		host->pm_caps |= MMC_PM_WAKE_SDIO_IRQ;
+	if (of_find_property(np, "mmc-hs200-1_8v", &len))
+		host->caps2 |= MMC_CAP2_HS200_1_8V_SDR;
+	if (of_find_property(np, "mmc-hs200-1_2v", &len))
+		host->caps2 |= MMC_CAP2_HS200_1_2V_SDR;
 
 	return 0;
 
Signature · 1 line
1.7.9.5
Acked-by on v3 1/8
#1 lore raw
Quoted 3 lines · Jaehoon Chung

mmc-hs200-1.8v and mmc-hs200-1.2v can be used to the general capability.

Quoted 41 lines

---
Changelog V3:
- Use the "len" instead of "NULL"
Changelog V2:
- Rename the mmc-hs200-1_8v/1_2v instead of "_caps2_"
- Add the properties into Documentation/devicetree/bindings/mmc/mmc.txt

 Documentation/devicetree/bindings/mmc/mmc.txt |    2 ++
 drivers/mmc/core/host.c                       |    4 ++++
 2 files changed, 6 insertions(+)
Documentation/devicetree/bindings/mmc/mmc.txt +2 -0
index 458b57f..4bb3894 100644
@@ -29,6 +29,8 @@ Optional properties:
 - cap-power-off-card: powering off the card is safe
 - cap-sdio-irq: enable SDIO IRQ signalling on this interface
 - full-pwr-cycle: full power cycle of the card is supported
+- mmc-hs200-1_8v: HS200 mode(1.8V I/O) is supported
+- mmc-hs200-1_2v: HS200 mode(1.2V I/O) is supported
 
 *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line
 polarity properties, we have to fix the meaning of the "normal" and "inverted"
drivers/mmc/core/host.c +4 -1
index 49bc403..4b81c93 100644
@@ -429,6 +429,10 @@ int mmc_of_parse(struct mmc_host *host)
                host->pm_caps |= MMC_PM_KEEP_POWER;
        if (of_find_property(np, "enable-sdio-wakeup", &len))
                host->pm_caps |= MMC_PM_WAKE_SDIO_IRQ;
+       if (of_find_property(np, "mmc-hs200-1_8v", &len))
+               host->caps2 |= MMC_CAP2_HS200_1_8V_SDR;
+       if (of_find_property(np, "mmc-hs200-1_2v", &len))
+               host->caps2 |= MMC_CAP2_HS200_1_2V_SDR;
 
        return 0;
 
--

1.7.9.5

#2 lore raw
Quoted 6 lines · Ulf Hansson
Quoted 3 lines · Jaehoon Chung

mmc-hs200-1.8v and mmc-hs200-1.2v can be used to the general capability.

Hi Jaehoon,

While I was adding some more DT bindings for mmc, I decided to rebase and fold in this patch into my patchset.

Hope your fine with it, otherwise just let me know.

Kind regards
Ulf Hansson

Quoted 42 lines
Quoted 42 lines

---
Changelog V3:
- Use the "len" instead of "NULL"
Changelog V2:
- Rename the mmc-hs200-1_8v/1_2v instead of "_caps2_"
- Add the properties into Documentation/devicetree/bindings/mmc/mmc.txt

 Documentation/devicetree/bindings/mmc/mmc.txt |    2 ++
 drivers/mmc/core/host.c                       |    4 ++++
 2 files changed, 6 insertions(+)
Documentation/devicetree/bindings/mmc/mmc.txt +2 -0
index 458b57f..4bb3894 100644
@@ -29,6 +29,8 @@ Optional properties:
 - cap-power-off-card: powering off the card is safe
 - cap-sdio-irq: enable SDIO IRQ signalling on this interface
 - full-pwr-cycle: full power cycle of the card is supported
+- mmc-hs200-1_8v: HS200 mode(1.8V I/O) is supported
+- mmc-hs200-1_2v: HS200 mode(1.2V I/O) is supported
 
 *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line
 polarity properties, we have to fix the meaning of the "normal" and "inverted"
drivers/mmc/core/host.c +4 -1
index 49bc403..4b81c93 100644
@@ -429,6 +429,10 @@ int mmc_of_parse(struct mmc_host *host)
                host->pm_caps |= MMC_PM_KEEP_POWER;
        if (of_find_property(np, "enable-sdio-wakeup", &len))
                host->pm_caps |= MMC_PM_WAKE_SDIO_IRQ;
+       if (of_find_property(np, "mmc-hs200-1_8v", &len))
+               host->caps2 |= MMC_CAP2_HS200_1_8V_SDR;
+       if (of_find_property(np, "mmc-hs200-1_2v", &len))
+               host->caps2 |= MMC_CAP2_HS200_1_2V_SDR;
 
        return 0;
 
--

1.7.9.5

#3 lore raw

Hi Ulf,

Quoted 6 lines · Ulf Hansson
Quoted 5 lines · Ulf Hansson
Quoted 3 lines · Jaehoon Chung

mmc-hs200-1.8v and mmc-hs200-1.2v can be used to the general capability.

Quoted 8 lines
Quoted 1 line

Hi Jaehoon,

While I was adding some more DT bindings for mmc, I decided to rebase and fold in this patch into my patchset.

Hope your fine with it, otherwise just let me know.

Thanks for adding patch at your patchset.

Best Regards,
Jaehoon Chung

Quoted 52 lines

Kind regards
Ulf Hansson

Quoted 38 lines
Quoted 38 lines

---
Changelog V3:
- Use the "len" instead of "NULL"
Changelog V2:
- Rename the mmc-hs200-1_8v/1_2v instead of "_caps2_"
- Add the properties into Documentation/devicetree/bindings/mmc/mmc.txt

 Documentation/devicetree/bindings/mmc/mmc.txt |    2 ++
 drivers/mmc/core/host.c                       |    4 ++++
 2 files changed, 6 insertions(+)
Documentation/devicetree/bindings/mmc/mmc.txt +2 -0
index 458b57f..4bb3894 100644
@@ -29,6 +29,8 @@ Optional properties:
 - cap-power-off-card: powering off the card is safe
 - cap-sdio-irq: enable SDIO IRQ signalling on this interface
 - full-pwr-cycle: full power cycle of the card is supported
+- mmc-hs200-1_8v: HS200 mode(1.8V I/O) is supported
+- mmc-hs200-1_2v: HS200 mode(1.2V I/O) is supported
 
 *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line
 polarity properties, we have to fix the meaning of the "normal" and "inverted"
drivers/mmc/core/host.c +4 -0
index 49bc403..4b81c93 100644
@@ -429,6 +429,10 @@ int mmc_of_parse(struct mmc_host *host)
                host->pm_caps |= MMC_PM_KEEP_POWER;
        if (of_find_property(np, "enable-sdio-wakeup", &len))
                host->pm_caps |= MMC_PM_WAKE_SDIO_IRQ;
+       if (of_find_property(np, "mmc-hs200-1_8v", &len))
+               host->caps2 |= MMC_CAP2_HS200_1_8V_SDR;
+       if (of_find_property(np, "mmc-hs200-1_2v", &len))
+               host->caps2 |= MMC_CAP2_HS200_1_2V_SDR;
 
Quoted 4 lines
Quoted 4 lines
drivers/mmc/core/host.c +0 -1
        return 0;
 
--

1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html